From d3d2f0f1c8dd3f085aa47d8d5d9c1e13d39b6827 Mon Sep 17 00:00:00 2001 From: Ren Kuo Date: Fri, 12 Sep 2025 16:15:28 +0800 Subject: [PATCH] mb/google/fatcat/var/moonstone: Add to support ALC1320 Smart Amp Enable Realtek ALC1320 as speaker Amplifier. Use ALC721 as codec and ALC1320 as Amplifier on SoundWire Link 3. BUG=b:442964982 TEST=emerge-fatcat coreboot 1.Set fw_config AUDIO bits to AUDIO_ALC1320_ALC721_SNDW 2.check the SSDT.dsl: PCI0.HDAS.SNDW including 0x000331025D072101 & 0x000332025D132001 Change-Id: I4c6b5c3f2d9acb7eaf8f77844526bc9de3ae1f99 Signed-off-by: Ren Kuo Reviewed-on: https://review.coreboot.org/c/coreboot/+/89177 Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- .../fatcat/variants/moonstone/overridetree.cb | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/fatcat/variants/moonstone/overridetree.cb b/src/mainboard/google/fatcat/variants/moonstone/overridetree.cb index 18a506700f..b06207f9ed 100644 --- a/src/mainboard/google/fatcat/variants/moonstone/overridetree.cb +++ b/src/mainboard/google/fatcat/variants/moonstone/overridetree.cb @@ -3,8 +3,9 @@ fw_config option WIFI_CNVI_7 0 end field AUDIO 3 5 - option AUDIO_UNKNOWN 0 - option AUDIO_ALC721_SNDW 1 + option AUDIO_UNKNOWN 0 + option AUDIO_ALC721_SNDW 1 + option AUDIO_ALC1320_ALC721_SNDW 2 end field FPMCU 6 7 option FP_ABSENT 0 @@ -374,6 +375,7 @@ chip soc/intel/pantherlake device ref smbus on end device ref hda on probe AUDIO AUDIO_ALC721_SNDW + probe AUDIO AUDIO_ALC1320_ALC721_SNDW chip drivers/intel/soundwire device generic 0 on chip drivers/soundwire/alc711 @@ -384,8 +386,19 @@ chip soc/intel/pantherlake # SoundWire Link 3 ID 1 device generic 3.1 on probe AUDIO AUDIO_ALC721_SNDW + probe AUDIO AUDIO_ALC1320_ALC721_SNDW end end + chip drivers/soundwire/alc1320 + register "desc" = ""Speaker Amp"" + register "alc1320_address.version" = "SOUNDWIRE_VERSION_1_2" + register "alc1320_address.class" = "MIPI_CLASS_SDCA" + register "alc1320_address.part_id" = "MIPI_DEV_ID_REALTEK_ALC1320" + # SoundWire Link 3 ID 2 + device generic 3.2 on + probe AUDIO AUDIO_ALC1320_ALC721_SNDW + end # ALC1320 Smart Amp + end end end end