summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-05-24 18:23:20 +0200
committerTakashi Iwai <tiwai@suse.de>2017-06-02 19:38:24 +0200
commit68541213720df9bb7904cc1fecab563d424849ae (patch)
treee8d3036ac6fe85d3e0b43bfa0dec7f16ee315127 /drivers/usb
parenta9cd29e79965f0f769d13edcf2e9adb389698e7b (diff)
downloadblackbird-op-linux-68541213720df9bb7904cc1fecab563d424849ae.tar.gz
blackbird-op-linux-68541213720df9bb7904cc1fecab563d424849ae.zip
ALSA: pcm: Direct in-kernel read/write support
Now all materials are ready, let's allow the direct in-kernel read/write, i.e. a kernel-space buffer is passed for read or write, instead of the normal user-space buffer. This feature is used by OSS layer and UAC1 driver, for example. The __snd_pcm_lib_xfer() takes in_kernel argument that indicates the in-kernel buffer copy. When this flag is set, another transfer code is used. It's either via copy_kernel PCM ops or the normal memcpy(), depending on the driver setup. As external API, snd_pcm_kernel_read(), *_write() and other variants are provided. That's all. This support is really simple because of the code refactoring until now. Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud