[PATCH] ALSA: core: Call substream ack() method upon compat mmap, commit

Takashi Iwai tiwai at suse.de
Mon Jul 12 13:11:52 CEST 2021


On Mon, 12 Jul 2021 12:05:40 +0200,
Alan Young wrote:
> 
> 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().
> 
> 
> >From 9c3a4ffca82a0106cd858db8be29945cfbcc9952 Mon Sep 17 00:00:00 2001
> From: Alan Young <consult.awy at gmail.com>
> Date: Fri, 9 Jul 2021 09:48:54 +0100
> Subject: [PATCH] ALSA: core: 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().
> 
> Signed-off-by: Alan Young <consult.awy at gmail.com>

Thanks, applied.


Takashi


More information about the Alsa-devel mailing list