summaryrefslogtreecommitdiffstats
path: root/audio/include/system/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/include/system/audio.h')
-rw-r--r--audio/include/system/audio.h45
1 files changed, 44 insertions, 1 deletions
diff --git a/audio/include/system/audio.h b/audio/include/system/audio.h
index 3811813..c5808aa 100644
--- a/audio/include/system/audio.h
+++ b/audio/include/system/audio.h
@@ -332,7 +332,11 @@ typedef enum {
AUDIO_FORMAT_APE = 0x1D000000UL,
AUDIO_FORMAT_AAC_ADTS = 0x1E000000UL,
AUDIO_FORMAT_DSD = 0x1F000000UL,
- AUDIO_FORMAT_MAIN_MASK = 0xFF000000UL, /* Deprecated. Use audio_get_main_format() */
+ AUDIO_FORMAT_SBC = 0x20000000UL,
+ AUDIO_FORMAT_APTX = 0x21000000UL,
+ AUDIO_FORMAT_APTX_HD = 0x22000000UL,
+
+ AUDIO_FORMAT_MAIN_MASK = 0xFF000000UL,/* Deprecated. Use audio_get_main_format() */
AUDIO_FORMAT_SUB_MASK = 0x00FFFFFFUL,
/* Aliases */
@@ -912,6 +916,45 @@ typedef struct {
audio_usage_t usage;
} audio_offload_info_t;
+/* Information about BT SBC encoder configuration
+ * This data is used between audio HAL module and
+ * BT IPC library to configure DSP encoder
+ */
+typedef struct {
+ uint32_t subband; /* 4, 8 */
+ uint32_t blk_len; /* 4, 8, 12, 16 */
+ uint16_t sampling_rate; /*44.1khz,48khz*/
+ uint8_t channels; /*0(Mono),1(Dual_mono),2(Stereo),3(JS)*/
+ uint8_t alloc; /*0(Loudness),1(SNR)*/
+ uint8_t min_bitpool; /* 2 */
+ uint8_t max_bitpool; /*53(44.1khz),51 (48khz) */
+ uint32_t bitrate; /* 320kbps to 512kbps */
+} audio_sbc_encoder_config;
+
+
+/* Information about BT APTX encoder configuration
+ * This data is used between audio HAL module and
+ * BT IPC library to configure DSP encoder
+ */
+typedef struct {
+ uint16_t sampling_rate;
+ uint8_t channels;
+ uint32_t bitrate;
+} audio_aptx_encoder_config;
+
+
+/* Information about BT AAC encoder configuration
+ * This data is used between audio HAL module and
+ * BT IPC library to configure DSP encoder
+ */
+typedef struct {
+ uint32_t enc_mode; /* LC, SBR, PS */
+ uint16_t format_flag; /* RAW, ADTS */
+ uint16_t channels; /* 1-Mono, 2-Stereo */
+ uint32_t sampling_rate;
+ uint32_t bitrate;
+} audio_aac_encoder_config;
+
#define AUDIO_MAKE_OFFLOAD_INFO_VERSION(maj,min) \
((((maj) & 0xff) << 8) | ((min) & 0xff))