diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2014-04-25 17:45:18 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-05-26 16:30:16 +0400 |
commit | 248b78027d26735eb22f5ee91a400e5eabfea77d (patch) | |
tree | c0059652bb1b659b6d76f37b061e65e642e849b7 /sound/firewire/bebob/bebob.c | |
parent | ad9697bad78fab4665d93e61c702892e289e1764 (diff) | |
download | linux-248b78027d26735eb22f5ee91a400e5eabfea77d.tar.xz |
ALSA: bebob: Add MIDI interface
This commit adds a functionality to capture/playback MIDI messages.
When no AMDTP streams are running, this module starts AMDTP stream at current
sampling rate for MIDI substream.
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.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/firewire/bebob/bebob.c b/sound/firewire/bebob/bebob.c index 0c3f1f6ab670..383df9a22004 100644 --- a/sound/firewire/bebob/bebob.c +++ b/sound/firewire/bebob/bebob.c @@ -164,6 +164,13 @@ bebob_probe(struct fw_unit *unit, snd_bebob_proc_init(bebob); + if ((bebob->midi_input_ports > 0) || + (bebob->midi_output_ports > 0)) { + err = snd_bebob_create_midi_devices(bebob); + if (err < 0) + goto error; + } + err = snd_bebob_stream_init_duplex(bebob); if (err < 0) goto error; |