Debian Codegraph @

src/mainboard/google/brya/variants/kaladin/hda_verb.c

raw symbols SCIP
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 0x10ec0236, // Codec Vendor / Device ID: Realtek ALC236
8 0x103C8C60, // Subsystem ID
9 0x00000016, // Number of jacks (NID entries)
10
11 AZALIA_RESET(0x1),
12 /* NID 0x01, HDA Codec Subsystem ID Verb table */
13 AZALIA_SUBVENDOR(0, 0x103C8C60),
14
15 /* Pin Widget Verb Table */
16
17 /*
18 * DMIC
19 * Requirement is to use PCH DMIC. Hence,
20 * commented out codec's Internal DMIC.
21 * AZALIA_PIN_CFG(0, 0x12, 0x90A60130),
22 * AZALIA_PIN_CFG(0, 0x13, 0x40000000),
23 */
24
25 /* Pin widget 0x14 - Front (Port-D) */
26 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
27 /* Pin widget 0x18 - NPC */
28 AZALIA_PIN_CFG(0, 0x18, 0x411111F0),
29 /* Pin widget 0x19 - MIC2 (Port-F) */
30 AZALIA_PIN_CFG(0, 0x19, 0x03A11020),
31 /* Pin widget 0x1A - LINE1 (Port-C) */
32 AZALIA_PIN_CFG(0, 0x1a, 0x411111F0),
33 /* Pin widget 0x1B - NPC */
34 AZALIA_PIN_CFG(0, 0x1b, 0x411111F0),
35 /* Pin widget 0x1D - BEEP-IN */
36 AZALIA_PIN_CFG(0, 0x1d, 0x40600001),
37 /* Pin widget 0x1E - NPC */
38 AZALIA_PIN_CFG(0, 0x1e, 0x411111F0),
39 /* Pin widget 0x21 - HP1-OUT (Port-I) */
40 AZALIA_PIN_CFG(0, 0x21, 0x03211040),
41
42 /*
43 * Widget node 0x20 - 1
44 */
45 0x0205003C,
46 0x02040354,
47 0x0205003C,
48 0x02040314,
49 /*
50 * Widget node 0x20 - 2
51 * Set JD2 pull high
52 */
53 0x0205001B,
54 0x02040A4B,
55 0x0205000B,
56 0x02047778,
57 /*
58 * Widget node 0x20 - 3
59 */
60 0x02050046,
61 0x02040004,
62 0x05750003,
63 0x057409A3,
64 /* disable EQ first */
65 0x05350000,
66 0x0534201A,
67 /* Left Channel */
68 0x0535001d,
69 0x05340800,
70 0x0535001e,
71 0x05340800,
72 0x05350003,
73 0x05341F7B,
74 0x05350004,
75 0x05340000,
76 /* Right Channel */
77 0x05450000,
78 0x05442000,
79 0x0545001d,
80 0x05440800,
81 0x0545001e,
82 0x05440800,
83 0x05450003,
84 0x05441F7B,
85 0x05450004,
86 0x05440000,
87 /* enable EQ */
88 0x05350000,
89 0x0534E01A,
90 /* 2.2W/4ohm */
91 0x02050038,
92 0x02046901,
93 /* Disable AGC and set AGC limit to 0dB */
94 0x02050016,
95 0x02044C50,
96 0x02050012,
97 0x0204EBC0,
98 /* Set AGC Front and Post gain 0dB then Enable AGC */
99 0x02050013,
100 0x0204401F,
101 0x02050016,
102 0x02044E50,
103 /* Headphone Pop */
104 0x05750007,
105 0x057412B2,
106 0x05750007, /* Padding */
107 0x057412B2, /* Padding */
108 };
109
110 const u32 pc_beep_verbs[] = {
111 /* Dos beep path - 1 */
112 0x02050036,
113 0x02047151,
114 0x02050010,
115 0x02040020,
116 /* Dos beep path - 2 */
117 0x0143B000,
118 0x01470740,
119 0x01470C02,
120 0x01470C02,
121 };
122
123 AZALIA_ARRAY_SIZES;