diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2006-06-21 09:42:43 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-06-22 15:34:38 -0400 |
commit | f3d9478b2ce468c3115b02ecae7e975990697f15 (patch) | |
tree | 8397671cbf251c54bf539016468164e08d0c45ee /sound/aoa/codecs/snd-aoa-codec-tas.h | |
parent | 41f0cd3a0c4c6547860cf3b1c2d7968008e6c071 (diff) |
[ALSA] snd-aoa: add snd-aoa
This large patch adds all of snd-aoa.
Consisting of many modules, it currently replaces snd-powermac
for all layout-id based machines and handles many more (for
example new powerbooks and powermacs with digital output that
previously couldn't be used at all).
It also has support for all layout-IDs that Apple has (judging
from their Info.plist file) but not all are tested.
The driver currently has 2 known regressions over snd-powermac:
* it doesn't handle powermac 7,2 and 7,3
* it doesn't have a DRC control on snapper-based machines
I will fix those during the 2.6.18 development cycle.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/aoa/codecs/snd-aoa-codec-tas.h')
-rw-r--r-- | sound/aoa/codecs/snd-aoa-codec-tas.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sound/aoa/codecs/snd-aoa-codec-tas.h b/sound/aoa/codecs/snd-aoa-codec-tas.h new file mode 100644 index 000000000000..daf81f45d83a --- /dev/null +++ b/sound/aoa/codecs/snd-aoa-codec-tas.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | * Apple Onboard Audio driver for tas codec (header) | ||
3 | * | ||
4 | * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> | ||
5 | * | ||
6 | * GPL v2, can be found in COPYING. | ||
7 | */ | ||
8 | #ifndef __SND_AOA_CODECTASH | ||
9 | #define __SND_AOA_CODECTASH | ||
10 | |||
11 | #define TAS_REG_MCS 0x01 /* main control */ | ||
12 | # define TAS_MCS_FASTLOAD (1<<7) | ||
13 | # define TAS_MCS_SCLK64 (1<<6) | ||
14 | # define TAS_MCS_SPORT_MODE_MASK (3<<4) | ||
15 | # define TAS_MCS_SPORT_MODE_I2S (2<<4) | ||
16 | # define TAS_MCS_SPORT_MODE_RJ (1<<4) | ||
17 | # define TAS_MCS_SPORT_MODE_LJ (0<<4) | ||
18 | # define TAS_MCS_SPORT_WL_MASK (3<<0) | ||
19 | # define TAS_MCS_SPORT_WL_16BIT (0<<0) | ||
20 | # define TAS_MCS_SPORT_WL_18BIT (1<<0) | ||
21 | # define TAS_MCS_SPORT_WL_20BIT (2<<0) | ||
22 | # define TAS_MCS_SPORT_WL_24BIT (3<<0) | ||
23 | |||
24 | #define TAS_REG_DRC 0x02 | ||
25 | #define TAS_REG_VOL 0x04 | ||
26 | #define TAS_REG_TREBLE 0x05 | ||
27 | #define TAS_REG_BASS 0x06 | ||
28 | #define TAS_REG_LMIX 0x07 | ||
29 | #define TAS_REG_RMIX 0x08 | ||
30 | |||
31 | #define TAS_REG_ACR 0x40 /* analog control */ | ||
32 | # define TAS_ACR_B_MONAUREAL (1<<7) | ||
33 | # define TAS_ACR_B_MON_SEL_RIGHT (1<<6) | ||
34 | # define TAS_ACR_DEEMPH_MASK (3<<2) | ||
35 | # define TAS_ACR_DEEMPH_OFF (0<<2) | ||
36 | # define TAS_ACR_DEEMPH_48KHz (1<<2) | ||
37 | # define TAS_ACR_DEEMPH_44KHz (2<<2) | ||
38 | # define TAS_ACR_INPUT_B (1<<1) | ||
39 | # define TAS_ACR_ANALOG_PDOWN (1<<0) | ||
40 | |||
41 | #define TAS_REG_MCS2 0x43 /* main control 2 */ | ||
42 | # define TAS_MCS2_ALLPASS (1<<1) | ||
43 | |||
44 | #define TAS_REG_LEFT_BIQUAD6 0x10 | ||
45 | #define TAS_REG_RIGHT_BIQUAD6 0x19 | ||
46 | |||
47 | #endif /* __SND_AOA_CODECTASH */ | ||