summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wmt_vt1602.h
blob: 718c822a07128f74aeda82a22a305f21dd3974d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*++ 
 * linux/sound/soc/codecs/wmt_vt1602.h
 * WonderMedia I2S audio driver for ALSA
 *
 * Copyright c 2010  WonderMedia  Technologies, Inc.
 *
 * This program is free software: you can redistribute it and/or modify 
 * it under the terms of the GNU General Public License as published by 
 * the Free Software Foundation, either version 2 of the License, or 
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 * GNU General Public License for more details. 
 *
 * You should have received a copy of the GNU General Public License 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * WonderMedia Technologies, Inc.
 * 4F, 533, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C
--*/


#ifndef _VT1602_H
#define _VT1602_H

/* VT1602 register space */

#define VT1602_LINVOL    0x00
#define VT1602_RINVOL    0x01
#define VT1602_LOUT1V    0x02
#define VT1602_ROUT1V    0x03
#define VT1602_ADCDAC    0x05
#define VT1602_IFACE     0x07
#define VT1602_SRATE     0x08
#define VT1602_LDAC      0x0a
#define VT1602_RDAC      0x0b
#define VT1602_BASS      0x0c
#define VT1602_TREBLE    0x0d
#define VT1602_RESET     0x0f
#define VT1602_3D        0x10
#define VT1602_ALC1      0x11
#define VT1602_ALC2      0x12
#define VT1602_ALC3      0x13
#define VT1602_NGATE     0x14
#define VT1602_LADC      0x15
#define VT1602_RADC      0x16
#define VT1602_ADCTL1    0x17
#define VT1602_ADCTL2    0x18
#define VT1602_PWR1      0x19
#define VT1602_PWR2      0x1a
#define VT1602_ADCTL3    0x1b
#define VT1602_ADCIN     0x1f
#define VT1602_LADCIN    0x20
#define VT1602_RADCIN    0x21
#define VT1602_LOUTM1    0x22
#define VT1602_LOUTM2    0x23
#define VT1602_ROUTM1    0x24
#define VT1602_ROUTM2    0x25
#define VT1602_MOUTM1    0x26
#define VT1602_MOUTM2    0x27
#define VT1602_LOUT2V    0x28
#define VT1602_ROUT2V    0x29
#define VT1602_MOUTV     0x2a

#endif