Re: [PATCH v2 6/6] ASoC: SDCA: class_function: mark PDM data-port terminals

From: Charles Keepax

Date: Tue Oct 20 2026 - 06:23:48 EST


On Tue, Oct 20, 2026 at 08:38:56AM +0100, Srinivas Kandagatla wrote:
> snd_sdw_params_to_config() leaves sconfig.type at SDW_STREAM_PCM,
> which is wrong when the DAI is routed to a PDM data-port terminal.
>
> Set sconfig.type to SDW_STREAM_PDM for PDM terminals so the SoundWire
> core sees the right type and does not enforce bps match against the
> PCM-container-width value stamped by the helper.
>
> Assisted-by: LLM
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>

Thanks,
Charles