diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-01-22 22:17:00 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-01-22 17:20:49 +0100 |
commit | 6c644e4e954ddae26880d82e7aa4f551662cdae3 (patch) | |
tree | 0b2ab9086095939a06b5b196f654ec597dc22c4e /sound/firewire/fireface/ff.h | |
parent | 9935d55b02906dec1b0795873cc4a1a7bb55b8f1 (diff) | |
download | linux-6c644e4e954ddae26880d82e7aa4f551662cdae3.tar.bz2 |
ALSA: fireface: change prototype of handler for async transaction with MIDI messages
In a series of Fireface, devices transfer asynchronous transaction with
MIDI messages. In the transaction, content is different depending on
models. ALSA fireface driver has protocol-dependent handler to pick up
MIDI messages from the content.
In latter models of the series, the transaction is transferred to range
of address sequentially. This seems to check continuity of transferred
messages.
This commit changes prototype of the handler to receive offset of
address for received transactions.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/fireface/ff.h')
-rw-r--r-- | sound/firewire/fireface/ff.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/firewire/fireface/ff.h b/sound/firewire/fireface/ff.h index 8aea7920b57f..ddcffb8d85c6 100644 --- a/sound/firewire/fireface/ff.h +++ b/sound/firewire/fireface/ff.h @@ -103,7 +103,8 @@ enum snd_ff_clock_src { }; struct snd_ff_protocol { - void (*handle_midi_msg)(struct snd_ff *ff, __le32 *buf, size_t length); + void (*handle_midi_msg)(struct snd_ff *ff, unsigned int offset, + __le32 *buf, size_t length); int (*get_clock)(struct snd_ff *ff, unsigned int *rate, enum snd_ff_clock_src *src); int (*switch_fetching_mode)(struct snd_ff *ff, bool enable); |