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

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

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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.11-rc3) and /sound/pci/ice1712/delta.h (Version linux-2.6.0)


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

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