Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Steve Chen and committed by
Takashi Iwai
5370d96f e8bf069c

+1 -1
+1 -1
sound/core/oss/rate.c
··· 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) {