Repository navigation
ASoC: SDCA: add a function type quirk for TAS2783 on HP OmniBook Ultra 14 (8EB4) - #6057
jonnyjonjon wants to merge 1 commit into
Conversation
|
Can one of the admins verify this patch?
|
|
Can you check if https://lore.kernel.org/linux-sound/20260911094539.237430-1-antoniodilorenzonap@gmail.com/ works? Note that you have to add a |
I tested it on the 8EB4 with a new entry (RT712 VB on link 3, two TAS2783 each on links 1 and 2, sof-ptl-dummy.tplg + function topologies), together with #6056, and without this PR's SDCA quirk. The machine entry is selected, and the Speaker PCM is created, but only the left side audio plays. Without the SmartAmp function, tas_io_init() has no sa_func_data, so it skips sdca_regmap_write_init() with the BIOS initialization table and writes the generic tas2783_init_seq to all four amps. The log shows no "Found Smart Amp function". I then tested the new machine entry combined with this PR's quirk, all four amps report the SmartAmp function and both sides play; the same topologies are loaded and the card components are identical in both cases, indicating that the machine entry is valid. With this PR alone (default machine), both sides play as well. Basically, for this board, the endpoint workaround doesn't seem to be sufficient on its own. |
|
@jonnyjonjon thanks for the explanation, now I understand that is not just for DAI link creation, but the amp needs to write the initialization table. |
| if (!has_dc_value && | ||
| sdca_device_quirk_match(slave, SDCA_QUIRKS_TAS2783_SMART_AMP_FUNC_TYPE)) { | ||
| dev_warn(dev, FW_BUG "function type not a DisCo constant, assuming SmartAmp\n"); | ||
| function_type = SDCA_FUNCTION_TYPE_SMART_AMP; |
There was a problem hiding this comment.
I would be inclined to drop the extra present check and just test for the quirk if the read failed. If it's that laptop we know it needs this, so not sure it really matters if the property is missing or invalid.
It would be ideal if we could get HP to push out a firmware fix for this, are the TI guys working on that? But if we really have to do a kernel quirk this is probably the way.
There was a problem hiding this comment.
@niranjanhyti I think this looks like it needs the same fix as this:
There was a problem hiding this comment.
+@jimxbj-dot
Thank @charleskeepax I will request our field team
e76ab45 to
1d0817a
Compare
…a 14 On the HP OmniBook Ultra 14 (board 8EB4, Panther Lake; BIOS F.06 and F.07) the firmware declares the Function Topology control (0x05) of the four TI TAS2783 amplifiers with access mode 3 and no mipi-sdca-control-dc-value. find_sdca_function() then fails with "function type only supported as DisCo constant", no SmartAmp function is created, there is no speaker endpoint, and the internal speakers are silent. The RT712 on the same machine provides the constant and is unaffected. This is a firmware defect. The same one was fixed by a BIOS update on the HP EliteBook X and on the OmniBook X Flip 14 (8EA4, BIOS F.11), see the Link tags below. Until this board gets a fixed BIOS, add a quirk: when the constant cannot be read on this board, treat a TAS2783 (mfg 0x0102, part 0x0000) as a SmartAmp, which is the only function that part implements. On the OmniBook X Flip 14 (8EA4), whose fixed BIOS (F.11) declares the constant, the same part is reported as a SmartAmp (type 1). The quirk is limited to this vendor and board name, and only applies when the constant cannot be read, so a fixed BIOS bypasses it and no other machine changes behaviour. The fallback is logged with FW_BUG. Based on the unconditional fallback proposed by Kasey Prichard in thesofproject/linux PR thesofproject#5904. Tested on HP OmniBook Ultra 14 (8EB4), BIOS F.07: four SmartAmp functions are created. Working speakers also need "soundwire: intel_ace2x: keep DACTQE at its reset value". 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: thesofproject#5732 Link: thesofproject#5904 Link: thesofproject#5760 Link: thesofproject#5981 Signed-off-by: jonnyjonjon <jonnyjonjon42@gmail.com>
1d0817a to
a4d7e8a
Compare
The HP OmniBook Ultra 14 (board 8EB4, Panther Lake, BIOS F.06/F.07) firmware
declares the Function Topology control of its four TAS2783 amplifiers without
mipi-sdca-control-dc-value, sofind_sdca_function()fails with "functiontype only supported as DisCo constant", no SmartAmp function is created, and
the speakers are silent.
This is the same firmware defect that BIOS updates fixed on the HP EliteBook X
(#5760) and OmniBook X Flip 14 (8EA4, F.11). Until HP ships a fixed BIOS for
8EB4, this adds a narrow quirk:
"8EB4" (exact), via a
dmi_system_idtable so more boards only need an entrywhat the fixed 8EA4 BIOS reports), logged with
FW_BUGBased on the unconditional fallback proposed by Kasey Prichard in #5904, but
limited to this board.
Testing: HP OmniBook Ultra 14 (8EB4), BIOS F.07: all four TAS2783 report
the SmartAmp function and both sides play. Working speakers also need
#6056 (DACTQE); the two changes are independent and can be reviewed
separately.
Related: #5732, #5760, #5904, #5981
This change and its description were developed with the help of Claude Code;
I reviewed and tested it on the hardware above.
Updates:
dmi_system_idtable withdmi_check_system()andDMI_EXACT_MATCHfor the board name instead ofdmi_get_system_info()+strcmp()(Bard).mipi-sdca-control-dc-valuefails, withouta separate presence check (Charles).