diff options
author | Steve Chen <schen@mvista.com> | 2009-02-21 08:05:04 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-03-16 17:32:11 -0700 |
commit | 0d0ed5ca7301baf01bef6bf1d81c6966bde479d4 (patch) | |
tree | c981cba8ce05f9874703ae7f516a5bace27ef770 /sound | |
parent | e1d2998309b487e0a23249be0307f0fda38f07a4 (diff) |
ALSA: fix excessive background noise introduced by OSS emulation rate shrink
commit 5370d96f85962769ea3df3a81cc885f257c51589 upstream.
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@mvista.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/oss/rate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/oss/rate.c b/sound/core/oss/rate.c index a466443c4a2..2fa9299a440 100644 --- a/sound/core/oss/rate.c +++ b/sound/core/oss/rate.c @@ -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) { |