summaryrefslogtreecommitdiffstats
path: root/audio/ipc.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-01-23 13:16:02 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-01-23 13:16:02 +0000
commit489c2e0dbd76d9cecec62d19fafd9e7baddb72e7 (patch)
treed8ec2cba32e8a20443eb85e4162d0b38f0fd0d31 /audio/ipc.h
parenta0af7ee44534dad8f35a4142c6a22177e54ffc57 (diff)
Add mpeg12 sep registration.
Diffstat (limited to 'audio/ipc.h')
-rw-r--r--audio/ipc.h20
1 files changed, 15 insertions, 5 deletions
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;