mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
ASoC: rockchip: rk817-codec: Reset DTOP_DIGEN_CLKE after finish digital registers
This patch try to reset DTOP_DIGEN_CLKE during hook power up after finish configure digital registers, avoid to the incorrect work status. Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> Change-Id: Iaa7eb3ebf41d0a55ddf8005bcaeccae2c60656eb
This commit is contained in:
@@ -355,6 +355,13 @@ static int rk817_codec_power_up(struct snd_soc_component *component, int type)
|
||||
playback_power_up_list[i].reg,
|
||||
playback_power_up_list[i].value);
|
||||
}
|
||||
|
||||
snd_soc_component_update_bits(component, RK817_CODEC_DTOP_DIGEN_CLKE,
|
||||
DAC_DIG_CLK_MASK, DAC_DIG_CLK_DIS);
|
||||
usleep_range(2000, 2500);
|
||||
snd_soc_component_update_bits(component, RK817_CODEC_DTOP_DIGEN_CLKE,
|
||||
DAC_DIG_CLK_MASK, DAC_DIG_CLK_EN);
|
||||
DBG("%s: %d - Playback DIG CLK OPS\n", __func__, __LINE__);
|
||||
}
|
||||
|
||||
if (type & RK817_CODEC_CAPTURE) {
|
||||
@@ -368,6 +375,13 @@ static int rk817_codec_power_up(struct snd_soc_component *component, int type)
|
||||
capture_power_up_list[i].value);
|
||||
}
|
||||
|
||||
snd_soc_component_update_bits(component, RK817_CODEC_DTOP_DIGEN_CLKE,
|
||||
ADC_DIG_CLK_MASK, DAC_DIG_CLK_DIS);
|
||||
usleep_range(2000, 2500);
|
||||
snd_soc_component_update_bits(component, RK817_CODEC_DTOP_DIGEN_CLKE,
|
||||
ADC_DIG_CLK_MASK, ADC_DIG_CLK_EN);
|
||||
DBG("%s: %d - Capture DIG CLK OPS\n", __func__, __LINE__);
|
||||
|
||||
if (rk817->mic_in_differential)
|
||||
snd_soc_component_update_bits(component,
|
||||
RK817_CODEC_AMIC_CFG0,
|
||||
|
||||
Reference in New Issue
Block a user