coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hda_verb.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <
device/azalia_device.h
>
4
5
const
u32
cim_verb_data
[] = {
6
/* coreboot specific header */
7
0x10ec0295,
// Codec Vendor / Device ID: Realtek ALC3254
8
0xffffffff,
// Subsystem ID
9
0x0000002b,
// Number of jacks (NID entries)
10
11
/* Rest Codec First */
12
AZALIA_RESET
(0x1),
13
/* NID 0x01, HDA Codec Subsystem ID Verb Table */
14
AZALIA_SUBVENDOR
(0, 0x102808b6),
15
16
/* Pin Widget Verb Table */
17
AZALIA_PIN_CFG
(0, 0x12, 0xb7a60130),
18
AZALIA_PIN_CFG
(0, 0x13, 0x411111f0),
19
AZALIA_PIN_CFG
(0, 0x14, 0x90170110),
20
AZALIA_PIN_CFG
(0, 0x16, 0x40000000),
21
AZALIA_PIN_CFG
(0, 0x17, 0x411111f0),
22
AZALIA_PIN_CFG
(0, 0x18, 0x411111f0),
23
AZALIA_PIN_CFG
(0, 0x19, 0x04a11030),
24
AZALIA_PIN_CFG
(0, 0x1a, 0x411111f0),
25
AZALIA_PIN_CFG
(0, 0x1b, 0x411111f0),
26
AZALIA_PIN_CFG
(0, 0x1d, 0x40c00001),
27
AZALIA_PIN_CFG
(0, 0x1e, 0x421212f2),
28
AZALIA_PIN_CFG
(0, 0x21, 0x04211020),
29
30
/* D reset */
31
0x0205003C,
32
0x0204F254,
33
0x0205003C,
34
0x0204F214,
35
/* JD1 - 2port JD mode */
36
0x02050009,
37
0x0204E003,
38
0x0205000A,
39
0x02047770,
40
/* Set TRS type-1 */
41
0x02050045,
42
0x02045289,
43
0x02050049,
44
0x02040049,
45
/* Set TRS type-2 + Set UAJ Line2 vref(ALC3254) */
46
0x0205004A,
47
0x0204A830,
48
0x02050063,
49
0x0204CF00,
50
/* NID 0x20 set class-D to 2W@4ohm (+12dB gain)
51
* + Set sine tone gain(0x34) */
52
0x02050038,
53
0x02043909,
54
0x05C50000,
55
0x05C43482,
56
/* AGC-1 Disable + (Front Gain=0dB ) */
57
0x05D50006,
58
0x05D44C50,
59
0x05D50002,
60
0x05D44004,
61
/* AGC-2 (Backt Boost Gain= -0.375dB ,Limiter = -3dB) */
62
0x05D50003,
63
0x05D45E5E,
64
0x05D50001,
65
0x05D4D788,
66
/* AGC-3 + AGC Enable */
67
0x05D50009,
68
0x05D451FF,
69
0x05D50006,
70
0x05D44E50,
71
/* HP-JD Enable +Nokia type */
72
0x0205004A,
73
0x02042010,
74
0x02050008,
75
0x02046A0C,
76
/* EAPD set to verb-control + I2C Un-use+ DVDD3.3V */
77
0x02050010,
78
0x02040020,
79
0x02050034,
80
0x0204A23D,
81
/* Class D silent detection Enable -84dB threshold */
82
0x02050030,
83
0x02049000,
84
0x02050037,
85
0x0204FE15,
86
/* Disable EQ + set 250Hz 3rd High Pass filter */
87
0x05350000,
88
0x0534203A,
89
0x05350000,
90
0x0534203A,
91
/* Left Channel-1 */
92
0x0535001d,
93
0x05340800,
94
0x0535001e,
95
0x05340800,
96
/* Left Channel-2 */
97
0x05350003,
98
0x05341EF8,
99
0x05350004,
100
0x05340000,
101
/* Left Channel-3 */
102
0x05350005,
103
0x053403EE,
104
0x05350006,
105
0x0534FA60,
106
/* Left Channel-4 */
107
0x05350007,
108
0x05341E10,
109
0x05350008,
110
0x05347B86,
111
/* Left Channel-5 */
112
0x05350009,
113
0x053401F7,
114
0x0535000A,
115
0x05349FB6,
116
/* Left Channel-6 */
117
0x0535000B,
118
0x05341C00,
119
0x0535000C,
120
0x05340000,
121
/* Left Channel-7 */
122
0x0535000D,
123
0x05340200,
124
0x0535000E,
125
0x05340000,
126
/* Right Channel-1 */
127
0x05450000,
128
0x05442000,
129
0x0545001d,
130
0x05440800,
131
/* Right Channel-2 */
132
0x0545001e,
133
0x05440800,
134
0x05450003,
135
0x05441EF8,
136
/* Right Channel-3 */
137
0x05450004,
138
0x05440000,
139
0x05450005,
140
0x054403EE,
141
/* Right Channel-4 */
142
0x05450006,
143
0x0544FA60,
144
0x05450007,
145
0x05441E10,
146
/* Right Channel-5 */
147
0x05450008,
148
0x05447B86,
149
0x05450009,
150
0x054401F7,
151
/* Right Channel-6 */
152
0x0545000A,
153
0x05449FB6,
154
0x0545000B,
155
0x05441C00,
156
/* Right Channel-7 */
157
0x0545000C,
158
0x05440000,
159
0x0545000D,
160
0x05440200,
161
/* Right Channel-8 + EQ Update & Enable */
162
0x0545000E,
163
0x05440000,
164
0x05350000,
165
0x0534E03A,
166
/* Enable all Microphone */
167
0x0205000D,
168
0x0204A023,
169
0x0205000D,
170
0x0204A023,
171
/* Enable Internal Speaker (NID14) */
172
0x0205000F,
173
0x02040000,
174
0x0205000F,
175
0x02040000,
176
};
177
178
const
u32
pc_beep_verbs
[] = {
179
/* PCBeep pass through to NID14 for ePSA test-1 */
180
0x02050036,
181
0x020477D7,
182
0x0143B000,
183
0x01470740,
184
/* PCBeep pass through to NID14 for ePSA test-2 */
185
0x01470C02,
186
0x01470C02,
187
0x01470C02,
188
0x01470C02,
189
};
190
191
AZALIA_ARRAY_SIZES
;
azalia_device.h
AZALIA_SUBVENDOR
#define AZALIA_SUBVENDOR(codec, val)
Definition:
azalia_device.h:148
AZALIA_PIN_CFG
#define AZALIA_PIN_CFG(codec, pin, val)
Definition:
azalia_device.h:134
AZALIA_RESET
#define AZALIA_RESET(pin)
Definition:
azalia_device.h:142
cim_verb_data
const u32 cim_verb_data[]
Definition:
hda_verb.c:5
pc_beep_verbs
const u32 pc_beep_verbs[]
Definition:
hda_verb.c:37
AZALIA_ARRAY_SIZES
AZALIA_ARRAY_SIZES
Definition:
hda_verb.c:39
u32
uint32_t u32
Definition:
stdint.h:51
src
mainboard
google
sarien
variants
arcada
hda_verb.c
Generated by
1.9.1