Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mb/msi/{ms7d25,ms7e06}: Reset audio codec #388

Merged
merged 2 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 75 additions & 3 deletions src/mainboard/msi/ms7d25/hda_verb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const u32 cim_verb_data[] = {
/* Realtek ALC897 */
0x10ec0897, /* Vendor ID */
0x14629d25, /* Subsystem ID */
15, /* Number of entries */
28, /* Number of entries */
AZALIA_RESET(0x1),
AZALIA_SUBVENDOR(0, 0x14629d25),
AZALIA_PIN_CFG(0, 0x11, 0x4037d540),
AZALIA_PIN_CFG(0, 0x12, 0x411111f0),
Expand All @@ -23,12 +24,83 @@ const u32 cim_verb_data[] = {
AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1f, 0x411111f0),

0x0205003B,
0x02040080,
0x02050039,
0x02044031,

0x02050013,
0x02040053,
0x02050030,
0x020492D1,

0x02050021,
0x02040000,
0x02050023,
0x02040000,

0x02050025,
0x02040000,
0x02050027,
0x02040000,

0x02050029,
0x02040000,
0x0205002A,
0x02041640,

0x0205002B,
0x02041640,
0x02050021,
0x02040C00,

0x02050023,
0x02040C00,
0x02050025,
0x02040C00,

0x02050027,
0x02040C00,
0x02050029,
0x02040C00,

0x0205002A,
0x02041641,
0x0205002B,
0x02041641,

0x02050030,
0x02049251,
0x0205002A,
0x02041649,

0x0205002B,
0x02041649,
0x0205000C,
0x02043F06,

0x02050007,
0x0204F808,
0x02050007,
0x0204F808,

/* Alderlake HDMI */
0x80862815, /* Vendor ID */
0x80860101, /* Subsystem ID */
2, /* Number of entries */
7, /* Number of entries */
AZALIA_SUBVENDOR(2, 0x80860101),
AZALIA_PIN_CFG(2, 0x04, 0x18560010),
0x00278111,
0x00278111,
0x00278111,
0x00278111,
AZALIA_PIN_CFG(2, 0x05, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560020),
AZALIA_PIN_CFG(2, 0x07, 0x18560030),
AZALIA_PIN_CFG(2, 0x08, 0x18560040),
0x00278100,
0x00278100,
0x00278100,
0x00278100
};


Expand Down
90 changes: 77 additions & 13 deletions src/mainboard/msi/ms7e06/hda_verb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const u32 cim_verb_data[] = {
/* Realtek ALC897 */
0x10ec0897, /* Vendor ID */
0x14629e06, /* Subsystem ID */
15, /* Number of entries */
28, /* Number of entries */
AZALIA_RESET(0x1),
AZALIA_SUBVENDOR(0, 0x14629e06),
AZALIA_PIN_CFG(0, 0x11, 0x4037d540),
AZALIA_PIN_CFG(0, 0x12, 0x411111f0),
Expand All @@ -23,20 +24,83 @@ const u32 cim_verb_data[] = {
AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
AZALIA_PIN_CFG(0, 0x1f, 0x411111f0),

/* Alderlake HDMI */
0x80862818, /* Vendor ID */
0x0205003B,
0x02040080,
0x02050039,
0x02044031,

0x02050013,
0x02040053,
0x02050030,
0x020492D1,

0x02050021,
0x02040000,
0x02050023,
0x02040000,

0x02050025,
0x02040000,
0x02050027,
0x02040000,

0x02050029,
0x02040000,
0x0205002A,
0x02041640,

0x0205002B,
0x02041640,
0x02050021,
0x02040C00,

0x02050023,
0x02040C00,
0x02050025,
0x02040C00,

0x02050027,
0x02040C00,
0x02050029,
0x02040C00,

0x0205002A,
0x02041641,
0x0205002B,
0x02041641,

0x02050030,
0x02049251,
0x0205002A,
0x02041649,

0x0205002B,
0x02041649,
0x0205000C,
0x02043F06,

0x02050007,
0x0204F808,
0x02050007,
0x0204F808,

/* RaptorLake HDMI */
0x8086280f, /* Vendor ID */
0x80860101, /* Subsystem ID */
2, /* Number of entries */
7, /* Number of entries */
AZALIA_SUBVENDOR(2, 0x80860101),
AZALIA_PIN_CFG(2, 0x04, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560010),
AZALIA_PIN_CFG(2, 0x08, 0x18560010),
AZALIA_PIN_CFG(2, 0x0a, 0x18560010),
AZALIA_PIN_CFG(2, 0x0b, 0x18560010),
AZALIA_PIN_CFG(2, 0x0c, 0x18560010),
AZALIA_PIN_CFG(2, 0x0d, 0x18560010),
AZALIA_PIN_CFG(2, 0x0e, 0x18560010),
AZALIA_PIN_CFG(2, 0x0f, 0x18560010),
0x00278111,
0x00278111,
0x00278111,
0x00278111,
AZALIA_PIN_CFG(2, 0x05, 0x18560010),
AZALIA_PIN_CFG(2, 0x06, 0x18560020),
AZALIA_PIN_CFG(2, 0x07, 0x18560030),
AZALIA_PIN_CFG(2, 0x08, 0x18560040),
0x00278100,
0x00278100,
0x00278100,
0x00278100
};


Expand Down
Loading