diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2017-04-14 16:46:30 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-04-14 14:50:38 +0200 |
commit | 3e7dc65ca001a6e40e78b912c6146ec013a3b49a (patch) | |
tree | 7e01017bd08a870b7f7afaa25d0e3b50bed8d39f /sound/firewire/tascam/tascam-midi.c | |
parent | 98a00d3602a1c50a397893c5de26dbbe7d77804a (diff) | |
download | linux-3e7dc65ca001a6e40e78b912c6146ec013a3b49a.tar.gz linux-3e7dc65ca001a6e40e78b912c6146ec013a3b49a.tar.bz2 linux-3e7dc65ca001a6e40e78b912c6146ec013a3b49a.zip |
ALSA: firewire-tascam: initialize parameters at open of rawmidi character devices
In current design of ALSA driver for TASCAM FireWire series, initialization
of members in asymc midi port structure is done at device probing. Some of
the members should be initialized every time to use rawmidi devices because
they're changed in sequence of transmission for MIDI messages.
This commit adds a new function to initialize them. Invariant parameters
during object lifetime are kept as is.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/tascam/tascam-midi.c')
-rw-r--r-- | sound/firewire/tascam/tascam-midi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/firewire/tascam/tascam-midi.c b/sound/firewire/tascam/tascam-midi.c index df4f95d65925..901df81129bb 100644 --- a/sound/firewire/tascam/tascam-midi.c +++ b/sound/firewire/tascam/tascam-midi.c @@ -18,6 +18,8 @@ static int midi_playback_open(struct snd_rawmidi_substream *substream) { struct snd_tscm *tscm = substream->rmidi->private_data; + snd_fw_async_midi_port_init(&tscm->out_ports[substream->number]); + /* Initialize internal status. */ tscm->running_status[substream->number] = 0; tscm->on_sysex[substream->number] = 0; |