diff options
author | Uday Kishore Pasupuleti <upasupul@codeaurora.org> | 2015-08-21 11:51:52 -0700 |
---|---|---|
committer | Prashant Malani <pmalani@google.com> | 2015-08-21 13:15:17 -0700 |
commit | 28ddc6fe0a0411d37391798114623cc1f8fa8cc4 (patch) | |
tree | 35bf30ec831cdc57de2f17c164209142a838785e | |
parent | ba8784cdf24aa58bc0ee61a4991d8991d8e54f9f (diff) | |
download | hardware_qcom_audio-28ddc6fe0a0411d37391798114623cc1f8fa8cc4.tar.gz hardware_qcom_audio-28ddc6fe0a0411d37391798114623cc1f8fa8cc4.tar.bz2 hardware_qcom_audio-28ddc6fe0a0411d37391798114623cc1f8fa8cc4.zip |
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>
-rw-r--r-- | hal/audio_extn/hfp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hal/audio_extn/hfp.c b/hal/audio_extn/hfp.c index a1087309..bfeb6e74 100644 --- a/hal/audio_extn/hfp.c +++ b/hal/audio_extn/hfp.c @@ -71,7 +71,11 @@ static int32_t hfp_set_volume(struct audio_device *adev, float value) { 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); |