You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
@@ -157,7 +157,7 @@ static void resample_shrink(struct snd_pcm_plugin *plugin,
|
|||||||
while (dst_frames1 > 0) {
|
while (dst_frames1 > 0) {
|
||||||
S1 = S2;
|
S1 = S2;
|
||||||
if (src_frames1-- > 0) {
|
if (src_frames1-- > 0) {
|
||||||
S1 = *src;
|
S2 = *src;
|
||||||
src += src_step;
|
src += src_step;
|
||||||
}
|
}
|
||||||
if (pos & ~R_MASK) {
|
if (pos & ~R_MASK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user