android_kernel_xiaomi_sm7250/sound/drivers
Pattara Teerapong 763acbb83e ALSA: aloop: Fix random zeros in capture data when using jiffies timer
commit 3e48940abee88b8dbbeeaf8a07e7b2b6be1271b3 upstream.

In loopback_jiffies_timer_pos_update(), we are getting jiffies twice.
First time for playback, second time for capture. Jiffies can be updated
between these two calls and if the capture jiffies is larger, extra zeros
will be filled in the capture buffer.

Change to get jiffies once and use it for both playback and capture.

Signed-off-by: Pattara Teerapong <pteerapong@chromium.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220901144036.4049060-1-pteerapong@chromium.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-15 12:17:05 +02:00
..
mpu401
opl3
opl4
pcsp
vx
aloop.c ALSA: aloop: Fix random zeros in capture data when using jiffies timer 2022-09-15 12:17:05 +02:00
dummy.c
Kconfig
Makefile
ml403-ac97cr.c
mtpav.c
mts64.c
pcm-indirect2.c
pcm-indirect2.h
portman2x4.c
serial-u16550.c
virmidi.c