This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / sound / pci / ice1712 / prodigy.h
1 #ifndef __SOUND_PRODIGY_H
2 #define __SOUND_PRODIGY_H
3
4 /*
5  *   ALSA driver for VIA VT1724 (Envy24HT)
6  *
7  *   Lowlevel functions for Terratec PRODIGY cards
8  *
9  *      Copyright (c) 2003 Takashi Iwai <tiwai@suse.de>
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  PRODIGY_DEVICE_DESC           "{AudioTrak,Prodigy 7.1},"
28
29 #define VT1724_SUBDEVICE_PRODIGY71      0x33495345      /* PRODIGY 7.1 */
30
31 extern struct snd_ice1712_card_info  snd_vt1724_prodigy_cards[];
32
33 /* GPIO bits */
34 #define PRODIGY_CS8415_CS       (1 << 23)
35 #define PRODIGY_CS8415_CDTO     (1 << 22)
36 #define PRODIGY_WM_RESET        (1 << 20)
37 #define PRODIGY_WM_CLK          (1 << 19)
38 #define PRODIGY_WM_DATA         (1 << 18)
39 #define PRODIGY_WM_RW           (1 << 17)
40 #define PRODIGY_AC97_RESET      (1 << 16)
41 #define PRODIGY_DIGITAL_SEL1    (1 << 15)
42 // #define PRODIGY_HP_SEL               (1 << 14)
43 #define PRODIGY_WM_CS           (1 << 12)
44
45 #define PRODIGY_HP_AMP_EN       (1 << 14)
46
47
48 /* WM8770 registers */
49 #define WM_DAC_ATTEN            0x00    /* DAC1-8 analog attenuation */
50 #define WM_DAC_MASTER_ATTEN     0x08    /* DAC master analog attenuation */
51 #define WM_DAC_DIG_ATTEN        0x09    /* DAC1-8 digital attenuation */
52 #define WM_DAC_DIG_MATER_ATTEN  0x11    /* DAC master digital attenuation */
53 #define WM_PHASE_SWAP           0x12    /* DAC phase */
54 #define WM_DAC_CTRL1            0x13    /* DAC control bits */
55 #define WM_MUTE                 0x14    /* mute controls */
56 #define WM_DAC_CTRL2            0x15    /* de-emphasis and zefo-flag */
57 #define WM_INT_CTRL             0x16    /* interface control */
58 #define WM_MASTER               0x17    /* master clock and mode */
59 #define WM_POWERDOWN            0x18    /* power-down controls */
60 #define WM_ADC_GAIN             0x19    /* ADC gain L(19)/R(1a) */
61 #define WM_ADC_MUX              0x1b    /* input MUX */
62 #define WM_OUT_MUX1             0x1c    /* output MUX */
63 #define WM_OUT_MUX2             0x1e    /* output MUX */
64 #define WM_RESET                0x1f    /* software reset */
65
66
67 #endif /* __SOUND_PRODIGY_H */