summaryrefslogtreecommitdiffstats
path: root/sound/firewire/fireworks/fireworks.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-04-25 22:45:09 +0900
committerTakashi Iwai <tiwai@suse.de>2014-05-26 14:28:01 +0200
commita63d3ff1059a4d2236521e4fdbafabfc62b4f81a (patch)
tree4598ead1e5c0f3e3b09881d361cd892475be1b88 /sound/firewire/fireworks/fireworks.c
parent6a22683e89e2c851f754ebbec0f2a53f2967bc07 (diff)
downloadop-kernel-dev-a63d3ff1059a4d2236521e4fdbafabfc62b4f81a.zip
op-kernel-dev-a63d3ff1059a4d2236521e4fdbafabfc62b4f81a.tar.gz
ALSA: fireworks: Add MIDI interface
This commit adds a functionality to capture/playback MIDI messages. When no AMDTP streams are running, this driver starts AMDTP stream for MIDI stream at current sampling rate. 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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/firewire/fireworks/fireworks.c b/sound/firewire/fireworks/fireworks.c
index 311e4a6..9204c7c 100644
--- a/sound/firewire/fireworks/fireworks.c
+++ b/sound/firewire/fireworks/fireworks.c
@@ -226,6 +226,12 @@ efw_probe(struct fw_unit *unit,
snd_efw_proc_init(efw);
+ if (efw->midi_out_ports || efw->midi_in_ports) {
+ err = snd_efw_create_midi_devices(efw);
+ if (err < 0)
+ goto error;
+ }
+
err = snd_efw_stream_init_duplex(efw);
if (err < 0)
goto error;
OpenPOWER on IntegriCloud