hal: Support an external BT chip for HFP
Change mixer control name to 'PRI AUXPCM LOOPBACK Volume'
from 'Internal HFP RX Volume' for HFP which is using
external BT chip
Bug: 23349895
Change-Id: Ib509027ea36ece2ca17584af0664507f99263df4
Signed-off-by: Uday Kishore Pasupuleti <upasupul@codeaurora.org>
diff --git a/hal/audio_extn/hfp.c b/hal/audio_extn/hfp.c
index a108730..bfeb6e7 100644
--- a/hal/audio_extn/hfp.c
+++ b/hal/audio_extn/hfp.c
@@ -71,7 +71,11 @@
{
int32_t vol, ret = 0;
struct mixer_ctl *ctl;
+#ifdef EXTERNAL_BT_SUPPORTED
+ const char *mixer_ctl_name = "PRI AUXPCM LOOPBACK Volume";
+#else
const char *mixer_ctl_name = "Internal HFP RX Volume";
+#endif
ALOGV("%s: entry", __func__);
ALOGD("%s: (%f)\n", __func__, value);