diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm9712.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index 524f7450804f..d2d79e182a45 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c | |||
@@ -581,22 +581,14 @@ static int wm9712_dapm_event(struct snd_soc_codec *codec, int event) | |||
581 | 581 | ||
582 | switch (event) { | 582 | switch (event) { |
583 | case SNDRV_CTL_POWER_D0: /* full On */ | 583 | case SNDRV_CTL_POWER_D0: /* full On */ |
584 | /* liam - maybe enable thermal shutdown */ | ||
585 | reg = ac97_read(codec, AC97_EXTENDED_MID) & 0xdfff; | ||
586 | ac97_write(codec, AC97_EXTENDED_MID, reg); | ||
587 | break; | ||
588 | case SNDRV_CTL_POWER_D1: /* partial On */ | 584 | case SNDRV_CTL_POWER_D1: /* partial On */ |
589 | case SNDRV_CTL_POWER_D2: /* partial On */ | 585 | case SNDRV_CTL_POWER_D2: /* partial On */ |
590 | break; | 586 | break; |
591 | case SNDRV_CTL_POWER_D3hot: /* Off, with power */ | 587 | case SNDRV_CTL_POWER_D3hot: /* Off, with power */ |
592 | /* enable master bias and vmid */ | ||
593 | reg = ac97_read(codec, AC97_EXTENDED_MID) & 0xbbff; | ||
594 | ac97_write(codec, AC97_EXTENDED_MID, reg); | ||
595 | ac97_write(codec, AC97_POWERDOWN, 0x0000); | 588 | ac97_write(codec, AC97_POWERDOWN, 0x0000); |
596 | break; | 589 | break; |
597 | case SNDRV_CTL_POWER_D3cold: /* Off, without power */ | 590 | case SNDRV_CTL_POWER_D3cold: /* Off, without power */ |
598 | /* disable everything including AC link */ | 591 | /* disable everything including AC link */ |
599 | ac97_write(codec, AC97_EXTENDED_MID, 0xffff); | ||
600 | ac97_write(codec, AC97_EXTENDED_MSTATUS, 0xffff); | 592 | ac97_write(codec, AC97_EXTENDED_MSTATUS, 0xffff); |
601 | ac97_write(codec, AC97_POWERDOWN, 0xffff); | 593 | ac97_write(codec, AC97_POWERDOWN, 0xffff); |
602 | break; | 594 | break; |