]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: dummy - Fake buffer allocations
authorTakashi Iwai <tiwai@suse.de>
Fri, 4 Sep 2009 10:19:36 +0000 (12:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 7 Sep 2009 07:01:10 +0000 (09:01 +0200)
commit544fb698aae1e663d02e6faf28102050d5e3199f
tree5d12014b8547f6dd13281cd1b6be2bd3d38adfa9
parent3c19d7b6c40dc4a5b7a5ccd3d493b22fd9f0a84e
ALSA: dummy - Fake buffer allocations

Instead of allocating the real buffers, use a fake buffer and ignore
read/write in the dummy driver so that we can save the resources.
For mmap, a single page (unique to the direction, though) is reused
to all buffers.

When the app requires to read/write the real buffers, pass fake_buffer=0
module option at loading time.  This will get back to the old behavior.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Documentation/sound/alsa/ALSA-Configuration.txt
sound/drivers/dummy.c