hal: configs: Enable aac, aptxhd a2dp encoders
- Enable a2dp aptx HD, aac encoder capability
for 8998, sdm 660 targets
Change-Id: I3a5cc6f6f55ba5957ef0249034327fab6a936906
diff --git a/hal/audio_extn/a2dp.c b/hal/audio_extn/a2dp.c
index 4ac94ca..cc4b283 100644
--- a/hal/audio_extn/a2dp.c
+++ b/hal/audio_extn/a2dp.c
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2015-16, The Linux Foundation. All rights reserved.
+* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -187,6 +187,14 @@
ALOGD("%s: aptx offload supported\n",__func__);
a2dp.is_a2dp_offload_supported = true;
break;
+ } else if (strcmp(tok, "aptxhd") == 0) {
+ ALOGD("%s: aptx HD offload supported\n",__func__);
+ a2dp.is_a2dp_offload_supported = true;
+ break;
+ } else if (strcmp(tok, "aac") == 0) {
+ ALOGD("%s: aac offload supported\n",__func__);
+ a2dp.is_a2dp_offload_supported = true;
+ break;
}
tok = strtok_r(NULL, "-", &saveptr);
};