Skip to content

Commit

Permalink
ALSA: fix excessive background noise introduced by OSS emulation rate…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Steve Chen authored and Takashi Iwai committed Feb 23, 2009
1 parent e8bf069 commit 5370d96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/core/oss/rate.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static void resample_shrink(struct snd_pcm_plugin *plugin,
while (dst_frames1 > 0) {
S1 = S2;
if (src_frames1-- > 0) {
S1 = *src;
S2 = *src;
src += src_step;
}
if (pos & ~R_MASK) {
Expand Down

0 comments on commit 5370d96

Please sign in to comment.