[PATCH 2/2] ASoC: simple-card-utils: Increase maximum number of links to 128

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Apr 20 00:15:31 CEST 2021


Hi Thierry, Mark

> > The data structure seems to be only used during initialization, so
> > something like a kzalloc()/kfree() pair doesn't seem like it would
> > hurt much performance-wise. Add in the devm_ variants and the code
> > complexity should also remain moderately low.
> 
> Yes, that'd be much better - ideally we wouldn't have a fixed limit of
> any kind but that's a more involved change and quite possibly more
> trouble than it's worth.

Using "fixed array style" was very easy for me (*^o^*).

OK, let's use kzalloc()/kfree() style.
I can try it.

Thank you for your help !!

Best regards
---
Kuninori Morimoto


More information about the Alsa-devel mailing list