~ [ 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-2.6.32.71)


  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},"             << 
 25                                                    38 
 26 #define ICE1712_SUBDEVICE_DELTA1010     0x1214     39 #define ICE1712_SUBDEVICE_DELTA1010     0x121430d6
 27 #define ICE1712_SUBDEVICE_DELTA1010E    0xff14     40 #define ICE1712_SUBDEVICE_DELTA1010E    0xff1430d6
 28 #define ICE1712_SUBDEVICE_DELTADIO2496  0x1214     41 #define ICE1712_SUBDEVICE_DELTADIO2496  0x121431d6
 29 #define ICE1712_SUBDEVICE_DELTA66       0x1214     42 #define ICE1712_SUBDEVICE_DELTA66       0x121432d6
 30 #define ICE1712_SUBDEVICE_DELTA66E      0xff14     43 #define ICE1712_SUBDEVICE_DELTA66E      0xff1432d6
 31 #define ICE1712_SUBDEVICE_DELTA44       0x1214     44 #define ICE1712_SUBDEVICE_DELTA44       0x121433d6
 32 #define ICE1712_SUBDEVICE_AUDIOPHILE    0x1214     45 #define ICE1712_SUBDEVICE_AUDIOPHILE    0x121434d6
 33 #define ICE1712_SUBDEVICE_DELTA410      0x1214     46 #define ICE1712_SUBDEVICE_DELTA410      0x121438d6
 34 #define ICE1712_SUBDEVICE_DELTA1010LT   0x1214     47 #define ICE1712_SUBDEVICE_DELTA1010LT   0x12143bd6
 35 #define ICE1712_SUBDEVICE_VX442         0x1214     48 #define ICE1712_SUBDEVICE_VX442         0x12143cd6
 36 #define ICE1712_SUBDEVICE_MEDIASTATION  0x694c     49 #define ICE1712_SUBDEVICE_MEDIASTATION  0x694c0100
 37 #define ICE1712_SUBDEVICE_EDIROLDA2496  0xce16 << 
 38                                                    50 
 39 /* entry point */                                  51 /* entry point */
 40 extern struct snd_ice1712_card_info snd_ice171     52 extern struct snd_ice1712_card_info snd_ice1712_delta_cards[];
 41                                                    53 
 42                                                    54 
 43 /*                                                 55 /*
 44  *  MidiMan M-Audio Delta GPIO definitions         56  *  MidiMan M-Audio Delta GPIO definitions
 45  */                                                57  */
 46                                                    58 
 47 /* MidiMan M-Audio Delta shared pins */            59 /* MidiMan M-Audio Delta shared pins */
 48 #define ICE1712_DELTA_DFS 0x01          /* fas     60 #define ICE1712_DELTA_DFS 0x01          /* fast/slow sample rate mode */
 49                                         /* (>4     61                                         /* (>48kHz must be 1) */
 50 #define ICE1712_DELTA_SPDIF_IN_STAT 0x02           62 #define ICE1712_DELTA_SPDIF_IN_STAT 0x02
 51                                         /* S/P     63                                         /* S/PDIF input status */
 52                                         /* 0 =     64                                         /* 0 = valid signal is present */
 53                                         /* all     65                                         /* all except Delta44 */
 54                                         /* loo     66                                         /* look to CS8414 datasheet */
 55 #define ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK 0x0     67 #define ICE1712_DELTA_SPDIF_OUT_STAT_CLOCK 0x04
 56                                         /* S/P     68                                         /* S/PDIF output status clock */
 57                                         /* (wr     69                                         /* (writing on rising edge - 0->1) */
 58                                         /* all     70                                         /* all except Delta44 */
 59                                         /* loo     71                                         /* look to CS8404A datasheet */
 60 #define ICE1712_DELTA_SPDIF_OUT_STAT_DATA 0x08     72 #define ICE1712_DELTA_SPDIF_OUT_STAT_DATA 0x08
 61                                         /* S/P     73                                         /* S/PDIF output status data */
 62                                         /* all     74                                         /* all except Delta44 */
 63                                         /* loo     75                                         /* look to CS8404A datasheet */
 64 /* MidiMan M-Audio DeltaDiO */                     76 /* MidiMan M-Audio DeltaDiO */
 65 /* 0x01 = DFS */                                   77 /* 0x01 = DFS */
 66 /* 0x02 = SPDIF_IN_STAT */                         78 /* 0x02 = SPDIF_IN_STAT */
 67 /* 0x04 = SPDIF_OUT_STAT_CLOCK */                  79 /* 0x04 = SPDIF_OUT_STAT_CLOCK */
 68 /* 0x08 = SPDIF_OUT_STAT_DATA */                   80 /* 0x08 = SPDIF_OUT_STAT_DATA */
 69 #define ICE1712_DELTA_SPDIF_INPUT_SELECT 0x10      81 #define ICE1712_DELTA_SPDIF_INPUT_SELECT 0x10
 70                                         /* coa     82                                         /* coaxial (0), optical (1) */
 71                                         /* S/P     83                                         /* S/PDIF input select*/
 72                                                    84 
 73 /* MidiMan M-Audio Delta1010 */                    85 /* MidiMan M-Audio Delta1010 */
 74 /* 0x01 = DFS */                                   86 /* 0x01 = DFS */
 75 /* 0x02 = SPDIF_IN_STAT */                         87 /* 0x02 = SPDIF_IN_STAT */
 76 /* 0x04 = SPDIF_OUT_STAT_CLOCK */                  88 /* 0x04 = SPDIF_OUT_STAT_CLOCK */
 77 /* 0x08 = SPDIF_OUT_STAT_DATA */                   89 /* 0x08 = SPDIF_OUT_STAT_DATA */
 78 #define ICE1712_DELTA_WORD_CLOCK_SELECT 0x10       90 #define ICE1712_DELTA_WORD_CLOCK_SELECT 0x10
 79                                         /* 1 -     91                                         /* 1 - clock are taken from S/PDIF input */
 80                                         /* 0 -     92                                         /* 0 - clock are taken from Word Clock input */
 81                                         /* aff     93                                         /* affected SPMCLKIN pin of Envy24 */
 82 #define ICE1712_DELTA_WORD_CLOCK_STATUS 0x20       94 #define ICE1712_DELTA_WORD_CLOCK_STATUS 0x20
 83                                         /* 0 =     95                                         /* 0 = valid word clock signal is present */
 84                                                    96 
 85 /* MidiMan M-Audio Delta66 */                      97 /* MidiMan M-Audio Delta66 */
 86 /* 0x01 = DFS */                                   98 /* 0x01 = DFS */
 87 /* 0x02 = SPDIF_IN_STAT */                         99 /* 0x02 = SPDIF_IN_STAT */
 88 /* 0x04 = SPDIF_OUT_STAT_CLOCK */                 100 /* 0x04 = SPDIF_OUT_STAT_CLOCK */
 89 /* 0x08 = SPDIF_OUT_STAT_DATA */                  101 /* 0x08 = SPDIF_OUT_STAT_DATA */
 90 #define ICE1712_DELTA_CODEC_SERIAL_DATA 0x10      102 #define ICE1712_DELTA_CODEC_SERIAL_DATA 0x10
 91                                         /* AKM    103                                         /* AKM4524 serial data */
 92 #define ICE1712_DELTA_CODEC_SERIAL_CLOCK 0x20     104 #define ICE1712_DELTA_CODEC_SERIAL_CLOCK 0x20
 93                                         /* AKM    105                                         /* AKM4524 serial clock */
 94                                         /* (wr    106                                         /* (writing on rising edge - 0->1 */
 95 #define ICE1712_DELTA_CODEC_CHIP_A      0x40      107 #define ICE1712_DELTA_CODEC_CHIP_A      0x40
 96 #define ICE1712_DELTA_CODEC_CHIP_B      0x80      108 #define ICE1712_DELTA_CODEC_CHIP_B      0x80
 97                                         /* 1 -    109                                         /* 1 - select chip A or B */
 98                                                   110 
 99 /* MidiMan M-Audio Delta44 */                     111 /* MidiMan M-Audio Delta44 */
100 /* 0x01 = DFS */                                  112 /* 0x01 = DFS */
101 /* 0x10 = CODEC_SERIAL_DATA */                    113 /* 0x10 = CODEC_SERIAL_DATA */
102 /* 0x20 = CODEC_SERIAL_CLOCK */                   114 /* 0x20 = CODEC_SERIAL_CLOCK */
103 /* 0x40 = CODEC_CHIP_A */                         115 /* 0x40 = CODEC_CHIP_A */
104 /* 0x80 = CODEC_CHIP_B */                         116 /* 0x80 = CODEC_CHIP_B */
105                                                   117 
106 /* MidiMan M-Audio Audiophile/Delta410 definit    118 /* MidiMan M-Audio Audiophile/Delta410 definitions */
107 /* thanks to Kristof Pelckmans <Kristof.Pelckm    119 /* thanks to Kristof Pelckmans <Kristof.Pelckmans@antwerpen.be> for Delta410 info */
108 /* 0x01 = DFS */                                  120 /* 0x01 = DFS */
109 #define ICE1712_DELTA_AP_CCLK   0x02    /* SPI    121 #define ICE1712_DELTA_AP_CCLK   0x02    /* SPI clock */
110                                         /* (cl    122                                         /* (clocking on rising edge - 0->1) */
111 #define ICE1712_DELTA_AP_DIN    0x04    /* dat    123 #define ICE1712_DELTA_AP_DIN    0x04    /* data input */
112 #define ICE1712_DELTA_AP_DOUT   0x08    /* dat    124 #define ICE1712_DELTA_AP_DOUT   0x08    /* data output */
113 #define ICE1712_DELTA_AP_CS_DIGITAL 0x10 /* CS    125 #define ICE1712_DELTA_AP_CS_DIGITAL 0x10 /* CS8427 chip select */
114                                         /* low    126                                         /* low signal = select */
115 #define ICE1712_DELTA_AP_CS_CODEC 0x20  /* AK4    127 #define ICE1712_DELTA_AP_CS_CODEC 0x20  /* AK4528 (audiophile), AK4529 (Delta410) chip select */
116                                         /* low    128                                         /* low signal = select */
117                                                   129 
118 /* MidiMan M-Audio Delta1010LT definitions */     130 /* MidiMan M-Audio Delta1010LT definitions */
119 /* thanks to Anders Johansson <ajh@watri.uwa.e    131 /* thanks to Anders Johansson <ajh@watri.uwa.edu.au> */
120 /* 0x01 = DFS */                                  132 /* 0x01 = DFS */
121 #define ICE1712_DELTA_1010LT_CCLK       0x02      133 #define ICE1712_DELTA_1010LT_CCLK       0x02    /* SPI clock (AK4524 + CS8427) */
122 #define ICE1712_DELTA_1010LT_DIN        0x04      134 #define ICE1712_DELTA_1010LT_DIN        0x04    /* data input (CS8427) */
123 #define ICE1712_DELTA_1010LT_DOUT       0x08      135 #define ICE1712_DELTA_1010LT_DOUT       0x08    /* data output (AK4524 + CS8427) */
124 #define ICE1712_DELTA_1010LT_CS         0x70      136 #define ICE1712_DELTA_1010LT_CS         0x70    /* mask for CS address */
125 #define ICE1712_DELTA_1010LT_CS_CHIP_A  0x00      137 #define ICE1712_DELTA_1010LT_CS_CHIP_A  0x00    /* AK4524 #0 */
126 #define ICE1712_DELTA_1010LT_CS_CHIP_B  0x10      138 #define ICE1712_DELTA_1010LT_CS_CHIP_B  0x10    /* AK4524 #1 */
127 #define ICE1712_DELTA_1010LT_CS_CHIP_C  0x20      139 #define ICE1712_DELTA_1010LT_CS_CHIP_C  0x20    /* AK4524 #2 */
128 #define ICE1712_DELTA_1010LT_CS_CHIP_D  0x30      140 #define ICE1712_DELTA_1010LT_CS_CHIP_D  0x30    /* AK4524 #3 */
129 #define ICE1712_DELTA_1010LT_CS_CS8427  0x40      141 #define ICE1712_DELTA_1010LT_CS_CS8427  0x40    /* CS8427 */
130 #define ICE1712_DELTA_1010LT_CS_NONE    0x50      142 #define ICE1712_DELTA_1010LT_CS_NONE    0x50    /* nothing */
131 #define ICE1712_DELTA_1010LT_WORDCLOCK 0x80       143 #define ICE1712_DELTA_1010LT_WORDCLOCK 0x80     /* sample clock source: 0 = Word Clock Input, 1 = S/PDIF Input ??? */
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 
144 /* Digigram VX442 definitions */                  145 /* Digigram VX442 definitions */
145 #define ICE1712_VX442_CCLK              0x02      146 #define ICE1712_VX442_CCLK              0x02    /* SPI clock */
146 #define ICE1712_VX442_DIN               0x04      147 #define ICE1712_VX442_DIN               0x04    /* data input */
147 #define ICE1712_VX442_DOUT              0x08      148 #define ICE1712_VX442_DOUT              0x08    /* data output */
148 #define ICE1712_VX442_CS_DIGITAL        0x10      149 #define ICE1712_VX442_CS_DIGITAL        0x10    /* chip select, low = CS8427 */
149 #define ICE1712_VX442_CODEC_CHIP_A      0x20      150 #define ICE1712_VX442_CODEC_CHIP_A      0x20    /* select chip A */
150 #define ICE1712_VX442_CODEC_CHIP_B      0x40      151 #define ICE1712_VX442_CODEC_CHIP_B      0x40    /* select chip B */
151                                                   152 
152 #endif /* __SOUND_DELTA_H */                      153 #endif /* __SOUND_DELTA_H */
153                                                   154 

~ [ 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