ASoC component/card relationship

Jaroslav Kysela perex at perex.cz
Wed May 4 17:38:56 CEST 2022


On 04. 05. 22 17:26, Pierre-Louis Bossart wrote:

> My take is that the topology should not make any hard-coded assumptions
> on the hardware connection to the codecs but be given the information
> before the topology is loaded.

The information is already coded in the topology filename, so it should be 
easy to extend the topology format to refer to the machine variables instead 
using the fixed numbers or strings. Eventually, it may be easy to 
conditionally use a blocks from the topology on demand, if the referred 
variables do not exist.

> sof-tgl-es8336-ssp0.tplg
> sof-tgl-es8336-ssp2.tplg
> 
> All these topologies come from the same file, and generated using
> macros. That makes no sense to me, this should be the same topology that
> is remapped at run-time.

Yes, it should be handled more elegantly.

					Jaroslav

-- 
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


More information about the Alsa-devel mailing list