summaryrefslogtreecommitdiffstats
path: root/sound/firewire/fireworks/fireworks.h
diff options
context:
space:
mode:
authorTakashi Sakamoto2014-04-25 15:45:11 +0200
committerTakashi Iwai2014-05-26 14:28:27 +0200
commitaa02bb6e60783938d61eefe38346781a646800a6 (patch)
tree9eda5e0ae49c61c799b39682e943768ba4e51e94 /sound/firewire/fireworks/fireworks.h
parentALSA: fireworks/firewire-lib: Add a quirk of data blocks for MIDI in out-stream (diff)
downloadkernel-qcow2-linux-aa02bb6e60783938d61eefe38346781a646800a6.tar.gz
kernel-qcow2-linux-aa02bb6e60783938d61eefe38346781a646800a6.tar.xz
kernel-qcow2-linux-aa02bb6e60783938d61eefe38346781a646800a6.zip
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.h')
-rw-r--r--sound/firewire/fireworks/fireworks.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/firewire/fireworks/fireworks.h b/sound/firewire/fireworks/fireworks.h
index d1819696754d..36419ca12d6f 100644
--- a/sound/firewire/fireworks/fireworks.h
+++ b/sound/firewire/fireworks/fireworks.h
@@ -23,6 +23,7 @@
#include <sound/pcm.h>
#include <sound/info.h>
#include <sound/rawmidi.h>
+#include <sound/pcm_params.h>
#include "../packets-buffer.h"
#include "../iso-resources.h"
@@ -201,6 +202,9 @@ void snd_efw_proc_init(struct snd_efw *efw);
int snd_efw_create_midi_devices(struct snd_efw *efw);
+int snd_efw_create_pcm_devices(struct snd_efw *efw);
+int snd_efw_get_multiplier_mode(unsigned int sampling_rate, unsigned int *mode);
+
#define SND_EFW_DEV_ENTRY(vendor, model) \
{ \
.match_flags = IEEE1394_MATCH_VENDOR_ID | \