aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-04-16 06:59:55 -0400
committerTakashi Iwai <tiwai@suse.de>2008-04-24 06:00:37 -0400
commit0a08478c0f7548211b492b578a67dacca5aea1a8 (patch)
tree7c01ee29a3ae4cbf43c157ecb8e959b1f8c0c2b4 /sound/soc/codecs
parent4972a177fed34036498aee555335f84a70219bc1 (diff)
[ALSA] soc - wm9712: Remove unneeded AC97_EXTENDED_MID updates
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/wm9712.c8
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;