~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/pci/ice1712/delta.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/pci/ice1712/delta.h (Version linux-6.12-rc7) and /sound/pci/ice1712/delta.h (Version linux-4.9.337)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 #ifndef __SOUND_DELTA_H                             1 #ifndef __SOUND_DELTA_H
  3 #define __SOUND_DELTA_H                             2 #define __SOUND_DELTA_H
  4                                                     3 
  5 /*                                                  4 /*
  6  *   ALSA driver for ICEnsemble ICE1712 (Envy2      5  *   ALSA driver for ICEnsemble ICE1712 (Envy24)
  7  *                                                  6  *
  8  *   Lowlevel functions for M-Audio Delta 1010      7  *   Lowlevel functions for M-Audio Delta 1010, 44, 66, Dio2496, Audiophile
  9  *                          Digigram VX442          8  *                          Digigram VX442
 10  *                                                  9  *
 11  *      Copyright (c) 2000 Jaroslav Kysela <pe     10  *      Copyright (c) 2000 Jaroslav Kysela <perex@perex.cz>
                                                   >>  11  *
                                                   >>  12  *   This program is free software; you can redistribute it and/or modify
                                                   >>  13  *   it under the terms of the GNU General Public License as published by
                                                   >>  14  *   the Free Software Foundation; either version 2 of the License, or
                                                   >>  15  *   (at your option) any later version.
                                                   >>  16  *
                                                   >>  17  *   This program is distributed in the hope that it will be useful,
                                                   >>  18  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
                                                   >>  19  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                                                   >>  20  *   GNU General Public License for more details.
                                                   >>  21  *
                                                   >>  22  *   You should have received a copy of the GNU General Public License
                                                   >>  23  *   along with this program; if not, write to the Free Software
                                                   >>  24  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
                                                   >>  25  *
 12  */                                                26  */      
 13                                                    27 
 14 #define DELTA_DEVICE_DESC \                        28 #define DELTA_DEVICE_DESC \
 15                 "{MidiMan M Audio,Delta 1010},     29                 "{MidiMan M Audio,Delta 1010},"\
 16                 "{MidiMan M Audio,Delta 1010LT     30                 "{MidiMan M Audio,Delta 1010LT},"\
 17                 "{MidiMan M Audio,Delta DiO 24     31                 "{MidiMan M Audio,Delta DiO 2496},"\
 18                 "{MidiMan M Audio,Delta 66},"\     32                 "{MidiMan M Audio,Delta 66},"\
 19                 "{MidiMan M Audio,Delta 44},"\     33                 "{MidiMan M Audio,Delta 44},"\
 20                 "{MidiMan M Audio,Delta 410},"     34                 "{MidiMan M Audio,Delta 410},"\
 21                 "{MidiMan M Audio,Audiophile 2     35                 "{MidiMan M Audio,Audiophile 24/96},"\
 22                 "{Digigram,VX442},"\               36                 "{Digigram,VX442},"\
 23                 "{Lionstracs,Mediastation},"\      37                 "{Lionstracs,Mediastation},"\
 24                 "{Edirol,DA2496},"                 38                 "{Edirol,DA2496},"
 25                                                    39 
 26 #define ICE1712_SUBDEVICE_DELTA1010     0x1214     40 #define ICE1712_SUBDEVICE_DELTA1010     0x121430d6
 27 #define ICE1712_SUBDEVICE_DELTA1010E    0xff14     41 #define ICE1712_SUBDEVICE_DELTA1010E    0xff1430d6
 28 #define ICE1712_SUBDEVICE_DELTADIO2496  0x1214     42 #define ICE1712_SUBDEVICE_DELTADIO2496  0x121431d6
 29 #define ICE1712_SUBDEVICE_DELTA66       0x1214     43 #define ICE1712_SUBDEVICE_DELTA66       0x121432d6
 30 #define ICE1712_SUBDEVICE_DELTA66E      0xff14     44 #define ICE1712_SUBDEVICE_DELTA66E      0xff1432d6
 31 #define ICE1712_SUBDEVICE_DELTA44       0x1214     45 #define ICE1712_SUBDEVICE_DELTA44       0x121433d6
 32 #define ICE1712_SUBDEVICE_AUDIOPHILE    0x1214     46 #define ICE1712_SUBDEVICE_AUDIOPHILE    0x121434d6
 33 #define ICE1712_SUBDEVICE_DELTA410      0x1214     47 #define ICE1712_SUBDEVICE_DELTA410      0x121438d6
 34 #define ICE1712_SUBDEVICE_DELTA1010LT   0x1214     48 #define ICE1712_SUBDEVICE_DELTA1010LT   0x12143bd6
 35 #define ICE1712_SUBDEVICE_VX442         0x1214     49 #define ICE1712_SUBDEVICE_VX442         0x12143cd6
 36 #define ICE1712_SUBDEVICE_MEDIASTATION  0x694c     50 #define ICE1712_SUBDEVICE_MEDIASTATION  0x694c0100
 37 #define ICE1712_SUBDEVICE_EDIROLDA2496  0xce16     51 #define ICE1712_SUBDEVICE_EDIROLDA2496  0xce164010
 38                                                    52 
 39 /* entry point */                                  53 /* entry point */
 40 extern struct snd_ice1712_card_info snd_ice171     54 extern struct snd_ice1712_card_info snd_ice1712_delta_cards[];
 41                                                    55 
 42                                                    56 
 43 /*                                                 57 /*
 44  *  MidiMan M-Audio Delta GPIO definitions         58  *  MidiMan M-Audio Delta GPIO definitions
 45  */                                                59  */
 46                                                    60 
 47 /* MidiMan M-Audio Delta shared pins */            61 /* MidiMan M-Audio Delta shared pins */
 48 #define ICE1712_DELTA_DFS 0x01          /* fas     62 #define ICE1712_DELTA_DFS 0x01          /* fast/slow sample rate mode */
 49                                         /* (>4     63                                         /* (>48kHz must be 1) */
 50 #define ICE1712_DELTA_SPDIF_IN_STAT 0x02           64 #define ICE1712_DELTA_SPDIF_IN_STAT 0x02
 51                                         /* S/P     65                                         /* S/PDIF input status */
 52                                         /* 0 =     66                                         /* 0 = valid signal is present */
 53                                         /* all     67                                         /* all except Delta44 */
 54                                         /* loo     68                                         /* look to CS8414 datasheet */
 55 #define ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK 0x0     69 #define ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK 0x04
 56                                         /* S/P     70                                         /* S/PDIF output status clock */
 57                                         /* (wr     71                                         /* (writing on rising edge - 0->1) */
 58                                         /* all     72                                         /* all except Delta44 */
 59                                         /* loo     73                                         /* look to CS8404A datasheet */
 60 #define ICE1712_DELTA_SPDIF_OUT_STAT_DATA 0x08     74 #define ICE1712_DELTA_SPDIF_OUT_STAT_DATA 0x08
 61                                         /* S/P     75                                         /* S/PDIF output status data */
 62                                         /* all     76                                         /* all except Delta44 */
 63                                         /* loo     77                                         /* look to CS8404A datasheet */
 64 /* MidiMan M-Audio DeltaDiO */                     78 /* MidiMan M-Audio DeltaDiO */
 65 /* 0x01 = DFS */                                   79 /* 0x01 = DFS */
 66 /* 0x02 = SPDIF_IN_STAT */                         80 /* 0x02 = SPDIF_IN_STAT */
 67 /* 0x04 = SPDIF_OUT_STAT_CLOCK */                  81 /* 0x04 = SPDIF_OUT_STAT_CLOCK */
 68 /* 0x08 = SPDIF_OUT_STAT_DATA */                   82 /* 0x08 = SPDIF_OUT_STAT_DATA */
 69 #define ICE1712_DELTA_SPDIF_INPUT_SELECT 0x10      83 #define ICE1712_DELTA_SPDIF_INPUT_SELECT 0x10
 70                                         /* coa     84                                         /* coaxial (0), optical (1) */
 71                                         /* S/P     85                                         /* S/PDIF input select*/
 72                                                    86 
 73 /* MidiMan M-Audio Delta1010 */                    87 /* MidiMan M-Audio Delta1010 */
 74 /* 0x01 = DFS */                                   88 /* 0x01 = DFS */
 75 /* 0x02 = SPDIF_IN_STAT */                         89 /* 0x02 = SPDIF_IN_STAT */
 76 /* 0x04 = SPDIF_OUT_STAT_CLOCK */                  90 /* 0x04 = SPDIF_OUT_STAT_CLOCK */
 77 /* 0x08 = SPDIF_OUT_STAT_DATA */                   91 /* 0x08 = SPDIF_OUT_STAT_DATA */
 78 #define ICE1712_DELTA_WORD_CLOCK_SELECT 0x10       92 #define ICE1712_DELTA_WORD_CLOCK_SELECT 0x10
 79                                         /* 1 -     93                                         /* 1 - clock are taken from S/PDIF input */
 80                                         /* 0 -     94                                         /* 0 - clock are taken from Word Clock input */
 81                                         /* aff     95                                         /* affected SPMCLKIN pin of Envy24 */
 82 #define ICE1712_DELTA_WORD_CLOCK_STATUS 0x20       96 #define ICE1712_DELTA_WORD_CLOCK_STATUS 0x20
 83                                         /* 0 =     97                                         /* 0 = valid word clock signal is present */
 84                                                    98 
 85 /* MidiMan M-Audio Delta66 */                      99 /* MidiMan M-Audio Delta66 */
 86 /* 0x01 = DFS */                                  100 /* 0x01 = DFS */
 87 /* 0x02 = SPDIF_IN_STAT */                        101 /* 0x02 = SPDIF_IN_STAT */
 88 /* 0x04 = SPDIF_OUT_STAT_CLOCK */                 102 /* 0x04 = SPDIF_OUT_STAT_CLOCK */
 89 /* 0x08 = SPDIF_OUT_STAT_DATA */                  103 /* 0x08 = SPDIF_OUT_STAT_DATA */
 90 #define ICE1712_DELTA_CODEC_SERIAL_DATA 0x10      104 #define ICE1712_DELTA_CODEC_SERIAL_DATA 0x10
 91                                         /* AKM    105                                         /* AKM4524 serial data */
 92 #define ICE1712_DELTA_CODEC_SERIAL_CLOCK 0x20     106 #define ICE1712_DELTA_CODEC_SERIAL_CLOCK 0x20
 93                                         /* AKM    107                                         /* AKM4524 serial clock */
 94                                         /* (wr    108                                         /* (writing on rising edge - 0->1 */
 95 #define ICE1712_DELTA_CODEC_CHIP_A      0x40      109 #define ICE1712_DELTA_CODEC_CHIP_A      0x40
 96 #define ICE1712_DELTA_CODEC_CHIP_B      0x80      110 #define ICE1712_DELTA_CODEC_CHIP_B      0x80
 97                                         /* 1 -    111                                         /* 1 - select chip A or B */
 98                                                   112 
 99 /* MidiMan M-Audio Delta44 */                     113 /* MidiMan M-Audio Delta44 */
100 /* 0x01 = DFS */                                  114 /* 0x01 = DFS */
101 /* 0x10 = CODEC_SERIAL_DATA */                    115 /* 0x10 = CODEC_SERIAL_DATA */
102 /* 0x20 = CODEC_SERIAL_CLOCK */                   116 /* 0x20 = CODEC_SERIAL_CLOCK */
103 /* 0x40 = CODEC_CHIP_A */                         117 /* 0x40 = CODEC_CHIP_A */
104 /* 0x80 = CODEC_CHIP_B */                         118 /* 0x80 = CODEC_CHIP_B */
105                                                   119 
106 /* MidiMan M-Audio Audiophile/Delta410 definit    120 /* MidiMan M-Audio Audiophile/Delta410 definitions */
107 /* thanks to Kristof Pelckmans <Kristof.Pelckm    121 /* thanks to Kristof Pelckmans <Kristof.Pelckmans@antwerpen.be> for Delta410 info */
108 /* 0x01 = DFS */                                  122 /* 0x01 = DFS */
109 #define ICE1712_DELTA_AP_CCLK   0x02    /* SPI    123 #define ICE1712_DELTA_AP_CCLK   0x02    /* SPI clock */
110                                         /* (cl    124                                         /* (clocking on rising edge - 0->1) */
111 #define ICE1712_DELTA_AP_DIN    0x04    /* dat    125 #define ICE1712_DELTA_AP_DIN    0x04    /* data input */
112 #define ICE1712_DELTA_AP_DOUT   0x08    /* dat    126 #define ICE1712_DELTA_AP_DOUT   0x08    /* data output */
113 #define ICE1712_DELTA_AP_CS_DIGITAL 0x10 /* CS    127 #define ICE1712_DELTA_AP_CS_DIGITAL 0x10 /* CS8427 chip select */
114                                         /* low    128                                         /* low signal = select */
115 #define ICE1712_DELTA_AP_CS_CODEC 0x20  /* AK4    129 #define ICE1712_DELTA_AP_CS_CODEC 0x20  /* AK4528 (audiophile), AK4529 (Delta410) chip select */
116                                         /* low    130                                         /* low signal = select */
117                                                   131 
118 /* MidiMan M-Audio Delta1010LT definitions */     132 /* MidiMan M-Audio Delta1010LT definitions */
119 /* thanks to Anders Johansson <ajh@watri.uwa.e    133 /* thanks to Anders Johansson <ajh@watri.uwa.edu.au> */
120 /* 0x01 = DFS */                                  134 /* 0x01 = DFS */
121 #define ICE1712_DELTA_1010LT_CCLK       0x02      135 #define ICE1712_DELTA_1010LT_CCLK       0x02    /* SPI clock (AK4524 + CS8427) */
122 #define ICE1712_DELTA_1010LT_DIN        0x04      136 #define ICE1712_DELTA_1010LT_DIN        0x04    /* data input (CS8427) */
123 #define ICE1712_DELTA_1010LT_DOUT       0x08      137 #define ICE1712_DELTA_1010LT_DOUT       0x08    /* data output (AK4524 + CS8427) */
124 #define ICE1712_DELTA_1010LT_CS         0x70      138 #define ICE1712_DELTA_1010LT_CS         0x70    /* mask for CS address */
125 #define ICE1712_DELTA_1010LT_CS_CHIP_A  0x00      139 #define ICE1712_DELTA_1010LT_CS_CHIP_A  0x00    /* AK4524 #0 */
126 #define ICE1712_DELTA_1010LT_CS_CHIP_B  0x10      140 #define ICE1712_DELTA_1010LT_CS_CHIP_B  0x10    /* AK4524 #1 */
127 #define ICE1712_DELTA_1010LT_CS_CHIP_C  0x20      141 #define ICE1712_DELTA_1010LT_CS_CHIP_C  0x20    /* AK4524 #2 */
128 #define ICE1712_DELTA_1010LT_CS_CHIP_D  0x30      142 #define ICE1712_DELTA_1010LT_CS_CHIP_D  0x30    /* AK4524 #3 */
129 #define ICE1712_DELTA_1010LT_CS_CS8427  0x40      143 #define ICE1712_DELTA_1010LT_CS_CS8427  0x40    /* CS8427 */
130 #define ICE1712_DELTA_1010LT_CS_NONE    0x50      144 #define ICE1712_DELTA_1010LT_CS_NONE    0x50    /* nothing */
131 #define ICE1712_DELTA_1010LT_WORDCLOCK 0x80       145 #define ICE1712_DELTA_1010LT_WORDCLOCK 0x80     /* sample clock source: 0 = Word Clock Input, 1 = S/PDIF Input ??? */
132                                                   146 
133 /* M-Audio Delta 66 rev. E definitions.           147 /* M-Audio Delta 66 rev. E definitions.
134  * Newer revisions of Delta 66 have CS8427 ove    148  * Newer revisions of Delta 66 have CS8427 over SPI for
135  * S/PDIF transceiver instead of CS8404/CS8414    149  * S/PDIF transceiver instead of CS8404/CS8414. */
136 /* 0x01 = DFS */                                  150 /* 0x01 = DFS */
137 #define ICE1712_DELTA_66E_CCLK          0x02      151 #define ICE1712_DELTA_66E_CCLK          0x02    /* SPI clock */
138 #define ICE1712_DELTA_66E_DIN           0x04      152 #define ICE1712_DELTA_66E_DIN           0x04    /* data input */
139 #define ICE1712_DELTA_66E_DOUT          0x08      153 #define ICE1712_DELTA_66E_DOUT          0x08    /* data output */
140 #define ICE1712_DELTA_66E_CS_CS8427     0x10      154 #define ICE1712_DELTA_66E_CS_CS8427     0x10    /* chip select, low = CS8427 */
141 #define ICE1712_DELTA_66E_CS_CHIP_A     0x20      155 #define ICE1712_DELTA_66E_CS_CHIP_A     0x20    /* AK4524 #0 */
142 #define ICE1712_DELTA_66E_CS_CHIP_B     0x40      156 #define ICE1712_DELTA_66E_CS_CHIP_B     0x40    /* AK4524 #1 */
143                                                   157 
144 /* Digigram VX442 definitions */                  158 /* Digigram VX442 definitions */
145 #define ICE1712_VX442_CCLK              0x02      159 #define ICE1712_VX442_CCLK              0x02    /* SPI clock */
146 #define ICE1712_VX442_DIN               0x04      160 #define ICE1712_VX442_DIN               0x04    /* data input */
147 #define ICE1712_VX442_DOUT              0x08      161 #define ICE1712_VX442_DOUT              0x08    /* data output */
148 #define ICE1712_VX442_CS_DIGITAL        0x10      162 #define ICE1712_VX442_CS_DIGITAL        0x10    /* chip select, low = CS8427 */
149 #define ICE1712_VX442_CODEC_CHIP_A      0x20      163 #define ICE1712_VX442_CODEC_CHIP_A      0x20    /* select chip A */
150 #define ICE1712_VX442_CODEC_CHIP_B      0x40      164 #define ICE1712_VX442_CODEC_CHIP_B      0x40    /* select chip B */
151                                                   165 
152 #endif /* __SOUND_DELTA_H */                      166 #endif /* __SOUND_DELTA_H */
153                                                   167 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php