aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/firewire/digi00x/digi00x.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2015-09-30 09:39:20 +0900
committerTakashi Iwai <tiwai@suse.de>2015-09-30 15:36:40 +0200
commit0120d0f1fe3bbf6c6a450056be56a70c409cf7a3 (patch)
tree4024ee7b4dc3353ff238259b92b50afbef8fe725 /sound/firewire/digi00x/digi00x.c
parentALSA: firewire-digi00x: add proc node to show clock status (diff)
downloadwireguard-linux-0120d0f1fe3bbf6c6a450056be56a70c409cf7a3.tar.xz
wireguard-linux-0120d0f1fe3bbf6c6a450056be56a70c409cf7a3.zip
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 a5f66fd1fb18..166c1d43123f 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;