bluez: avinfo: Replace definitions with a2dp-codecs.h's
authorChan-yeol Park <chanyeol.park@samsung.com>
Tue, 9 Oct 2012 11:35:45 +0000 (20:35 +0900)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 9 Jan 2013 14:30:14 +0000 (14:30 +0000)
sys/bluez/a2dp-codecs.h

index 2afafa5..3dc31cb 100644 (file)
@@ -49,6 +49,9 @@
 #define SBC_ALLOCATION_SNR             (1 << 1)
 #define SBC_ALLOCATION_LOUDNESS                1
 
+#define MAX_BITPOOL 64
+#define MIN_BITPOOL 2
+
 #define MPEG_CHANNEL_MODE_MONO         (1 << 3)
 #define MPEG_CHANNEL_MODE_DUAL_CHANNEL (1 << 2)
 #define MPEG_CHANNEL_MODE_STEREO       (1 << 1)
 #define MPEG_SAMPLING_FREQ_44100       (1 << 1)
 #define MPEG_SAMPLING_FREQ_48000       1
 
-#define MAX_BITPOOL 64
-#define MIN_BITPOOL 2
+#define MPEG_BIT_RATE_VBR              0x8000
+#define MPEG_BIT_RATE_320000           0x4000
+#define MPEG_BIT_RATE_256000           0x2000
+#define MPEG_BIT_RATE_224000           0x1000
+#define MPEG_BIT_RATE_192000           0x0800
+#define MPEG_BIT_RATE_160000           0x0400
+#define MPEG_BIT_RATE_128000           0x0200
+#define MPEG_BIT_RATE_112000           0x0100
+#define MPEG_BIT_RATE_96000            0x0080
+#define MPEG_BIT_RATE_80000            0x0040
+#define MPEG_BIT_RATE_64000            0x0020
+#define MPEG_BIT_RATE_56000            0x0010
+#define MPEG_BIT_RATE_48000            0x0008
+#define MPEG_BIT_RATE_40000            0x0004
+#define MPEG_BIT_RATE_32000            0x0002
+#define MPEG_BIT_RATE_FREE             0x0001
 
 #if __BYTE_ORDER == __LITTLE_ENDIAN