From d5a92542aaf56c3262ed4a05c6646cf0ea60e55e Mon Sep 17 00:00:00 2001 From: Zhixing Ma Date: Thu, 28 Aug 2025 14:38:41 -0700 Subject: [PATCH] mb/google/fatcat/var/fatcat: Disable ALC721 & ALC722 clock stop support There is an issue with headset detection on Soundwire audio codec. Specifically, if the audio is not active (playback/capture is not ongoing), then 3.5 mm headset detection fails. There is a fix for Francka (PTL design). Similar implementation is needed for Fatcat. Port commit a23be7a6fe12 (mb/google/fatcat/var/francka: Disable ALC721 & ALC722 clock stop support to francka. This allows the flag to be overridden via devicetree, instead of relying on the default value in alc711_slave. It helps fix the missing event issue when plugging or unplugging the 3.5mm headphone jack.) BUG=NONE TEST=After boot to OS, verified headphone detection working using "getevent" command. Seeing headset jack detected in output: add device 3: /dev/input/event7 name: "sof-soundwire Headset Jack" Change-Id: I717f31f8d492bd0b2523c77b7492e46f50de991e Signed-off-by: Zhixing Ma Reviewed-on: https://review.coreboot.org/c/coreboot/+/88986 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/mainboard/google/fatcat/variants/fatcat/overridetree.cb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainboard/google/fatcat/variants/fatcat/overridetree.cb b/src/mainboard/google/fatcat/variants/fatcat/overridetree.cb index 12c293b4a4..a3e94ca659 100644 --- a/src/mainboard/google/fatcat/variants/fatcat/overridetree.cb +++ b/src/mainboard/google/fatcat/variants/fatcat/overridetree.cb @@ -936,6 +936,7 @@ chip soc/intel/pantherlake register "alc711_address.version" = "SOUNDWIRE_VERSION_1_2" register "alc711_address.class" = "MIPI_CLASS_SDCA" register "alc711_address.part_id" = "MIPI_DEV_ID_REALTEK_ALC722" + register "disable_clkstop_sm_support" = "true" # SoundWire Link 1 ID 1 device generic 1.1 on probe AUDIO AUDIO_ALC722_SNDW @@ -946,6 +947,7 @@ chip soc/intel/pantherlake register "alc711_address.version" = "SOUNDWIRE_VERSION_1_2" register "alc711_address.class" = "MIPI_CLASS_SDCA" register "alc711_address.part_id" = "MIPI_DEV_ID_REALTEK_ALC721" + register "disable_clkstop_sm_support" = "true" # SoundWire Link 3 ID 1 device generic 3.1 on probe AUDIO AUDIO_ALC721_SNDW