]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: pcm: Disable only control mmap for explicit appl_ptr sync
authorTakashi Iwai <tiwai@suse.de>
Tue, 27 Jun 2017 09:54:37 +0000 (11:54 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 Jun 2017 11:56:03 +0000 (13:56 +0200)
commitb602aa8eb1a0f52f0f9a09728b3b1c9133136656
treefc4cb31166644316033d0a8f350a0a2b83148839
parent4b671f57747468d7c810caaf955f79ff1aece4d4
ALSA: pcm: Disable only control mmap for explicit appl_ptr sync

Now that user-space (typically alsa-lib) can specify which protocol
version it supports, we can optimize the kernel code depending on the
reported protocol version.

In this patch, we change the previous hack for enforcing the appl_ptr
sync by disabling status/control mmap.  Instead of forcibly disabling
both mmaps, we disable only the control mmap when user-space declares
the supported protocol version new enough.  For older user-space,
still both PCM status and control mmaps are disabled when requested by
the driver due to the compatibility reason.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c