| 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 |
#include "dice.h" |
| 7 |
|
| 8 |
int snd_dice_detect_focusrite_pro40_tcd3070_formats(struct snd_dice *dice) |
| 9 |
{ |
| 10 |
// Focusrite shipped several variants of Saffire Pro 40. One of them is based on TCD3070-CH |
| 11 |
// apart from the others with TCD2220. It doesn't support TCAT protocol extension. |
| 12 |
dice->tx_pcm_chs[0][0] = 20; |
| 13 |
dice->tx_midi_ports[0] = 1; |
| 14 |
dice->rx_pcm_chs[0][0] = 20; |
| 15 |
dice->rx_midi_ports[0] = 1; |
| 16 |
|
| 17 |
dice->tx_pcm_chs[0][1] = 16; |
| 18 |
dice->tx_midi_ports[1] = 1; |
| 19 |
dice->rx_pcm_chs[0][1] = 16; |
| 20 |
dice->rx_midi_ports[1] = 1; |
| 21 |
|
| 22 |
return 0; |
| 23 |
} |