1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 // dice-harman.c - a part of driver for DICE b 2 // dice-harman.c - a part of driver for DICE based devices 3 // 3 // 4 // Copyright (c) 2021 Takashi Sakamoto 4 // Copyright (c) 2021 Takashi Sakamoto 5 5 6 #include "dice.h" 6 #include "dice.h" 7 7 8 int snd_dice_detect_harman_formats(struct snd_ 8 int snd_dice_detect_harman_formats(struct snd_dice *dice) 9 { 9 { 10 int i; 10 int i; 11 11 12 // Lexicon I-ONYX FW810s supports samp 12 // Lexicon I-ONYX FW810s supports sampling transfer frequency up to 13 // 96.0 kHz, 12 PCM channels and 1 MID 13 // 96.0 kHz, 12 PCM channels and 1 MIDI channel in its first tx stream 14 // , 10 PCM channels and 1 MIDI channe 14 // , 10 PCM channels and 1 MIDI channel in its first rx stream for all 15 // of the frequencies. 15 // of the frequencies. 16 for (i = 0; i < 2; ++i) { 16 for (i = 0; i < 2; ++i) { 17 dice->tx_pcm_chs[0][i] = 12; 17 dice->tx_pcm_chs[0][i] = 12; 18 dice->tx_midi_ports[0] = 1; 18 dice->tx_midi_ports[0] = 1; 19 dice->rx_pcm_chs[0][i] = 10; 19 dice->rx_pcm_chs[0][i] = 10; 20 dice->rx_midi_ports[0] = 1; 20 dice->rx_midi_ports[0] = 1; 21 } 21 } 22 22 23 return 0; 23 return 0; 24 } 24 } 25 25
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.