From 489c2e0dbd76d9cecec62d19fafd9e7baddb72e7 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 23 Jan 2008 13:16:02 +0000 Subject: Add mpeg12 sep registration. --- audio/ipc.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'audio/ipc.h') diff --git a/audio/ipc.h b/audio/ipc.h index 64ed65a7..3768dcfb 100644 --- a/audio/ipc.h +++ b/audio/ipc.h @@ -129,10 +129,10 @@ struct bt_getcapabilities_req { * SBC Codec parameters as per A2DP profile 1.0 ยง 4.3 */ -#define BT_A2DP_SAMPLING_FREQ_16000 (1 << 3) -#define BT_A2DP_SAMPLING_FREQ_32000 (1 << 2) -#define BT_A2DP_SAMPLING_FREQ_44100 (1 << 1) -#define BT_A2DP_SAMPLING_FREQ_48000 1 +#define BT_SBC_SAMPLING_FREQ_16000 (1 << 3) +#define BT_SBC_SAMPLING_FREQ_32000 (1 << 2) +#define BT_SBC_SAMPLING_FREQ_44100 (1 << 1) +#define BT_SBC_SAMPLING_FREQ_48000 1 #define BT_A2DP_CHANNEL_MODE_MONO (1 << 3) #define BT_A2DP_CHANNEL_MODE_DUAL_CHANNEL (1 << 2) @@ -152,6 +152,17 @@ struct bt_getcapabilities_req { #define BT_A2DP_ALLOCATION_LOUDNESS 1 #define BT_A2DP_ALLOCATION_AUTO 0 +#define BT_MPEG_SAMPLING_FREQ_16000 (1 << 5) +#define BT_MPEG_SAMPLING_FREQ_22050 (1 << 4) +#define BT_MPEG_SAMPLING_FREQ_24000 (1 << 3) +#define BT_MPEG_SAMPLING_FREQ_32000 (1 << 2) +#define BT_MPEG_SAMPLING_FREQ_44100 (1 << 1) +#define BT_MPEG_SAMPLING_FREQ_48000 1 + +#define BT_MPEG_LAYER_1 (1 << 2) +#define BT_MPEG_LAYER_2 (1 << 1) +#define BT_MPEG_LAYER_3 1 + typedef struct { uint8_t channel_mode; uint8_t frequency; @@ -168,7 +179,6 @@ typedef struct { uint8_t layer; uint8_t frequency; uint8_t mpf; - uint8_t vbr; uint16_t bitrate; } __attribute__ ((packed)) mpeg_capabilities_t; -- cgit