asoc: codecs: Set EAR compander if mixer ctl set

Enable compander based on mixer ctl set for ear path.

Change-Id: Ie6287469f1baa9dba239d369bd5a29ed8e44522f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam
2020-04-01 10:45:30 +05:30
committed by Gerrit - the friendly Code Review server
vanhempi d155d7f509
commit 2e025248a2
2 muutettua tiedostoa jossa 14 lisäystä ja 5 poistoa

Näytä tiedosto

@@ -577,7 +577,8 @@ static int wcd937x_codec_ear_dac_event(struct snd_soc_dapm_widget *w,
snd_soc_component_update_bits(component,
WCD937X_HPH_NEW_INT_RDAC_HD2_CTL_L,
0x0F, 0x06);
snd_soc_component_update_bits(component,
if (wcd937x->comp1_enable)
snd_soc_component_update_bits(component,
WCD937X_DIGITAL_CDC_COMP_CTL_0,
0x02, 0x02);
usleep_range(5000, 5010);
@@ -595,6 +596,10 @@ static int wcd937x_codec_ear_dac_event(struct snd_soc_dapm_widget *w,
snd_soc_component_update_bits(component,
WCD937X_HPH_NEW_INT_RDAC_HD2_CTL_L,
0x0F, 0x01);
if (wcd937x->comp1_enable)
snd_soc_component_update_bits(component,
WCD937X_DIGITAL_CDC_COMP_CTL_0,
0x02, 0x00);
break;
};
return 0;