dice-focusrite.c 665 B

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