ASoC: rk3308_codec: Fix the dummy loopback

If we playback before capture, the loopback will be
switch to BIST SINE mode by other ADC grps. Let's
fix it.

Change-Id: Ib18a32d87dfed4343edc439bd5c705295eca06f3
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
This commit is contained in:
Xing Zheng
2018-08-29 11:29:57 +08:00
committed by Tao Huang
parent ff897a86fc
commit 1b7bbc2354

View File

@@ -2639,6 +2639,7 @@ static int rk3308_codec_open_capture(struct rk3308_codec_priv *rk3308)
} else {
for (idx = 0; adc_for_each_grp(rk3308, type, idx, &grp); idx++) {
if (has_loopback(rk3308->loopback_grp) &&
idx == rk3308->loopback_grp &&
grp == ADC_GRP_SKIP_MAGIC) {
/*
* Switch to dummy BIST mode (BIST keep reset