]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire-motu: add PCM functionality
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 22 Mar 2017 12:30:22 +0000 (21:30 +0900)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Mar 2017 10:33:53 +0000 (12:33 +0200)
commit63ae4b1123af1cc53a97d12e984e6387f24ef6e7
tree3d24378eea1b2dfb16d3fd808679aea886c1018a
parente0325d0d13a4591266e2f5661aa9a1f5c9db5e6a
ALSA: firewire-motu: add PCM functionality

This commit adds PCM functionality to transmit/receive PCM samples.

When one of PCM substreams are running or external clock source is
selected, current sampling rate is used. Else, the sampling rate is
changed according to requests from a userspace application.

Available number of samples in a frame of PCM substream is determined at
open(2) to corresponding PCM character device. Later, packet streaming
starts by ioctl(2) with SNDRV_PCM_IOCTL_PREPARE. In theory, between them,
applications can change state of the unit by any write transaction to
change the number. In this case, this driver may fail packet streaming due
to wrong data format.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/Makefile
sound/firewire/motu/motu-pcm.c [new file with mode: 0644]
sound/firewire/motu/motu.c
sound/firewire/motu/motu.h