Debian Codegraph @

src/mainboard/google/brya/variants/pujjolo/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 0x10ec0257, // Codec Vendor / Device ID: Realtek ALC257
8 0x10ec0257, // Subsystem ID
9 0x00000012, // Number of jacks (NID entries)
10
11 AZALIA_RESET(0x1),
12 /* NID 0x01, HDA Codec Subsystem ID Verb table */
13 //AZALIA_SUBVENDOR(0, 0x10ec3a2c),
14
15 /* Pin Widget Verb Table */
16 /*
17 * DMIC
18 * Requirement is to use PCH DMIC. Hence,
19 * commented out codec's Internal DMIC.
20 * AZALIA_PIN_CFG(0, 0x12, 0x90A60130),
21 * AZALIA_PIN_CFG(0, 0x13, 0x40000000),
22 */
23 AZALIA_PIN_CFG(0, 0x12, 0x40000000),
24 AZALIA_PIN_CFG(0, 0x13, 0x411111F0),
25 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
26 AZALIA_PIN_CFG(0, 0x18, 0x411111f0),
27 AZALIA_PIN_CFG(0, 0x19, 0x04A11030),
28 AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
29 AZALIA_PIN_CFG(0, 0x1b, 0x411111f0),
30 AZALIA_PIN_CFG(0, 0x1d, 0x40579A2D),
31 AZALIA_PIN_CFG(0, 0x1e, 0x411111F0),
32 AZALIA_PIN_CFG(0, 0x21, 0x04211020),
33 //==========Widget node 0x20 - 0 :Hidden register SW reset
34 0x0205001A,
35 0x0204C003,
36 0x0205001A,
37 0x0204C003,
38 0x05850000,
39 0x0584F880,
40 0x05850000,
41 0x0584F880,
42 //==========Widget node 0x20 - 1 : ClassD 2W
43 0x02050038,
44 0x02048981,
45 0x0205001B,
46 0x02040A4B,
47 //==========Widget node 0x20 - 2
48 0x0205003C,
49 0x02043154,
50 0x0205003C,
51 0x02043114,
52 //==========Widget node 0x20 - 3 :
53 0x02050046,
54 0x02040004,
55 0x05750003,
56 0x057409A3,
57 //==========Widget node 0x20 - 4 :JD1 enable 1JD port for HP JD
58 0x02050009,
59 0x02046003,
60 0x0205000A,
61 0x02047770,
62 //==========Widget node 0x20 - 5 : Silence data mode Threshold (-84dB)
63 0x02050037,
64 0x0204FE15,
65 0x02050030,
66 0x02049004,
67 };
68
69 const u32 pc_beep_verbs[] = {
70 /* Dos beep path - 1 */
71 0x02050010,
72 0x02040020,
73 0x02050036,
74 0x02047151,
75 /* Dos beep path - 2 */
76 0x01470740,
77 0x0143B000,
78 0x01470C02,
79 0x01470C02,
80 /* Dos beep path - 3 */
81 0x0205000C,
82 0x020401FF,
83 0x00170503,
84 0x00170503,
85 };
86
87 AZALIA_ARRAY_SIZES;