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 /* Bits 31:28 - Codec Address */
4 /* Bits 27:20 - NID */
5 /* Bits 19:8 - Verb ID */
6 /* Bits 7:0 - Payload */
7 
8 #include <device/azalia_device.h>
9 
10 const u32 cim_verb_data[] = {
11  /* --- Codec #0 --- */
12  0x10ec0269, /* Codec Vendor / Device ID: Realtek ALC269VC */
13  0x17aa21fa, /* Subsystem ID */
14  19, /* Number of 4 dword sets */
15  AZALIA_SUBVENDOR(0, 0x17aa21fa),
16 
17  /* Ext. Microphone Connector: External,Right; MicIn,3.5mm; Black,JD; DA,Seq */
18  AZALIA_PIN_CFG(0, 0x0a, 0x04a11020),
19 
20  /* Headphones Connector: External,Right; HP,3.5mm; Black,JD; DA,Seq */
21  AZALIA_PIN_CFG(0, 0x0b, 0x0421101f),
22 
23  /* Not connected: N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq */
24  AZALIA_PIN_CFG(0, 0x0c, 0x40f000f0),
25 
26  /* Internal Speakers Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq */
27  AZALIA_PIN_CFG(0, 0x0d, 0x90170110),
28 
29  /* Not connected */
30  AZALIA_PIN_CFG(0, 0x0f, 0x40f000f0),
31 
32  /* Internal Microphone: Fixed,Int,Top; Mic In,ATIPI; Unknown,nJD; DA,Seq */
33  AZALIA_PIN_CFG(0, 0x11, 0xd5a30140),
34  AZALIA_PIN_CFG(0, 0x12, 0x90a60140),
35  AZALIA_PIN_CFG(0, 0x14, 0x90170110),
36  AZALIA_PIN_CFG(0, 0x15, 0x03211020),
37  AZALIA_PIN_CFG(0, 0x18, 0x03a11830),
38  AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
39  AZALIA_PIN_CFG(0, 0x1a, 0x411111f0),
40  AZALIA_PIN_CFG(0, 0x1d, 0x40138205),
41  AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
42 
43  /* Misc entries */
44  0x01970804,
45  0x01870803,
46  0x01470740,
47  0x00970640,
48 
49  0x00370680,
50  0x00270680,
51  0x01470c02,
52  0x01570c02,
53 
54  /* ALC coefficients. */
55  /* 08 */
56  0x02050008,
57  0x02040700,
58  /* 18 */
59  0x02050018,
60  0x02045184,
61  /* 1c */
62  0x0205001c,
63  0x02042800,
64 
65  0x01870724, /* Enable Vrefout for mic */
66  0x00170500, /* Set power state to D0 */
67 
68  /* --- Codec #3 --- */
69  0x80862806, /* Codec Vendor / Device ID: Intel PantherPoint HDMI */
70  0x80860101, /* Subsystem ID */
71  4, /* Number of 4 dword sets */
72  AZALIA_SUBVENDOR(3, 0x80860101),
73  AZALIA_PIN_CFG(3, 0x05, 0x18560010),
74  AZALIA_PIN_CFG(3, 0x06, 0x18560020),
75  AZALIA_PIN_CFG(3, 0x07, 0x18560030),
76 };
77 
78 const u32 pc_beep_verbs[] = {
79  0x02177a00, /* Digital PCBEEP Gain: 0h=-9db, 1h=-6db ... 4h=+3db, 5h=+6db */
80 };
81 
#define AZALIA_SUBVENDOR(codec, val)
#define AZALIA_PIN_CFG(codec, pin, val)
const u32 cim_verb_data[]
Definition: hda_verb.c:5
const u32 pc_beep_verbs[]
Definition: hda_verb.c:37
AZALIA_ARRAY_SIZES
Definition: hda_verb.c:39
uint32_t u32
Definition: stdint.h:51