summaryrefslogtreecommitdiff
path: root/sound/pci/hda/patch_ca0132.c
diff options
context:
space:
mode:
authorAlan Young <consult.awy@gmail.com>2021-07-09 11:48:54 +0300
committerTakashi Iwai <tiwai@suse.de>2021-07-12 14:10:12 +0300
commit2e2832562c877e6530b8480982d99a4ff90c6777 (patch)
tree9fb77f556407893d3789e4cfc4ef712f5825da18 /sound/pci/hda/patch_ca0132.c
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
downloadlinux-2e2832562c877e6530b8480982d99a4ff90c6777.tar.xz
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: 9027c4639ef1 ("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>
Diffstat (limited to 'sound/pci/hda/patch_ca0132.c')
0 files changed, 0 insertions, 0 deletions