[PATCH] ASoC: soc-core: add the driver component name to the component struc

Köry Maincent kory.maincent at bootlin.com
Tue Dec 7 09:47:32 CET 2021


Hello Mark,

On Mon, 6 Dec 2021 19:33:58 +0000
Mark Brown <broonie at kernel.org> wrote:

> On Mon, Dec 06, 2021 at 10:59:20AM +0100, Kory Maincent wrote:
> 
> > If a non i2c driver register two components the function will return the
> > same "device_name" for both components. This could cause unexpected issue,
> > in my case it is a debugfs error which tries to create two directory with
> > the same component name.  
> 
> Why is one device registering multiple components in the first place?

Because the sound components are more and more complex. Why they shouldn't?

It seems to be already the case:
sound/soc/codecs/cros_ec_codec.c
sound/soc/fsl/fsl_easrc.c
sound/soc/mediatek/mt*/mt*-afe-pcm.c
sound/soc/sunxi/sun4i-codec.c
sound/soc/soc-utils.c

Regards,

Köry


More information about the Alsa-devel mailing list