Merge "asoc: codecs: Set EAR compander if mixer ctl set"

This commit is contained in:
qctecmdr
2020-04-26 23:42:50 -07:00
کامیت شده توسط Gerrit - the friendly Code Review server
کامیت e63542d6b7
2فایلهای تغییر یافته به همراه14 افزوده شده و 5 حذف شده

مشاهده پرونده

@@ -579,7 +579,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);
@@ -597,6 +598,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;