1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 #ifndef __SOUND_DELTA_H 3 #define __SOUND_DELTA_H 4 5 /* 6 * ALSA driver for ICEnsemble ICE1712 (Envy2 7 * 8 * Lowlevel functions for M-Audio Delta 1010 9 * Digigram VX442 10 * 11 * Copyright (c) 2000 Jaroslav Kysela <pe 12 */ 13 14 #define DELTA_DEVICE_DESC \ 15 "{MidiMan M Audio,Delta 1010}, 16 "{MidiMan M Audio,Delta 1010LT 17 "{MidiMan M Audio,Delta DiO 24 18 "{MidiMan M Audio,Delta 66},"\ 19 "{MidiMan M Audio,Delta 44},"\ 20 "{MidiMan M Audio,Delta 410}," 21 "{MidiMan M Audio,Audiophile 2 22 "{Digigram,VX442},"\ 23 "{Lionstracs,Mediastation},"\ 24 "{Edirol,DA2496}," 25 26 #define ICE1712_SUBDEVICE_DELTA1010 0x1214 27 #define ICE1712_SUBDEVICE_DELTA1010E 0xff14 28 #define ICE1712_SUBDEVICE_DELTADIO2496 0x1214 29 #define ICE1712_SUBDEVICE_DELTA66 0x1214 30 #define ICE1712_SUBDEVICE_DELTA66E 0xff14 31 #define ICE1712_SUBDEVICE_DELTA44 0x1214 32 #define ICE1712_SUBDEVICE_AUDIOPHILE 0x1214 33 #define ICE1712_SUBDEVICE_DELTA410 0x1214 34 #define ICE1712_SUBDEVICE_DELTA1010LT 0x1214 35 #define ICE1712_SUBDEVICE_VX442 0x1214 36 #define ICE1712_SUBDEVICE_MEDIASTATION 0x694c 37 #define ICE1712_SUBDEVICE_EDIROLDA2496 0xce16 38 39 /* entry point */ 40 extern struct snd_ice1712_card_info snd_ice171 41 42 43 /* 44 * MidiMan M-Audio Delta GPIO definitions 45 */ 46 47 /* MidiMan M-Audio Delta shared pins */ 48 #define ICE1712_DELTA_DFS 0x01 /* fas 49 /* (>4 50 #define ICE1712_DELTA_SPDIF_IN_STAT 0x02 51 /* S/P 52 /* 0 = 53 /* all 54 /* loo 55 #define ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK 0x0 56 /* S/P 57 /* (wr 58 /* all 59 /* loo 60 #define ICE1712_DELTA_SPDIF_OUT_STAT_DATA 0x08 61 /* S/P 62 /* all 63 /* loo 64 /* MidiMan M-Audio DeltaDiO */ 65 /* 0x01 = DFS */ 66 /* 0x02 = SPDIF_IN_STAT */ 67 /* 0x04 = SPDIF_OUT_STAT_CLOCK */ 68 /* 0x08 = SPDIF_OUT_STAT_DATA */ 69 #define ICE1712_DELTA_SPDIF_INPUT_SELECT 0x10 70 /* coa 71 /* S/P 72 73 /* MidiMan M-Audio Delta1010 */ 74 /* 0x01 = DFS */ 75 /* 0x02 = SPDIF_IN_STAT */ 76 /* 0x04 = SPDIF_OUT_STAT_CLOCK */ 77 /* 0x08 = SPDIF_OUT_STAT_DATA */ 78 #define ICE1712_DELTA_WORD_CLOCK_SELECT 0x10 79 /* 1 - 80 /* 0 - 81 /* aff 82 #define ICE1712_DELTA_WORD_CLOCK_STATUS 0x20 83 /* 0 = 84 85 /* MidiMan M-Audio Delta66 */ 86 /* 0x01 = DFS */ 87 /* 0x02 = SPDIF_IN_STAT */ 88 /* 0x04 = SPDIF_OUT_STAT_CLOCK */ 89 /* 0x08 = SPDIF_OUT_STAT_DATA */ 90 #define ICE1712_DELTA_CODEC_SERIAL_DATA 0x10 91 /* AKM 92 #define ICE1712_DELTA_CODEC_SERIAL_CLOCK 0x20 93 /* AKM 94 /* (wr 95 #define ICE1712_DELTA_CODEC_CHIP_A 0x40 96 #define ICE1712_DELTA_CODEC_CHIP_B 0x80 97 /* 1 - 98 99 /* MidiMan M-Audio Delta44 */ 100 /* 0x01 = DFS */ 101 /* 0x10 = CODEC_SERIAL_DATA */ 102 /* 0x20 = CODEC_SERIAL_CLOCK */ 103 /* 0x40 = CODEC_CHIP_A */ 104 /* 0x80 = CODEC_CHIP_B */ 105 106 /* MidiMan M-Audio Audiophile/Delta410 definit 107 /* thanks to Kristof Pelckmans <Kristof.Pelckm 108 /* 0x01 = DFS */ 109 #define ICE1712_DELTA_AP_CCLK 0x02 /* SPI 110 /* (cl 111 #define ICE1712_DELTA_AP_DIN 0x04 /* dat 112 #define ICE1712_DELTA_AP_DOUT 0x08 /* dat 113 #define ICE1712_DELTA_AP_CS_DIGITAL 0x10 /* CS 114 /* low 115 #define ICE1712_DELTA_AP_CS_CODEC 0x20 /* AK4 116 /* low 117 118 /* MidiMan M-Audio Delta1010LT definitions */ 119 /* thanks to Anders Johansson <ajh@watri.uwa.e 120 /* 0x01 = DFS */ 121 #define ICE1712_DELTA_1010LT_CCLK 0x02 122 #define ICE1712_DELTA_1010LT_DIN 0x04 123 #define ICE1712_DELTA_1010LT_DOUT 0x08 124 #define ICE1712_DELTA_1010LT_CS 0x70 125 #define ICE1712_DELTA_1010LT_CS_CHIP_A 0x00 126 #define ICE1712_DELTA_1010LT_CS_CHIP_B 0x10 127 #define ICE1712_DELTA_1010LT_CS_CHIP_C 0x20 128 #define ICE1712_DELTA_1010LT_CS_CHIP_D 0x30 129 #define ICE1712_DELTA_1010LT_CS_CS8427 0x40 130 #define ICE1712_DELTA_1010LT_CS_NONE 0x50 131 #define ICE1712_DELTA_1010LT_WORDCLOCK 0x80 132 133 /* M-Audio Delta 66 rev. E definitions. 134 * Newer revisions of Delta 66 have CS8427 ove 135 * S/PDIF transceiver instead of CS8404/CS8414 136 /* 0x01 = DFS */ 137 #define ICE1712_DELTA_66E_CCLK 0x02 138 #define ICE1712_DELTA_66E_DIN 0x04 139 #define ICE1712_DELTA_66E_DOUT 0x08 140 #define ICE1712_DELTA_66E_CS_CS8427 0x10 141 #define ICE1712_DELTA_66E_CS_CHIP_A 0x20 142 #define ICE1712_DELTA_66E_CS_CHIP_B 0x40 143 144 /* Digigram VX442 definitions */ 145 #define ICE1712_VX442_CCLK 0x02 146 #define ICE1712_VX442_DIN 0x04 147 #define ICE1712_VX442_DOUT 0x08 148 #define ICE1712_VX442_CS_DIGITAL 0x10 149 #define ICE1712_VX442_CODEC_CHIP_A 0x20 150 #define ICE1712_VX442_CODEC_CHIP_B 0x40 151 152 #endif /* __SOUND_DELTA_H */ 153
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.