[PATCH 0/4] ASoC:: don't use snd_soc_rtdcom_lookup()

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Thu Apr 23 01:56:08 CEST 2020


Hi Ranjani

> I am having a hard time visualizing a scenario where we would have more
> than one platform component. And even if we did, I'd think that the
> driver registering these components would make sure to not duplicate
> the driver names. Of course, we dont really check if thats really the
> case. 
> Do you think it makes sense to add that check when registering a
> component? If we do that, then keeping snd_soc_rtdcom_lookup() might
> not be such a bad idea. 

If noone uses lookup function, having same name component itself
is not a problem.

If component driver handles different component naming, and user-driver
can knows it somehow, using lookup function is not a problem either.
But, I think "how to specific the component name" from user-driver
is difficult.
Thus, this patch-set try to avoid it by adding small feature
even though under such situation.

So, keeping lookup function itself is possible.

Thank you for your help !!

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list