]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ALSA: emu10k1: Fix outl() in snd_emu10k1_resume_regs()
authorArnaud Patard <arnaud.patard@rtp-net.org>
Mon, 16 Oct 2006 12:35:57 +0000 (14:35 +0200)
committerChris Wright <chrisw@sous-sol.org>
Sat, 4 Nov 2006 01:33:44 +0000 (17:33 -0800)
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.

From: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
sound/pci/emu10k1/emu10k1_main.c

index 79f24cdf5fbf0b121b6c7564325d8983e89e86d1..bc1dfdc9201d543156969d1b3a82c5101a834cbb 100644 (file)
@@ -1460,8 +1460,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++)