]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
ALSA: emu10k1: Fix outl() in snd_emu10k1_resume_regs()
authorArnaud Patard <arnaud.patard@rtp-net.org>
Mon, 8 Jan 2007 22:09:59 +0000 (23:09 +0100)
committerAdrian Bunk <bunk@stusta.de>
Tue, 9 Jan 2007 02:23:35 +0000 (03:23 +0100)
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: Adrian Bunk <bunk@stusta.de>
sound/pci/emu10k1/emu10k1_main.c

index 3c7043b7d4c92a2f259c87cd9019bf6ca06f30df..4faea376860b9e239f182e1abf0d5c08ec787c5a 100644 (file)
@@ -1395,8 +1395,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++)