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