diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2018-06-18 14:07:53 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-19 20:44:50 +0200 |
commit | 06ac0b6f8f74e98d32f9dea5209bd26f3e7b50ba (patch) | |
tree | 89a04fb4ddae4bebbcab20ca0d8675bb2e6c2d92 /sound/firewire/motu/motu-protocol-v2.c | |
parent | ALSA: firewire-motu: add a flag for chunks for main 1/2 out (diff) | |
download | linux-06ac0b6f8f74e98d32f9dea5209bd26f3e7b50ba.tar.xz linux-06ac0b6f8f74e98d32f9dea5209bd26f3e7b50ba.zip |
ALSA: firewire-motu: add a flag for AES/EBU on XLR interface
MOTU Traveler supports AES/EBU on XLR interface and data block of rx/tx
packet includes two chunk for the interface. This commit adds a flag
for this purpose.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/motu/motu-protocol-v2.c')
-rw-r--r-- | sound/firewire/motu/motu-protocol-v2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/firewire/motu/motu-protocol-v2.c b/sound/firewire/motu/motu-protocol-v2.c index 614f9b11e010..f25b1ba118a2 100644 --- a/sound/firewire/motu/motu-protocol-v2.c +++ b/sound/firewire/motu/motu-protocol-v2.c @@ -160,6 +160,11 @@ static void calculate_fixed_part(struct snd_motu_packet_format *formats, pcm_chunks[1] += 2; } + if (flags & SND_MOTU_SPEC_HAS_AESEBU_IFACE) { + pcm_chunks[0] += 2; + pcm_chunks[1] += 2; + } + /* * All of v2 models have a pair of coaxial interfaces for digital in/out * port. At 44.1/48.0/88.2/96.0 kHz, packets includes PCM from these |