summaryrefslogtreecommitdiffstats
path: root/audio/a2dp.h
diff options
context:
space:
mode:
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