dice-harman.c 629 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0
  2. // dice-harman.c - a part of driver for DICE based devices
  3. //
  4. // Copyright (c) 2021 Takashi Sakamoto
  5. #include "dice.h"
  6. int snd_dice_detect_harman_formats(struct snd_dice *dice)
  7. {
  8. int i;
  9. // Lexicon I-ONYX FW810s supports sampling transfer frequency up to
  10. // 96.0 kHz, 12 PCM channels and 1 MIDI channel in its first tx stream
  11. // , 10 PCM channels and 1 MIDI channel in its first rx stream for all
  12. // of the frequencies.
  13. for (i = 0; i < 2; ++i) {
  14. dice->tx_pcm_chs[0][i] = 12;
  15. dice->tx_midi_ports[0] = 1;
  16. dice->rx_pcm_chs[0][i] = 10;
  17. dice->rx_midi_ports[0] = 1;
  18. }
  19. return 0;
  20. }