[alsa-devel] [PATCH 0/3] ALSA: pcm: implement the anonymous dup
Mark Brown
broonie at kernel.org
Tue Jan 29 20:48:48 CET 2019
On Tue, Jan 29, 2019 at 06:59:06PM +0100, Jaroslav Kysela wrote:
> This patchset contains the anonymous dup implementation with permissions
> checking for the ALSA's PCM interface in kernel to enable the restricted
> DMA sound buffer sharing for the restricted tasks.
> The code was tested through qemu and it seems to be pretty stable.
> The initial tinyalsa implementation can be found here:
> https://github.com/perexg/tinyalsa/commits/anondup
> The filtering might be refined. It depends on the real requirements.
> Perhaps, we may create more ioctl groups. Any comments are more than
> welcome.
Thanks for looking at this! Copying in Phil who is probably best placed
to review these from an Android perspective.
> Cc: Mark Brown <broonie at kernel.org>
> Cc: Leo Yan <leo.yan at linaro.org>
> Cc: Baolin Wang <baolin.wang at linaro.org>
>
> Jaroslav Kysela (3):
> ALSA: pcm: implement the anonymous dup (inode file descriptor)
> ALSA: pcm: remove the file member from struct pcm
> ALSA: pcm: implement the ioctl/mmap filter for the anonymous dup
>
> include/sound/pcm.h | 10 +--
> include/uapi/sound/asound.h | 12 +++-
> sound/core/oss/pcm_oss.c | 3 +-
> sound/core/pcm.c | 48 +++++++++-----
> sound/core/pcm_compat.c | 1 +
> sound/core/pcm_native.c | 154 +++++++++++++++++++++++++++++++++++++++++---
> 6 files changed, 195 insertions(+), 33 deletions(-)
>
> --
> 2.13.6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190129/a562cd68/attachment.sig>
More information about the Alsa-devel
mailing list