diff options
author | Chan-yeol Park <chanyeol.park@samsung.com> | 2012-10-09 20:35:44 +0900 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2013-01-09 14:30:14 +0000 |
commit | e5a5d179da15fccd4e40940bd785eafa49f7aa01 (patch) | |
tree | cdc82da979a61c8e9cc576b7275485d7214a940c /sys | |
parent | 711e5b490906e0fcf26554395d4145d255cc37bb (diff) | |
download | gstreamer-plugins-bad-e5a5d179da15fccd4e40940bd785eafa49f7aa01.tar.gz |
bluez: audio: Add check for vendor specific A2DP codec
This patch adds checks(vendor ID, vendor specific codec ID) to make sure of
vendor specific A2DP codec selection.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/bluez/a2dp-codecs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/bluez/a2dp-codecs.h b/sys/bluez/a2dp-codecs.h index 51c796a5b..2afafa518 100644 --- a/sys/bluez/a2dp-codecs.h +++ b/sys/bluez/a2dp-codecs.h @@ -26,6 +26,7 @@ #define A2DP_CODEC_MPEG12 0x01 #define A2DP_CODEC_MPEG24 0x02 #define A2DP_CODEC_ATRAC 0x03 +#define A2DP_CODEC_VENDOR 0xFF #define SBC_SAMPLING_FREQ_16000 (1 << 3) #define SBC_SAMPLING_FREQ_32000 (1 << 2) @@ -114,3 +115,8 @@ typedef struct { #else #error "Unknown byte order" #endif + +typedef struct { + uint8_t vendor_id[4]; + uint8_t codec_id[2]; +} __attribute__ ((packed)) a2dp_vendor_codec_t; |