diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2014-04-25 09:45:09 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-05-26 08:28:01 -0400 |
commit | a63d3ff1059a4d2236521e4fdbafabfc62b4f81a (patch) | |
tree | 4598ead1e5c0f3e3b09881d361cd892475be1b88 /sound/firewire/fireworks/fireworks.c | |
parent | 6a22683e89e2c851f754ebbec0f2a53f2967bc07 (diff) |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/firewire/fireworks/fireworks.c b/sound/firewire/fireworks/fireworks.c index 311e4a6ef0a6..9204c7c56513 100644 --- a/sound/firewire/fireworks/fireworks.c +++ b/sound/firewire/fireworks/fireworks.c | |||
@@ -226,6 +226,12 @@ efw_probe(struct fw_unit *unit, | |||
226 | 226 | ||
227 | snd_efw_proc_init(efw); | 227 | snd_efw_proc_init(efw); |
228 | 228 | ||
229 | if (efw->midi_out_ports || efw->midi_in_ports) { | ||
230 | err = snd_efw_create_midi_devices(efw); | ||
231 | if (err < 0) | ||
232 | goto error; | ||
233 | } | ||
234 | |||
229 | err = snd_efw_stream_init_duplex(efw); | 235 | err = snd_efw_stream_init_duplex(efw); |
230 | if (err < 0) | 236 | if (err < 0) |
231 | goto error; | 237 | goto error; |