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

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

Version: ~ [ linux-5.16 ] ~ [ linux-5.15.13 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.90 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.170 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.224 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.261 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.296 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.298 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ 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.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

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

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | 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.

osdn.jp