From 3396c4027d3723a2f8693448f660748e2bb7c07f Mon Sep 17 00:00:00 2001 From: Terry Cheong Date: Tue, 4 Jun 2024 13:15:54 +0800 Subject: mb/google/brox/var/brox: Enable Class-D calibration DC offset of class-D amplifier is 7mV in Brox which is larger than the expected 3mV. Add a section in the verb table to enable class-D calibration based on the updated verb table provided by Realtek in b:342506575 comment#6. This improves the offset to be less than 1mV. BUG=b:342506575 BRANCH=main TEST=Verify DC offset of speaker amplier output is less than 1mV with a multimeter when \ playing -100dB sine waves. Change-Id: I776f5c24ce3c829cbd64840957c1431608cf2b85 Signed-off-by: Terry Cheong Reviewed-on: https://review.coreboot.org/c/coreboot/+/82794 Tested-by: build bot (Jenkins) Reviewed-by: Shelley Chen Reviewed-by: Karthik Ramasubramanian --- src/mainboard/google/brox/variants/brox/include/variant/hda_verb.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/brox/variants/brox/include/variant/hda_verb.h b/src/mainboard/google/brox/variants/brox/include/variant/hda_verb.h index c0b0eb0733..7cf01c2554 100644 --- a/src/mainboard/google/brox/variants/brox/include/variant/hda_verb.h +++ b/src/mainboard/google/brox/variants/brox/include/variant/hda_verb.h @@ -9,7 +9,7 @@ const u32 cim_verb_data[] = { /* coreboot specific header */ 0x10ec0256, // Codec Vendor / Device ID: Realtek ALC256 0x10ec12ac, // Subsystem ID - 0x00000013, // Number of jacks (NID entries) + 0x00000014, // Number of jacks (NID entries) AZALIA_RESET(0x1), /* NID 0x01, HDA Codec Subsystem ID Verb table */ @@ -113,6 +113,11 @@ const u32 cim_verb_data[] = { 0x02046A0C, 0x02050008, 0x02046A0C, + /* Class-D calibration */ + 0x05850000, + 0x0584F880, + 0x05850000, + 0x0584F880, }; const u32 pc_beep_verbs[] = { -- cgit v1.2.3