From 5f311fab74081c1fbb4e310a07f329c3059ecde2 Mon Sep 17 00:00:00 2001 From: jonnyjonjon Date: Wed, 25 Nov 2026 21:23:33 -0500 Subject: [PATCH] soundwire: intel: quirk to keep DACTQE disabled on 8EB4 speaker amps On the HP OmniBook Ultra 14 (board 8EB4, Panther Lake, BIOS F.07), links 1 and 2 each carry two TI TAS2783 amplifiers. intel_shim_vs_init() programs ACTMCTL = 0x117D on those links (the BIOS _DSD timing values, plus DACTQE), and the amplifiers keep failing: parity errors and firmware download failures, tens of thousands of log lines per boot. DACTQE enables the AC timing qualifier, and the DOAIS/DOAISE and DODS/DODSE timing fields only take effect when it is set. The timing values the BIOS provides do not work for these amplifiers. The proper fix is suitable _DSD timing values in the BIOS. Until one is available, add a DMI quirk that leaves DACTQE at its reset value (clear) on links 1 and 2 of this board, which gives ACTMCTL = 0x117C there. All four amplifiers then attach and play. Link 3 (a single RT712) is unaffected. The quirk is applied in sdw_master_read_intel_prop(), next to the other timing values read from _DSD. It matches only this vendor and board name, and its driver_data holds the mask of affected links, so no other link or platform changes behaviour. Tested on HP OmniBook Ultra 14 (8EB4), BIOS F.07: all four TAS2783 amplifiers attach and play. This BIOS also does not declare the SDCA function type of the TAS2783 amplifiers, so for testing, the function type was set to SmartAmp with a separate local change. A fix for that is out of scope here. This patch was developed with the help of Claude Code (Claude Opus 5.5). I reviewed the change and tested it on the hardware above. Link: https://github.com/thesofproject/linux/issues/5732 Signed-off-by: jonnyjonjon --- drivers/soundwire/intel.h | 1 + drivers/soundwire/intel_ace2x.c | 3 ++- drivers/soundwire/intel_auxdevice.c | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/soundwire/intel.h b/drivers/soundwire/intel.h index 7a2e7e73ad632a..5a9ff9a7ab94f3 100644 --- a/drivers/soundwire/intel.h +++ b/drivers/soundwire/intel.h @@ -93,6 +93,7 @@ struct sdw_intel_prop { u16 doais; u16 dodse; u16 dods; + bool no_dactqe; }; enum intel_pdi_type { diff --git a/drivers/soundwire/intel_ace2x.c b/drivers/soundwire/intel_ace2x.c index 642b33ab552606..5f8862555a6c93 100644 --- a/drivers/soundwire/intel_ace2x.c +++ b/drivers/soundwire/intel_ace2x.c @@ -467,7 +467,8 @@ static void intel_shim_vs_init(struct sdw_intel *sdw) u16p_replace_bits(&act, doais, SDW_SHIM2_INTEL_VS_ACTMCTL_DOAIS); u16p_replace_bits(&act, dodse, SDW_SHIM2_INTEL_VS_ACTMCTL_DODSE); u16p_replace_bits(&act, dods, SDW_SHIM2_INTEL_VS_ACTMCTL_DODS); - act |= SDW_SHIM2_INTEL_VS_ACTMCTL_DACTQE; + if (!intel_prop->no_dactqe) + act |= SDW_SHIM2_INTEL_VS_ACTMCTL_DACTQE; intel_writew(shim_vs, SDW_SHIM2_INTEL_VS_ACTMCTL, act); usleep_range(10, 15); } diff --git a/drivers/soundwire/intel_auxdevice.c b/drivers/soundwire/intel_auxdevice.c index 5983fbc5725a26..a50b40964bb557 100644 --- a/drivers/soundwire/intel_auxdevice.c +++ b/drivers/soundwire/intel_auxdevice.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -158,9 +159,27 @@ static void generic_new_peripheral_assigned(struct sdw_bus *bus, sdw->link_res->hw_ops->program_sdi(sdw, dev_num); } +/* + * Boards whose SoundWire peripherals do not work with the AC timing + * qualifier (DACTQE) enabled and the timing values provided by the BIOS. + * driver_data is the mask of affected links. + */ +static const struct dmi_system_id intel_no_dactqe_quirk_table[] = { + { + /* HP OmniBook Ultra 14, TAS2783 amplifiers on links 1 and 2 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "HP"), + DMI_EXACT_MATCH(DMI_BOARD_NAME, "8EB4"), + }, + .driver_data = (void *)(BIT(1) | BIT(2)), + }, + {} +}; + static int sdw_master_read_intel_prop(struct sdw_bus *bus) { struct sdw_master_prop *prop = &bus->prop; + const struct dmi_system_id *dmi_id; struct sdw_intel_prop *intel_prop; struct fwnode_handle *link; char name[32]; @@ -241,6 +260,13 @@ static int sdw_master_read_intel_prop(struct sdw_bus *bus) fwnode_property_read_u16(link, "intel-sdw-dods", &intel_prop->dods); + + dmi_id = dmi_first_match(intel_no_dactqe_quirk_table); + if (dmi_id && ((unsigned long)dmi_id->driver_data & BIT(bus->link_id))) { + dev_info(bus->dev, "quirk: leaving AC timing qualifier disabled\n"); + intel_prop->no_dactqe = true; + } + bus->vendor_specific_prop = intel_prop; dev_dbg(bus->dev, "doaise %#x doais %#x dodse %#x dods %#x\n",