Skip to content

Commit

Permalink
[ALSA] emu10k1: Fix outl() in snd_emu10k1_resume_regs()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
thertp authored and Jaroslav Kysela committed Oct 6, 2006
1 parent 635bbb3 commit 4130d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/emu10k1/emu10k1_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit 4130d59

Please sign in to comment.