From ad9270db221bfc31daec30f1e056104d12cfaf2b Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 7 May 2021 18:08:59 +0200 Subject: mb/gigabyte/ga-d510ud: Fix HDA codec configuration The values were copied from Foxconn D41S, which uses a different codec. Adjust the codec config as per the settings dumped from vendor firmware. Change-Id: If6a4c41b5d424adb23ebef402d2d2ad21269fe25 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/53914 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- src/mainboard/gigabyte/ga-d510ud/hda_verb.c | 34 +++++++++++++++-------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/mainboard/gigabyte/ga-d510ud/hda_verb.c b/src/mainboard/gigabyte/ga-d510ud/hda_verb.c index f36d48cfb54a..a19839f40135 100644 --- a/src/mainboard/gigabyte/ga-d510ud/hda_verb.c +++ b/src/mainboard/gigabyte/ga-d510ud/hda_verb.c @@ -3,22 +3,24 @@ #include const u32 cim_verb_data[] = { - /* coreboot specific header */ - 0x10ec0662, - 0x105b0d55, /* Subsystem ID */ - 10, /* Number of entries */ - - /* Pin Widget Verb Table */ - AZALIA_PIN_CFG(0, 0x14, 0x01014c10), - AZALIA_PIN_CFG(0, 0x15, 0x411111f0), - AZALIA_PIN_CFG(0, 0x16, 0x411111f0), - AZALIA_PIN_CFG(0, 0x18, 0x01a19c30), - AZALIA_PIN_CFG(0, 0x19, 0x02a19c31), - AZALIA_PIN_CFG(0, 0x1a, 0x0181343f), - AZALIA_PIN_CFG(0, 0x1b, 0x02214c1f), - AZALIA_PIN_CFG(0, 0x1c, 0x411111f0), - AZALIA_PIN_CFG(0, 0x1d, 0x4005c603), - AZALIA_PIN_CFG(0, 0x1e, 0x99430120), + 0x10ec0887, /* Realtek ALC887 */ + 0x1458a002, /* Subsystem ID */ + 15, /* Number of 4 dword sets */ + AZALIA_SUBVENDOR(2, 0x1458a002), + AZALIA_PIN_CFG(2, 0x11, 0x411111f0), + AZALIA_PIN_CFG(2, 0x12, 0x411111f0), + AZALIA_PIN_CFG(2, 0x14, 0x01014410), + AZALIA_PIN_CFG(2, 0x15, 0x411111f0), + AZALIA_PIN_CFG(2, 0x16, 0x411111f0), + AZALIA_PIN_CFG(2, 0x17, 0x411111f0), + AZALIA_PIN_CFG(2, 0x18, 0x01a19c30), + AZALIA_PIN_CFG(2, 0x19, 0x02a19c50), + AZALIA_PIN_CFG(2, 0x1a, 0x0181344f), + AZALIA_PIN_CFG(2, 0x1b, 0x02214c20), + AZALIA_PIN_CFG(2, 0x1c, 0x593301f0), + AZALIA_PIN_CFG(2, 0x1d, 0x4005c603), + AZALIA_PIN_CFG(2, 0x1e, 0x411111f0), + AZALIA_PIN_CFG(2, 0x1f, 0x411111f0), }; const u32 pc_beep_verbs[] = {}; -- cgit v1.2.3