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 0x11020011, // Codec Vendor / Device ID: Creative CA0132
8 0x10280550, // Subsystem ID
9 0x00000015, // Number of jacks + Number of Malcolm setup blocks.
63 /* Enable and set EAPD pin for headphone jack */
64 AZALIA_VERB_12B(0x0, 0x10, 0x78d, 0x2),
65 AZALIA_VERB_12B(0x0, 0x10, 0x78d, 0x2), /* Padding */
66 AZALIA_VERB_12B(0x0, 0x10, 0x78d, 0x2), /* Padding */
67 AZALIA_VERB_12B(0x0, 0x10, 0x78d, 0x2), /* Padding */
69 /* Pin Widget Verb Table */
71 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10280550 */
72 AZALIA_SUBVENDOR(0, 0x10280550),
74 /* Pin Complex (NID 0x0B) Port-G Analog Unknown Speaker at Int N/A */
75 AZALIA_PIN_CFG(0, 0x0b, 0x901700f0),
77 /* Pin Complex (NID 0x0C) N/C */
78 AZALIA_PIN_CFG(0, 0x0c, 0x70f000f0),
80 /* Pin Complex (NID 0x0D) N/C */
81 AZALIA_PIN_CFG(0, 0x0d, 0x70f000f0),
83 /* Pin Complex (NID 0x0E) N/C */
84 AZALIA_PIN_CFG(0, 0x0e, 0x70f000f0),
86 /* Pin Complex (NID 0x0F) N/C */
87 AZALIA_PIN_CFG(0, 0x0f, 0x70f000f0),
89 /* Pin Complex (NID 0x10) Port-D 1/8 Black HP Out at Ext Left */
90 AZALIA_PIN_CFG(0, 0x10, 0x032110f0),
92 /* Pin Complex (NID 0x11) Port-B Click Mic */
93 AZALIA_PIN_CFG(0, 0x11, 0x90a700f0),
95 /* Pin Complex (NID 0x12) Port-C Combo Jack Mic or D-Mic */
96 AZALIA_PIN_CFG(0, 0x12, 0x03a110f0),
98 /* Pin Complex (NID 0x13) What you hear */
99 AZALIA_PIN_CFG(0, 0x13, 0x90d600f0),
101 /* coreboot specific header */
102 0x80862806, // Codec Vendor / Device ID: Intel CougarPoint HDMI
103 0x80860101, // Subsystem ID
104 0x00000004, // Number of jacks
106 /* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x80860101 */
107 AZALIA_SUBVENDOR(3, 0x80860101),
109 /* Pin Complex (NID 0x05) Digital Out at Int HDMI */
110 AZALIA_PIN_CFG(3, 0x05, 0x18560010),
112 /* Pin Complex (NID 0x06) Digital Out at Int HDMI */
113 AZALIA_PIN_CFG(3, 0x06, 0x18560020),
115 /* Pin Complex (NID 0x07) Digital Out at Int HDMI */
116 AZALIA_PIN_CFG(3, 0x07, 0x18560030),
119 const u32 pc_beep_verbs
[] = {
120 0x00170500, /* power up codec */
121 0x00270500, /* power up DAC */
122 0x00b70500, /* power up speaker */
123 0x00b70740, /* enable speaker out */
124 0x00b78d00, /* enable EAPD pin */
125 0x00b70c02, /* set EAPD pin */
126 0x0143b013, /* beep volume */