ALSA: firewire-motu: code refactoring to handle model specific switch for protocol v2
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 30 Oct 2019 08:06:43 +0000 (17:06 +0900)
committerTakashi Iwai <tiwai@suse.de>
Wed, 30 Oct 2019 09:57:56 +0000 (10:57 +0100)
commitbd1073728260e1d2f9589c928b6d8ddb14f5646f
tree51ac3c83fd62822acb41ff371ae9d0bc8fca5130
parent4b2079f80aa065b237955e75d0b627943656b0ab
ALSA: firewire-motu: code refactoring to handle model specific switch for protocol v2

In MOTU FireWire series, devices which support protocol version 2 have
several types of hardware design to process audio data frames for isoc
packet. Roughly devices are categorized into three groups:
 - 828mkII
 - Traveler/896HD
 - UltraLite/8pre FireWire

Some bit flags in register addressed by 0x'ffff'f000'0b14
includes device-specific effects.

This commit cleanups implementation of protocol v2 in this point.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20191030080644.1704-6-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/motu-protocol-v2.c
sound/firewire/motu/motu.c
sound/firewire/motu/motu.h