diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2017-04-14 09:46:30 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-04-14 14:50:38 +0200 |
commit | 3e7dc65ca001a6e40e78b912c6146ec013a3b49a (patch) | |
tree | 7e01017bd08a870b7f7afaa25d0e3b50bed8d39f /sound/firewire/tascam/tascam.h | |
parent | ALSA: firewire-tascam: use fixed-length array for message cache to async midi... (diff) | |
download | linux-3e7dc65ca001a6e40e78b912c6146ec013a3b49a.tar.xz 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.h')
-rw-r--r-- | sound/firewire/tascam/tascam.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/firewire/tascam/tascam.h b/sound/firewire/tascam/tascam.h index fdf352bc303f..37ec2016d033 100644 --- a/sound/firewire/tascam/tascam.h +++ b/sound/firewire/tascam/tascam.h @@ -146,8 +146,7 @@ void snd_tscm_stream_lock_changed(struct snd_tscm *tscm); int snd_tscm_stream_lock_try(struct snd_tscm *tscm); void snd_tscm_stream_lock_release(struct snd_tscm *tscm); -int snd_fw_async_midi_port_init(struct snd_fw_async_midi_port *port, - struct fw_unit *unit); +void snd_fw_async_midi_port_init(struct snd_fw_async_midi_port *port); static inline void snd_fw_async_midi_port_run(struct snd_fw_async_midi_port *port, |