projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8bf069
)
ALSA: fix excessive background noise introduced by OSS emulation rate shrink
author
Steve Chen
<schen@mvista.com>
Sat, 21 Feb 2009 14:05:04 +0000
(08:05 -0600)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 23 Feb 2009 06:49:04 +0000
(07:49 +0100)
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>
sound/core/oss/rate.c
patch
|
blob
|
history
diff --git
a/sound/core/oss/rate.c
b/sound/core/oss/rate.c
index a466443c4a2649b819147e70d9f041bc1f25b38b..2fa9299a440dbb99e767c079e664d0a1133e8762 100644
(file)
--- 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) {
- S
1
= *src;
+ S
2
= *src;
src += src_step;
}
if (pos & ~R_MASK) {