xref: /kernel/linux/linux-6.6/sound/firewire/dice/dice-focusrite.c (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/sound/firewire/dice/
162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci// dice-focusrite.c - a part of driver for DICE based devices
362306a36Sopenharmony_ci//
462306a36Sopenharmony_ci// Copyright (c) 2022 Takashi Sakamoto
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#include "dice.h"
762306a36Sopenharmony_ci
862306a36Sopenharmony_ciint snd_dice_detect_focusrite_pro40_tcd3070_formats(struct snd_dice *dice)
962306a36Sopenharmony_ci{
1062306a36Sopenharmony_ci	// Focusrite shipped several variants of Saffire Pro 40. One of them is based on TCD3070-CH
1162306a36Sopenharmony_ci	// apart from the others with TCD2220. It doesn't support TCAT protocol extension.
1262306a36Sopenharmony_ci	dice->tx_pcm_chs[0][0] = 20;
1362306a36Sopenharmony_ci	dice->tx_midi_ports[0] = 1;
1462306a36Sopenharmony_ci	dice->rx_pcm_chs[0][0] = 20;
1562306a36Sopenharmony_ci	dice->rx_midi_ports[0] = 1;
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci	dice->tx_pcm_chs[0][1] = 16;
1862306a36Sopenharmony_ci	dice->tx_midi_ports[1] = 1;
1962306a36Sopenharmony_ci	dice->rx_pcm_chs[0][1] = 16;
2062306a36Sopenharmony_ci	dice->rx_midi_ports[1] = 1;
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci	return 0;
2362306a36Sopenharmony_ci}
24

Indexes created Thu Nov 07 10:32:03 CST 2024