OSDN Git Service

axfer: add support for MMAP PCM operation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 13 Nov 2018 06:41:35 +0000 (15:41 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Nov 2018 11:04:37 +0000 (12:04 +0100)
commitb5d2fadfb18b5e2b2f03037256998b2fbcb9b226
treeb27eea6ddbdb08bfbc75401a0b7dccc94c8452a3
parentc46d46a436993d26dc8819d3f12338683a39ad52
axfer: add support for MMAP PCM operation

In alsa-lib PCM API, data frames can be handled in mapped page frame,
instead of calling any system calls.

This commit support for this type of operation. To reduce CPU usage,
this commit uses 'snd_pcm_wait()' to wait for event notification.

Below lines are examples to execute:
$ axfer transfer -M -P -d 2 -D hw:0,3 /dev/urandom -f dat -vvv
$ axfer transfer -M -C -d 2 -D hw:1,0 /dev/null -r 48000 -vvv

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
axfer/Makefile.am
axfer/xfer-libasound-irq-mmap.c [new file with mode: 0644]
axfer/xfer-libasound.c
axfer/xfer-libasound.h