From 0120d0f1fe3bbf6c6a450056be56a70c409cf7a3 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 30 Sep 2015 09:39:20 +0900 Subject: 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 Signed-off-by: Takashi Iwai --- sound/firewire/digi00x/digi00x.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sound/firewire/digi00x/digi00x.c') 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; -- cgit v1.2.3-59-g8ed1b