mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
rk3128 : codec : fix the pop sound when codec power on at first
This commit is contained in:
parent
bc52f1110f
commit
3414c7adcd
|
|
@ -1910,6 +1910,7 @@ static int rk312x_startup(struct snd_pcm_substream *substream,
|
|||
rk312x_codec_power_up(RK312x_CODEC_PLAYBACK);
|
||||
snd_soc_write(rk312x_priv->codec, 0xb4, rk312x_priv->spk_volume);
|
||||
snd_soc_write(rk312x_priv->codec, 0xb8, rk312x_priv->spk_volume);
|
||||
msleep(rk312x_priv->spk_mute_delay);
|
||||
rk312x_codec_ctl_gpio(CODEC_SET_SPK, rk312x_priv->spk_active_level);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user