Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26ae13f9 authored by Roberto Granados Dorado's avatar Roberto Granados Dorado Committed by Alain Vongsouvanh
Browse files

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: default avatarRoberto Granados Dorado <robertog@codeaurora.org>
parent 0f8a045c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -45,11 +45,15 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
#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);