]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ALSA] emu10k1: Fix outl() in snd_emu10k1_resume_regs()
authorArnaud Patard <arnaud.patard@rtp-net.org>
Wed, 4 Oct 2006 16:21:05 +0000 (18:21 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 6 Oct 2006 18:23:03 +0000 (20:23 +0200)
The emu10k1 driver saves the A_IOCFG and HCFG register on suspend and restores
it on resumes. Unfortunately, this doesn't work as the arguments to outl() are
reversed.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/pci/emu10k1/emu10k1_main.c

index be65d4db8e2770ff3defdb1f17bfd5a5f6d4ed3e..8058059c56e9b70ebc716196d996b45a0ea0af6b 100644 (file)
@@ -1461,8 +1461,8 @@ void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu)
 
        /* resore for spdif */
        if (emu->audigy)
-               outl(emu->port + A_IOCFG, emu->saved_a_iocfg);
-       outl(emu->port + HCFG, emu->saved_hcfg);
+               outl(emu->saved_a_iocfg, emu->port + A_IOCFG);
+       outl(emu->saved_hcfg, emu->port + HCFG);
 
        val = emu->saved_ptr;
        for (reg = saved_regs; *reg != 0xff; reg++)