Linux-2.6.12-rc2
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / sound / oss / dmasound / tas3001c.h
blob3660da33a2dbdc3cb02b5369116c2c09578ba483
1 /*
2 * Header file for the i2c/i2s based TA3001c sound chip used
3 * on some Apple hardware. Also known as "tumbler".
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file COPYING in the main directory of this archive
7 * for more details.
9 * Written by Christopher C. Chimelis <chris@debian.org>
12 #ifndef _TAS3001C_H_
13 #define _TAS3001C_H_
15 #include <linux/types.h>
17 #include "tas_common.h"
18 #include "tas_eq_prefs.h"
21 * Macros that correspond to the registers that we write to
22 * when setting the various values.
25 #define TAS3001C_VERSION "0.3"
26 #define TAS3001C_DATE "20011214"
28 #define I2C_DRIVERNAME_TAS3001C "TAS3001c driver V " TAS3001C_VERSION
29 #define I2C_DRIVERID_TAS3001C (I2C_DRIVERID_TAS_BASE+0)
31 extern struct tas_driver_hooks_t tas3001c_hooks;
32 extern struct tas_gain_t tas3001c_gain;
33 extern struct tas_eq_pref_t *tas3001c_eq_prefs[];
35 enum tas3001c_reg_t {
36 TAS3001C_REG_MCR = 0x01,
37 TAS3001C_REG_DRC = 0x02,
39 TAS3001C_REG_VOLUME = 0x04,
40 TAS3001C_REG_TREBLE = 0x05,
41 TAS3001C_REG_BASS = 0x06,
42 TAS3001C_REG_MIXER1 = 0x07,
43 TAS3001C_REG_MIXER2 = 0x08,
45 TAS3001C_REG_LEFT_BIQUAD0 = 0x0a,
46 TAS3001C_REG_LEFT_BIQUAD1 = 0x0b,
47 TAS3001C_REG_LEFT_BIQUAD2 = 0x0c,
48 TAS3001C_REG_LEFT_BIQUAD3 = 0x0d,
49 TAS3001C_REG_LEFT_BIQUAD4 = 0x0e,
50 TAS3001C_REG_LEFT_BIQUAD5 = 0x0f,
51 TAS3001C_REG_LEFT_BIQUAD6 = 0x10,
53 TAS3001C_REG_RIGHT_BIQUAD0 = 0x13,
54 TAS3001C_REG_RIGHT_BIQUAD1 = 0x14,
55 TAS3001C_REG_RIGHT_BIQUAD2 = 0x15,
56 TAS3001C_REG_RIGHT_BIQUAD3 = 0x16,
57 TAS3001C_REG_RIGHT_BIQUAD4 = 0x17,
58 TAS3001C_REG_RIGHT_BIQUAD5 = 0x18,
59 TAS3001C_REG_RIGHT_BIQUAD6 = 0x19,
61 TAS3001C_REG_MAX = 0x20
64 #endif /* _TAS3001C_H_ */