hal: Change volume control for HFP in Dual ASM loopback
When using ASM loopack in RX path, the volume must be applied in
ASM rather than AFE loopback.
Change-Id: Ifa16cf91d727304a7bbd8d25734a61660851a843
Signed-off-by: Roberto Granados Dorado <robertog@codeaurora.org>
diff --git a/msm8909/hal/audio_extn/hfp.c b/msm8909/hal/audio_extn/hfp.c
index 4faa1e4..30f64d6 100644
--- a/msm8909/hal/audio_extn/hfp.c
+++ b/msm8909/hal/audio_extn/hfp.c
@@ -45,11 +45,15 @@
#define AUDIO_PARAMETER_HFP_SET_SAMPLING_RATE "hfp_set_sampling_rate"
#define AUDIO_PARAMETER_KEY_HFP_VOLUME "hfp_volume"
+#ifdef ASM_LOOPBACK_RX_ENABLED
+#define HFP_RX_VOLUME "Playback 36 Volume"
+#else
#ifdef PLATFORM_MSM8994
#define HFP_RX_VOLUME "SEC AUXPCM LOOPBACK Volume"
#else
#define HFP_RX_VOLUME "Internal HFP RX Volume"
#endif
+#endif
static int32_t start_hfp(struct audio_device *adev,
struct str_parms *parms);