Commit 5370d96f85962769ea3df3a81cc885f257c51589

Authored by Steve Chen
Committed by Takashi Iwai
1 parent e8bf069c41

ALSA: fix excessive background noise introduced by OSS emulation rate shrink

Incorrect variable was used to get the next sample which caused S2
to be stuck with the same value resulting in loud background noise.

Signed-off-by: Steve Chen <schen at mvista.com>
Cc: <stable@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/core/oss/rate.c
... ... @@ -157,7 +157,7 @@
157 157 while (dst_frames1 > 0) {
158 158 S1 = S2;
159 159 if (src_frames1-- > 0) {
160   - S1 = *src;
  160 + S2 = *src;
161 161 src += src_step;
162 162 }
163 163 if (pos & ~R_MASK) {