summaryrefslogtreecommitdiff
path: root/sound/firewire/digi00x/digi00x.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2015-09-30 00:39:20 (GMT)
committerTakashi Iwai <tiwai@suse.de>2015-09-30 13:36:40 (GMT)
commit0120d0f1fe3bbf6c6a450056be56a70c409cf7a3 (patch)
tree4024ee7b4dc3353ff238259b92b50afbef8fe725 /sound/firewire/digi00x/digi00x.c
parent927f17dc3a517128f07bbc1634fb25ce2587dc6f (diff)
downloadlinux-0120d0f1fe3bbf6c6a450056be56a70c409cf7a3.tar.xz
ALSA: firewire-digi00x: add PCM functionality
This commit adds PCM functionality to transmit/receive PCM samples. Any PCM substreams are jointed because incoming/outgoing AMDTP streams are bound. When one of PCM substream is running or external clock source is selected, current sampling rate is used. Else, the sampling rate is changed as an userspace application requests. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/digi00x/digi00x.c')
-rw-r--r--sound/firewire/digi00x/digi00x.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/firewire/digi00x/digi00x.c b/sound/firewire/digi00x/digi00x.c
index a5f66fd..166c1d4 100644
--- a/sound/firewire/digi00x/digi00x.c
+++ b/sound/firewire/digi00x/digi00x.c
@@ -83,6 +83,10 @@ static int snd_dg00x_probe(struct fw_unit *unit,
snd_dg00x_proc_init(dg00x);
+ err = snd_dg00x_create_pcm_devices(dg00x);
+ if (err < 0)
+ goto error;
+
err = snd_card_register(card);
if (err < 0)
goto error;