ASoC: Rely on core enabling the wm8994 with runtime PM
No need to do this in the driver now. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Родитель
f1aac484f7
Коммит
4105ab846c
|
@ -2188,8 +2188,6 @@ static int wm8994_set_bias_level(struct snd_soc_codec *codec,
|
||||||
|
|
||||||
case SND_SOC_BIAS_STANDBY:
|
case SND_SOC_BIAS_STANDBY:
|
||||||
if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) {
|
if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) {
|
||||||
pm_runtime_get_sync(codec->dev);
|
|
||||||
|
|
||||||
switch (control->type) {
|
switch (control->type) {
|
||||||
case WM8994:
|
case WM8994:
|
||||||
if (wm8994->revision < 4) {
|
if (wm8994->revision < 4) {
|
||||||
|
@ -2256,11 +2254,8 @@ static int wm8994_set_bias_level(struct snd_soc_codec *codec,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SND_SOC_BIAS_OFF:
|
case SND_SOC_BIAS_OFF:
|
||||||
if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY) {
|
if (codec->dapm.bias_level == SND_SOC_BIAS_STANDBY)
|
||||||
wm8994->cur_fw = NULL;
|
wm8994->cur_fw = NULL;
|
||||||
|
|
||||||
pm_runtime_put(codec->dev);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
codec->dapm.bias_level = level;
|
codec->dapm.bias_level = level;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче