Re: [PATCH v3 1/3] ASoC: SDCA: Create DAPM widgets and routes from DisCo

From: Charles Keepax
Date: Wed Apr 16 2025 - 05:44:39 EST


On Wed, Apr 09, 2025 at 01:49:39PM +0100, Charles Keepax wrote:
> Use the previously parsed DisCo information from ACPI to create DAPM
> widgets and routes representing a SDCA Function. For the most part SDCA
> maps well to the DAPM abstractions.
>
> The primary point of interest is the SDCA Power Domain Entities
> (PDEs), which actually control the power status of the device. Whilst
> these PDEs are the primary widgets the other parts of the SDCA graph
> are added to maintain a consistency with the hardware abstract,
> and allow routing to take effect. As for the PDEs themselves the
> code currently only handle PS0 and PS3 (basically on and off),
> the two intermediate power states are not commonly used and don't
> map well to ASoC/DAPM.
>
> Other minor points of slightly complexity include, the Group Entities
> (GEs) these set the value of several other controls, typically
> Selector Units (SUs) for enabling a cetain jack configuration. Multiple
> SUs being controlled by a GE are easily modelled creating a single
> control and sharing it among the controlled muxes.
>

In case the new discussion on v2 is missed. I am going to do a v4
(likely early next week as I am on PTO this week), that adds the
mic/speaker widgets directly from this code and probably some pin
switches.

Thanks,
Charles