[alsa-devel] Question about card names

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Wed May 29 08:12:52 CEST 2019


Hi

> > snd_soc_instantiate_card() setups card->snd_card's
> > "shortname", "longname", "driver" names. (= 1,2,3).
> > 
> > But, it cares only card->snd_card->driver (= 4).
> > I think we need to care about all naming, but why only driver ??
> 
> Do you mean the normalization of strings, or do you suggest to make
> mandatory?  The normalization isn't needed for other name strings.
> The driver name is somewhat special, as it's used as a key for
> searches in the user-space.

Ahh, OK, I see.
Thank you for clearing it.
I want to have this explain at there (= I will post it, soon)

> > And, it seems in this loop, it breaks check if it finds "_" or "-" (= x).
> > If my understanding was correct,
> > the naming "abcd??efg" will be fixed to "abcd__efg",
> > but, it do nothing if name was for example "-abcd??efg".
> 
> We do replace the two '?' in the latter case, too.  It's a break
> statement in a switch block, i.e. just skip the case.

Thanks.
My head is very spaghetting now...

Thank you for your help !!
Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list