diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-01-22 14:17:01 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-01-22 17:20:50 +0100 |
commit | 900896771a2f7ba126194911c58dc095fc0dd3d7 (patch) | |
tree | fd08f05bf9154bb04348443d2e2b6af8becf514a /sound/firewire/fireface/ff-transaction.c | |
parent | ALSA: fireface: change prototype of handler for async transaction with MIDI m... (diff) | |
download | linux-900896771a2f7ba126194911c58dc095fc0dd3d7.tar.xz linux-900896771a2f7ba126194911c58dc095fc0dd3d7.zip |
ALSA: fireface: add model-dependent parameter for address range to receive async transaction
In Fireface series, drivers can register destination address for
asynchronous transaction which transfers MIDI messages from device.
In former models, all of the transactions arrive at the registered
address without any offset. In latter models, each of the transaction
arrives at the registered address with sequential offset within 0x00
to 0x7f. This seems to be for discontinuity detection.
This commit adds model-dependent member for the address range.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/fireface/ff-transaction.c')
-rw-r--r-- | sound/firewire/fireface/ff-transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/fireface/ff-transaction.c b/sound/firewire/fireface/ff-transaction.c index d3fde813ce17..0506755891ce 100644 --- a/sound/firewire/fireface/ff-transaction.c +++ b/sound/firewire/fireface/ff-transaction.c @@ -156,7 +156,7 @@ static int allocate_own_address(struct snd_ff *ff, int i) struct fw_address_region midi_msg_region; int err; - ff->async_handler.length = SND_FF_MAXIMIM_MIDI_QUADS * 4; + ff->async_handler.length = ff->spec->midi_addr_range; ff->async_handler.address_callback = handle_midi_msg; ff->async_handler.callback_data = ff; |