Skip to content
Commit 2e283256 authored by Alan Young's avatar Alan Young Committed by Takashi Iwai
Browse files

ALSA: pcm: Call substream ack() method upon compat mmap commit



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: 9027c463 ("ALSA: pcm: Call ack() whenever appl_ptr is updated")
Signed-off-by: default avatarAlan 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: default avatarTakashi Iwai <tiwai@suse.de>
parent e73f0f0e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment