summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlin Radoslavov <pavlin@google.com>2017-01-04 16:12:47 -0800
committerPavlin Radoslavov <pavlin@google.com>2017-01-04 16:31:14 -0800
commitb2543a2f8eedb9f4cab176d0b75c27c363f4e0de (patch)
tree56dd73955778392643f50f4af23333c95a45cb64
parent0c45c105a55723dd1b440262ee38f4082b9081aa (diff)
downloadlibhardware-b2543a2f8eedb9f4cab176d0b75c27c363f4e0de.tar.gz
Integration of the aptX and aptX-HD codecs for A2DP source
Each of the codecs can be used if the corresponding encoding shared library is installed on the device: - aptX: libaptX.so - aptX-HD: libaptXHD.so Test: A2DP streaming to aptX and aptX-HD headsets Bug: 30958229 Change-Id: If827933e4ea5d9d55eadff369db0eeeeb27a03ce
-rw-r--r--include/hardware/bt_av.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/hardware/bt_av.h b/include/hardware/bt_av.h
index d0db96df..415c5277 100644
--- a/include/hardware/bt_av.h
+++ b/include/hardware/bt_av.h
@@ -45,16 +45,20 @@ typedef enum {
*/
typedef enum {
BTAV_A2DP_CODEC_INDEX_SOURCE_MIN = 0,
- BTAV_A2DP_CODEC_INDEX_SOURCE_SBC = 0,
- /* Add an entry for each new source codec here */
+ // Add an entry for each source codec here.
+ // NOTE: The values should be same as those listed in the following file:
+ // BluetoothCodecConfig.java
+ BTAV_A2DP_CODEC_INDEX_SOURCE_SBC = 0,
+ BTAV_A2DP_CODEC_INDEX_SOURCE_APTX,
+ BTAV_A2DP_CODEC_INDEX_SOURCE_APTX_HD,
BTAV_A2DP_CODEC_INDEX_SOURCE_MAX,
BTAV_A2DP_CODEC_INDEX_SINK_MIN = BTAV_A2DP_CODEC_INDEX_SOURCE_MAX,
- BTAV_A2DP_CODEC_INDEX_SINK_SBC = BTAV_A2DP_CODEC_INDEX_SINK_MIN,
- /* Add an entry for each new sink codec here */
+ // Add an entry for each sink codec here
+ BTAV_A2DP_CODEC_INDEX_SINK_SBC = BTAV_A2DP_CODEC_INDEX_SINK_MIN,
BTAV_A2DP_CODEC_INDEX_SINK_MAX,