]> err.no Git - linux-2.6/commitdiff
ALSA: ac97 - fix patch_ucb1400 for proper resume
authorMike Rapoport <mike@compulab.co.il>
Wed, 2 Jul 2008 10:19:23 +0000 (13:19 +0300)
committerJaroslav Kysela <perex@perex.cz>
Thu, 10 Jul 2008 07:32:07 +0000 (09:32 +0200)
Replace 'snd_ac97_write' with snd_ac97_write_cache' in pacth_ucb1400 to allow
proper codec wakeup.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/ac97/ac97_patch.c

index abe88adec37ec5083fe2e3e27a7473e74f22c7fb..0746e9ccc20b1572ec1cae300b0178c1ad6f90e9 100644 (file)
@@ -3710,7 +3710,7 @@ static int patch_ucb1400(struct snd_ac97 * ac97)
 {
        ac97->build_ops = &patch_ucb1400_ops;
        /* enable headphone driver and smart low power mode by default */
-       snd_ac97_write(ac97, 0x6a, 0x0050);
-       snd_ac97_write(ac97, 0x6c, 0x0030);
+       snd_ac97_write_cache(ac97, 0x6a, 0x0050);
+       snd_ac97_write_cache(ac97, 0x6c, 0x0030);
        return 0;
 }