2 * SiS 7018, Trident 4D Wave DX/NX, Acer Lab M5451 Sound Driver.
3 * Copyright (c) 2002, 2008-2011 S.Zharski <imker@gmx.li>
4 * Distributed under the terms of the MIT license.
6 * Copyright for ali5451 support:
7 * (c) 2009, Krzysztof Ćwiertnia (krzysiek.bmkx_gmail_com).
9 #ifndef _SiS7018_REGISTERS_H_
10 #define _SiS7018_REGISTERS_H_
17 RegCodecStatus
= 0x48,
18 CodecStatusSBCtrl
= 0x40,
19 CodecStatusActive
= 0x20,
20 CodecStatusReady
= 0x10,
21 CodecStatusADCON
= 0x08,
22 CodecStatusDACON
= 0x02,
23 CodecStatusReset
= 0x01,
24 CodecTimeout
= 0xffff,
32 ChIndexMask
= 0x0000003f,
33 ChIndexEndEna
= 0x00001000,
34 ChIndexMidEna
= 0x00002000,
42 RegCSOAlphaFMS
= 0xe0,
45 RegRVolCVolFMC
= 0xec,
46 RegGVSelVolCtrl
= 0xf0,
51 // SiS7018 specific registers
52 RegSiSCodecWrite
= RegCodecWrite
,
53 RegSiSCodecRead
= RegCodecRead
,
54 RegSiSCodecStatus
= RegCodecStatus
,
55 SiSCodecResetOff
= 0x000f0000,
56 RegSiSCodecGPIO
= 0x4c,
57 ChIndexSiSEnaB
= 0x00010000,
63 RegALiDigiMixer
= 0xd4,
64 ALiDigiMixerPCMIn
= 0x80000000,
66 // Trident NX specific registers
67 RegNXCodecStatus
= 0x40,
68 NXCodecStatusReady2
= 0x40,
69 NXCodecStatusADC2ON
= 0x20,
70 NXCodecStatusDAC2ON
= 0x10,
71 NXCodecStatusReady1
= 0x08,
72 NXCodecStatusADC1ON
= 0x04,
73 NXCodecStatusDAC1ON
= 0x02,
74 NXCodecStatusReset
= 0x01,
75 RegNXCodecWrite
= 0x44,
76 RegNXCodecRead
= 0x48,
77 RegNXCodecRead2
= 0x4c
81 #endif // _SIS7018_REGISTERS_H_