2002-11-20 10:03:45

by Margit Schubert-While

[permalink] [raw]
Subject: Patch 2.5.48 ALSA Cirrus Logic 4281

--- cs4281.c 2002-11-18 05:29:56.000000000 +0100
+++ /tmp/cs4281.c 2002-11-20 11:03:16.000000000 +0100
@@ -2109,7 +2109,7 @@
snd_cs4281_pokeBA0(chip, BA0_HICR, BA0_HICR_CHGM);

/* remember the status registers */
- for (i = 0; number_of(saved_regs); i++)
+ for (i = 0; i < number_of(saved_regs); i++)
if (saved_regs[i])
chip->suspend_regs[i] = snd_cs4281_peekBA0(chip,
saved_regs[i]);

@@ -2153,7 +2153,7 @@
snd_cs4281_chip_init(chip, 0);

/* restore the status registers */
- for (i = 0; number_of(saved_regs); i++)
+ for (i = 0; i < number_of(saved_regs); i++)
if (saved_regs[i])
snd_cs4281_pokeBA0(chip, saved_regs[i],
chip->suspend_regs[i]);