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 ALSA: drivers: Remove empty init and exit 2018-08-03 16:11:30 +02:00
opl3 ALSA: drivers: opl3: Fix incorrect use of vp->state 2021-12-29 12:20:46 +01:00
opl4 ALSA: drivers: Remove empty init and exit 2018-08-03 16:11:30 +02:00
pcsp License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vx ALSA: drivers: Remove empty init and exit 2018-08-03 16:11:30 +02:00
aloop.c ALSA: aloop: Fix random zeros in capture data when using jiffies timer 2022-09-15 12:17:05 +02:00
dummy.c ALSA: dummy: Fix PCM format loop in proc output 2020-02-11 04:33:56 -08:00
Kconfig docs: Fix some broken references 2018-06-15 18:10:01 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ml403-ac97cr.c ALSA: drivers: constify snd_pcm_ops structures 2017-08-19 11:02:15 +02:00
mtpav.c ALSA: drivers: Convert timers to use timer_setup() 2017-10-24 21:01:16 +02:00
mts64.c sound: Use octal not symbolic permissions 2018-05-28 11:27:20 +02:00
pcm-indirect2.c treewide: Fix typos in printk 2015-12-08 14:59:19 +01:00
pcm-indirect2.h
portman2x4.c sound: Use octal not symbolic permissions 2018-05-28 11:27:20 +02:00
serial-u16550.c ALSA: drivers: Convert timers to use timer_setup() 2017-10-24 21:01:16 +02:00
virmidi.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00