xref: /linux/sound/firewire/dice/dice-focusrite.c (revision 2133dc91d6658242009177b564ac47c49e08668a)
1 // SPDX-License-Identifier: GPL-2.0
2 // dice-focusrite.c - a part of driver for DICE based devices
3 //
4 // Copyright (c) 2022 Takashi Sakamoto
5 //
6 // Licensed under the terms of the GNU General Public License, version 2.
7 
8 #include "dice.h"
9 
10 int snd_dice_detect_focusrite_pro40_tcd3070_formats(struct snd_dice *dice)
11 {
12 	// Focusrite shipped several variants of Saffire Pro 40. One of them is based on TCD3070-CH
13 	// apart from the others with TCD2220. It doesn't support TCAT protocol extension.
14 	dice->tx_pcm_chs[0][0] = 20;
15 	dice->tx_midi_ports[0] = 1;
16 	dice->rx_pcm_chs[0][0] = 20;
17 	dice->rx_midi_ports[0] = 1;
18 
19 	dice->tx_pcm_chs[0][1] = 16;
20 	dice->tx_midi_ports[1] = 1;
21 	dice->rx_pcm_chs[0][1] = 16;
22 	dice->rx_midi_ports[1] = 1;
23 
24 	return 0;
25 }
26