rk3128 : codec : fix the pop sound when codec power on at first

This commit is contained in:
smj 2014-11-18 19:46:06 +08:00
parent bc52f1110f
commit 3414c7adcd

View File

@ -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 {