summaryrefslogtreecommitdiff
path: root/sound/firewire/fireworks/fireworks.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-04-25 17:45:11 +0400
committerTakashi Iwai <tiwai@suse.de>2014-05-26 16:28:27 +0400
commitaa02bb6e60783938d61eefe38346781a646800a6 (patch)
tree9eda5e0ae49c61c799b39682e943768ba4e51e94 /sound/firewire/fireworks/fireworks.c
parent53111cdc53205fd35aac392c1d33893766be514e (diff)
downloadlinux-aa02bb6e60783938d61eefe38346781a646800a6.tar.xz
ALSA: fireworks: 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/fireworks/fireworks.c')
-rw-r--r--sound/firewire/fireworks/fireworks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/firewire/fireworks/fireworks.c b/sound/firewire/fireworks/fireworks.c
index 9204c7c56513..d7877c79e32f 100644
--- a/sound/firewire/fireworks/fireworks.c
+++ b/sound/firewire/fireworks/fireworks.c
@@ -232,6 +232,10 @@ efw_probe(struct fw_unit *unit,
goto error;
}
+ err = snd_efw_create_pcm_devices(efw);
+ if (err < 0)
+ goto error;
+
err = snd_efw_stream_init_duplex(efw);
if (err < 0)
goto error;