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>
while (dst_frames1 > 0) {
S1 = S2;
if (src_frames1-- > 0) {
while (dst_frames1 > 0) {
S1 = S2;
if (src_frames1-- > 0) {
src += src_step;
}
if (pos & ~R_MASK) {
src += src_step;
}
if (pos & ~R_MASK) {