1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/azalia_device.h>
5 const u32 cim_verb_data
[] = {
6 /* coreboot specific header */
7 0x10ec0256, /* Codec Vendor / Device ID: Realtek ALC256 */
8 0x10ec12ac, /* Subsystem ID */
9 0x00000013, /* Number of jacks (NID entries) */
12 /* NID 0x01, HDA Codec Subsystem ID Verb Table */
13 AZALIA_SUBVENDOR(0, 0x10ec12ac),
15 /* Pin Widget Verb Table */
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),
23 /* Pin widget 0x14 - Front (Port-D) */
24 AZALIA_PIN_CFG(0, 0x14, 0x90170110),
25 /* Pin widget 0x18 - NPC */
26 AZALIA_PIN_CFG(0, 0x18, 0x411111F0),
27 /* Pin widget 0x19 - MIC2 (Port-F) */
28 AZALIA_PIN_CFG(0, 0x19, 0x04A11040),
29 /* Pin widget 0x1A - LINE1 (Port-C) */
30 AZALIA_PIN_CFG(0, 0x1a, 0x411111F0),
31 /* Pin widget 0x1B - NPC */
32 AZALIA_PIN_CFG(0, 0x1b, 0x411111F0),
33 /* Pin widget 0x1D - BEEP-IN */
34 AZALIA_PIN_CFG(0, 0x1d, 0x40610041),
35 /* Pin widget 0x1E - NPC */
36 AZALIA_PIN_CFG(0, 0x1e, 0x411111F0),
37 /* Pin widget 0x21 - HP1-OUT (Port-I) */
38 AZALIA_PIN_CFG(0, 0x21, 0x04211020),
40 * Widget node 0x20 - 1
41 * Codec hidden reset and speaker power 2W/4ohm
48 * Widget node 0x20 - 2
49 * Class D power on Reset
56 * Widget node 0x20 - 3
57 * Disable AGC and set AGC limit to -1.5dB
64 * Widget node 0x20 - 4
65 * Set AGC Post gain +1.5dB then Enable AGC
72 * Widget node 0x20 - 5
73 * Silence detector enabling + Set EAPD to verb control
80 * Widget node 0x20 - 6
81 * Silence data mode Threshold (-90dB)
88 * Widget node 0x20 - 7
96 * Widget node 0x20 - 8
97 * support 1 pin detect two port
104 * Widget node 0x20 - 9
105 * To set LDO1/LDO2 as default
113 const u32 pc_beep_verbs
[] = {
114 /* Dos beep path - 1 */
119 /* Dos beep path - 2 */