diff options
author | Arnaud Patard <arnaud.patard@rtp-net.org> | 2006-10-04 12:21:05 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-10-06 14:23:03 -0400 |
commit | 4130d59b1ac6e32c130bd59dbce5eb30fede0197 (patch) | |
tree | d238a1b1e21918de75e32078551bdc2cbf663ad7 | |
parent | 635bbb355ebb735647ca49fb649a6a7edea9b3ed (diff) |
[ALSA] emu10k1: Fix outl() in snd_emu10k1_resume_regs()
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>
-rw-r--r-- | sound/pci/emu10k1/emu10k1_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/emu10k1/emu10k1_main.c b/sound/pci/emu10k1/emu10k1_main.c index be65d4db8e27..8058059c56e9 100644 --- a/sound/pci/emu10k1/emu10k1_main.c +++ b/sound/pci/emu10k1/emu10k1_main.c | |||
@@ -1461,8 +1461,8 @@ void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu) | |||
1461 | 1461 | ||
1462 | /* resore for spdif */ | 1462 | /* resore for spdif */ |
1463 | if (emu->audigy) | 1463 | if (emu->audigy) |
1464 | outl(emu->port + A_IOCFG, emu->saved_a_iocfg); | 1464 | outl(emu->saved_a_iocfg, emu->port + A_IOCFG); |
1465 | outl(emu->port + HCFG, emu->saved_hcfg); | 1465 | outl(emu->saved_hcfg, emu->port + HCFG); |
1466 | 1466 | ||
1467 | val = emu->saved_ptr; | 1467 | val = emu->saved_ptr; |
1468 | for (reg = saved_regs; *reg != 0xff; reg++) | 1468 | for (reg = saved_regs; *reg != 0xff; reg++) |