WSL2-Linux-Kernel/sound/drivers
Pattara Teerapong d1118465ae ALSA: aloop: Fix random zeros in capture data when using jiffies timer
commit 3e48940abe 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 11:30:02 +02:00
..
mpu401 ALSA: mpu401: Allocate resources with device-managed APIs 2021-07-19 16:17:30 +02:00
opl3 ALSA: drivers: opl3: Fix incorrect use of vp->state 2021-12-29 12:28:50 +01:00
opl4 ALSA: opl4: More constification 2020-01-05 16:15:08 +01:00
pcsp ALSA: pcsp: Make hrtimer forwarding more robust 2021-09-28 10:58:08 +02:00
vx ALSA: vx: Manage vx_core object with devres 2021-07-19 16:17:09 +02:00
Kconfig ALSA: aloop: Fix spelling mistake "synchronization" -> "synchronization" 2021-07-19 15:44:30 +02:00
Makefile sound: ac97: Remove sound driver for ancient platform 2020-05-28 23:24:34 +10:00
aloop.c ALSA: aloop: Fix random zeros in capture data when using jiffies timer 2022-09-15 11:30:02 +02:00
dummy.c ALSA: dummy: Allocate resources with device-managed APIs 2021-07-19 16:17:32 +02:00
mtpav.c ALSA: mtpav: Don't call card private_free at probe error path 2022-04-20 09:34:12 +02:00
mts64.c ALSA: serial: Fix assignment in if condition 2021-06-09 17:30:34 +02:00
portman2x4.c ALSA: serial: Fix assignment in if condition 2021-06-09 17:30:34 +02:00
serial-u16550.c ALSA: serial-u16550: Allocate resources with device-managed APIs 2021-07-19 16:17:30 +02:00
virmidi.c ALSA: virmidi: Allocate resources with device-managed APIs 2021-07-19 16:17:28 +02:00