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
diff --git a/include/hardware/bt_av.h b/include/hardware/bt_av.h
index d0db96d..415c527 100644
--- a/include/hardware/bt_av.h
+++ b/include/hardware/bt_av.h
@@ -45,16 +45,20 @@
  */
 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,