kernel_optimize_test/sound
Alan Young 431e311055 ALSA: pcm: Call substream ack() method upon compat mmap commit
commit 2e2832562c877e6530b8480982d99a4ff90c6777 upstream.

If a 32-bit application is being used with a 64-bit kernel and is using
the mmap mechanism to write data, then the SNDRV_PCM_IOCTL_SYNC_PTR
ioctl results in calling snd_pcm_ioctl_sync_ptr_compat(). Make this use
pcm_lib_apply_appl_ptr() so that the substream's ack() method, if
defined, is called.

The snd_pcm_sync_ptr() function, used in the 64-bit ioctl case, already
uses snd_pcm_ioctl_sync_ptr_compat().

Fixes: 9027c4639e ("ALSA: pcm: Call ack() whenever appl_ptr is updated")
Signed-off-by: Alan Young <consult.awy@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/c441f18c-eb2a-3bdd-299a-696ccca2de9c@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-28 14:35:43 +02:00
..
ac97
aoa
arm
atmel
core ALSA: pcm: Call substream ack() method upon compat mmap commit 2021-07-28 14:35:43 +02:00
drivers
firewire ALSA: firewire-motu: fix detection for S/PDIF source on optical interface in v2 protocol 2021-07-20 16:05:45 +02:00
hda ALSA: hda: intel-dsp-cfg: add missing ElkhartLake PCI ID 2021-07-28 14:35:40 +02:00
i2c
isa ALSA: sb: Fix potential ABBA deadlock in CSP driver 2021-07-28 14:35:42 +02:00
mips
oss
parisc
pci ALSA: hdmi: Expose all pins on MSI MS-7C94 board 2021-07-28 14:35:42 +02:00
pcmcia
ppc
sh
soc ASoC: rt5631: Fix regcache sync errors on resume 2021-07-28 14:35:36 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Add registration quirk for JBL Quantum headsets 2021-07-28 14:35:42 +02:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c