Re: [PATCH v2 0/7] ASoC: Intel: avs: Soundwire support

From: Pierre-Louis Bossart

Date: Tue Nov 03 2026 - 12:24:07 EST



> Also, the existing code fetches the PDIs based on pre-defined "dai_id".
> That's not the case for the avs-driver. It simply asks: "is any PDI
> free?" and assigns it for the substream if one is found.
> No predefining. Again, this aligns with how HDAudio streaming is done.
Yeah but at the end of the day there's a 1:1 mapping between cpu_dai and
PDI, no?

All PDIs are created equal, a dynamic mapping doesn't make things more
efficient. It just makes things more complex to debug since you don't
have a fixed mapping between dailinks/stream/cpu_dai/PDI.

Put differently, couldn't the AVS driver work around that fixed mapping
to avoid changes to legacy platforms that have shipped many moons ago?