summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.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/a2dp.h
parenta0af7ee44534dad8f35a4142c6a22177e54ffc57 (diff)
Add mpeg12 sep registration.
Diffstat (limited to 'audio/a2dp.h')
-rw-r--r--audio/a2dp.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/audio/a2dp.h b/audio/a2dp.h
index cfd1c47d..84301bad 100644
--- a/audio/a2dp.h
+++ b/audio/a2dp.h
@@ -48,6 +48,11 @@
#define SBC_ALLOCATION_SNR (1 << 1)
#define SBC_ALLOCATION_LOUDNESS 1
+#define MPEG_CHANNEL_MODE_MONO (1 << 3)
+#define MPEG_CHANNEL_MODE_DUAL_CHANNEL (1 << 2)
+#define MPEG_CHANNEL_MODE_STEREO (1 << 1)
+#define MPEG_CHANNEL_MODE_JOINT_STEREO 1
+
#define MPEG_LAYER_MP1 (1 << 2)
#define MPEG_LAYER_MP2 (1 << 1)
#define MPEG_LAYER_MP3 1
@@ -83,9 +88,7 @@ struct mpeg_codec_cap {
uint8_t frequency:6;
uint8_t mpf:1;
uint8_t rfa:1;
- uint8_t bitrate0:7;
- uint8_t vbr:1;
- uint8_t bitrate1;
+ uint16_t bitrate;
} __attribute__ ((packed));
#elif __BYTE_ORDER == __BIG_ENDIAN
@@ -109,9 +112,7 @@ struct mpeg_codec_cap {
uint8_t rfa:1;
uint8_t mpf:1;
uint8_t frequency:6;
- uint8_t vbr:1;
- uint8_t bitrate0:7;
- uint8_t bitrate1;
+ uint16_t bitrate;
} __attribute__ ((packed));
#else