[alsa-devel] About ALSA SoC cpu/codec asymmetry

Kuninori Morimoto kuninori.morimoto.gx at gmail.com
Mon Mar 10 08:03:54 CET 2014

Hi Lars

> There is already a cpu_name field for the DAI link struct and it is ignored 
> when it is NULL. See 
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/sound/soc/soc-core.c#n870


> I have a patch that makes using cpu_name mandatory for new component 
> drivers. And then we can slowly start to convert old platforms.

Nice !

Basically, my worry is cpu/codec "asymmetry" data structure.
(Maybe it came from "historical" reason?)

I would like to have new "struct snd_soc_cpu" and "snd_soc_register_cpu()"
instead of current "component" if possible.
It is understandable.

More information about the Alsa-devel mailing list