提交 db13802e 编写于 作者: J Jarkko Nikula 提交者: Liam Girdwood

ASoC: tlv320aic3x: Change bias management semantics

Move PLL enable from BIAS_ON state to BIAS_PREPARE to be pair with
BIAS_STANDBY where PLL is disabled. Remove also old comments about power
control.
Signed-off-by: NJarkko Nikula <jhnikula@gmail.com>
Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
上级 d3235c4a
...@@ -997,7 +997,8 @@ static int aic3x_set_bias_level(struct snd_soc_codec *codec, ...@@ -997,7 +997,8 @@ static int aic3x_set_bias_level(struct snd_soc_codec *codec,
switch (level) { switch (level) {
case SND_SOC_BIAS_ON: case SND_SOC_BIAS_ON:
/* all power is driven by DAPM system */ break;
case SND_SOC_BIAS_PREPARE:
if (aic3x->master) { if (aic3x->master) {
/* enable pll */ /* enable pll */
reg = aic3x_read_reg_cache(codec, AIC3X_PLL_PROGA_REG); reg = aic3x_read_reg_cache(codec, AIC3X_PLL_PROGA_REG);
...@@ -1005,13 +1006,8 @@ static int aic3x_set_bias_level(struct snd_soc_codec *codec, ...@@ -1005,13 +1006,8 @@ static int aic3x_set_bias_level(struct snd_soc_codec *codec,
reg | PLL_ENABLE); reg | PLL_ENABLE);
} }
break; break;
case SND_SOC_BIAS_PREPARE:
break;
case SND_SOC_BIAS_STANDBY: case SND_SOC_BIAS_STANDBY:
/* /* fall through and disable pll */
* all power is driven by DAPM system,
* so output power is safe if bypass was set
*/
case SND_SOC_BIAS_OFF: case SND_SOC_BIAS_OFF:
if (aic3x->master) { if (aic3x->master) {
/* disable pll */ /* disable pll */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册