summaryrefslogtreecommitdiff
path: root/sound/firewire/bebob/bebob.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-04-25 22:45:19 +0900
committerTakashi Iwai <tiwai@suse.de>2014-05-26 14:30:46 +0200
commitfbbebd2c40795e87f1280ca4d963f7cbe1c83168 (patch)
tree349d71f02954a977d33e595c835045bad2722438 /sound/firewire/bebob/bebob.c
parent248b78027d26735eb22f5ee91a400e5eabfea77d (diff)
ALSA: bebob: Add PCM interface
This commit adds a functionality to capture/playback PCM samples. When AMDTP stream is already running for PCM or the source of clock is not internal, available sampling rate is limited at current one. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/bebob/bebob.c')
-rw-r--r--sound/firewire/bebob/bebob.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/firewire/bebob/bebob.c b/sound/firewire/bebob/bebob.c
index 383df9a22004..dbd12c360046 100644
--- a/sound/firewire/bebob/bebob.c
+++ b/sound/firewire/bebob/bebob.c
@@ -171,6 +171,10 @@ bebob_probe(struct fw_unit *unit,
goto error;
}
+ err = snd_bebob_create_pcm_devices(bebob);
+ if (err < 0)
+ goto error;
+
err = snd_bebob_stream_init_duplex(bebob);
if (err < 0)
goto error;