diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2017-03-22 15:30:22 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-03-28 13:33:53 +0300 |
commit | dd49b2d1f04af9b1f44e9fe82c85f374f662c61b (patch) | |
tree | 3d24378eea1b2dfb16d3fd808679aea886c1018a /sound/firewire/motu/motu.h | |
parent | 4638ec6ede0847c75bd943d54237efb118f4abae (diff) | |
download | linux-dd49b2d1f04af9b1f44e9fe82c85f374f662c61b.tar.xz |
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>
Diffstat (limited to 'sound/firewire/motu/motu.h')
-rw-r--r-- | sound/firewire/motu/motu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/firewire/motu/motu.h b/sound/firewire/motu/motu.h index 4d079d66cf77..afc6de654daa 100644 --- a/sound/firewire/motu/motu.h +++ b/sound/firewire/motu/motu.h @@ -131,4 +131,6 @@ int snd_motu_stream_start_duplex(struct snd_motu *motu, unsigned int rate); void snd_motu_stream_stop_duplex(struct snd_motu *motu); void snd_motu_proc_init(struct snd_motu *motu); + +int snd_motu_create_pcm_devices(struct snd_motu *motu); #endif |