Skip to content

Conversation

@Lyapsus
Copy link

@Lyapsus Lyapsus commented Nov 19, 2025

  • Introduce a full HDA-side codec path for AW88399 smart amps so Legion-class systems can drive their woofers without the SOF/SSP glue: new aw88399_hda{,_i2c}.c handle ACPI/SMI instantiation, firmware loading via the reused ASoC core, and bind into the HDA component framework with runtime PM, playback hooks, Legion-specific channel swap, and ACPI metadata parsing.
  • Teach the Realtek ALC287 driver to build two AW88399 components on Lenovo 17aa:3906/3907 machines by adding a dedicated fixup, HDA component wiring, and the necessary Kconfig/Makefile/plumbing so the side-codec autoloads.
  • Extend the generic infrastructure so this HDA flow coexists with the old SSP driver: export the AW88399 core helpers, add strict hw_params validation, improve channel detection and start/stop handling in the ASoC codec, drop its ACPI match to avoid binding races, and allow ACPI/SMI to enumerate the amps via new entries in drivers/acpi/scan.c and serial-multi-instantiate.

@sofci
Copy link
Collaborator

sofci commented Nov 19, 2025

Can one of the admins verify this patch?

reply test this please to run this test once

@Lyapsus Lyapsus force-pushed the legion-aw88399-generic branch from e3bcd03 to 49dda2c Compare November 20, 2025 14:10
@kv2019i
Copy link
Collaborator

kv2019i commented Nov 20, 2025

@Lyapsus Great to see progress on this! It is good this hw turned out to be similar to existing hardware and not a directly exposed as I2S to SoC DSP (this would have been a totally new hw design, and less code to reuse in upstream).

As SOF is no longer used, this should be sent directly to sound subsystem via [email protected] . This github project is only used to stage patches to linux/sound/soc/sof/

@Lyapsus
Copy link
Author

Lyapsus commented Nov 20, 2025

@kv2019i sounds reasonbale haha. Gotta go there then. Thanks a lot!

@Lyapsus Lyapsus closed this Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants