summaryrefslogtreecommitdiff
path: root/sound/firewire/motu/motu.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2020-05-19 14:16:33 +0300
committerTakashi Iwai <tiwai@suse.de>2020-05-22 17:52:14 +0300
commitdfbaa4dc11eb93e3662dcefbf00a14235c4c1e8e (patch)
treeee47018a700e0401bfabbad31e2131ffaa8d728c /sound/firewire/motu/motu.h
parent562f0c6700cfeb28b7a95d4b7cb6b0496d0b2fb5 (diff)
downloadlinux-dfbaa4dc11eb93e3662dcefbf00a14235c4c1e8e.tar.xz
ALSA: firewire-motu: add model-specific table of chunk count
In MOTU protocol, data block consists of SPH and 24-bit chunks aligned to quadlet. The number of chunks per data block is specific to model. For models with optical interface, the number differs depending on I/O settings for the interface (ADAT, TOSLINK). Currently the number is calculated from flags in model-specific data. However this is weak in the case that the model has quirks. Actually, for quirks of some models, flags are used against their original meanings. This commit adds model-specific table of chunk count. For future integration, this table is based on the calculation. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Link: https://lore.kernel.org/r/20200519111641.123211-7-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/motu/motu.h')
-rw-r--r--sound/firewire/motu/motu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/motu/motu.h b/sound/firewire/motu/motu.h
index f8274ed94766..790aa34d396f 100644
--- a/sound/firewire/motu/motu.h
+++ b/sound/firewire/motu/motu.h
@@ -118,6 +118,9 @@ struct snd_motu_spec {
enum snd_motu_protocol_version protocol_version;
enum snd_motu_spec_flags flags;
+ unsigned char tx_fixed_pcm_chunks[3];
+ unsigned char rx_fixed_pcm_chunks[3];
+
unsigned char analog_in_ports;
unsigned char analog_out_ports;
};