Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 // dice-harman.c - a part of driver for DICE based devices
0003 //
0004 // Copyright (c) 2021 Takashi Sakamoto
0005 //
0006 // Licensed under the terms of the GNU General Public License, version 2.
0007 
0008 #include "dice.h"
0009 
0010 int snd_dice_detect_harman_formats(struct snd_dice *dice)
0011 {
0012     int i;
0013 
0014     // Lexicon I-ONYX FW810s supports sampling transfer frequency up to
0015     // 96.0 kHz, 12 PCM channels and 1 MIDI channel in its first tx stream
0016     // , 10 PCM channels and 1 MIDI channel in its first rx stream for all
0017     // of the frequencies.
0018     for (i = 0; i < 2; ++i) {
0019         dice->tx_pcm_chs[0][i] = 12;
0020         dice->tx_midi_ports[0] = 1;
0021         dice->rx_pcm_chs[0][i] = 10;
0022         dice->rx_midi_ports[0] = 1;
0023     }
0024 
0025     return 0;
0026 }