[PATCH 2/2] ASoC: meson: meson-card: use priv instead of card on each functions

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Wed Jul 22 21:04:51 PDT 2026


Hi Jerome

Thank you for your feedback

> I think getting the device from the card (or other ASoC element) is a
> regular pattern. I get what you are trying to do with what you call
> capsuling but maybe you should add an API to query those things from
> the framework ? like Something snd_soc_card_get_dev(card) ?
>
> The driver then does not have poke the internals of the card but can
> still get stuff like that from it

Yes, it will have snd_soc_card_to_dev();
And I agree that getting dev from card itself is not a problem.

OK, I now updated the patch not to update whole and big changes.
It will has some waste code in total, but is possible to minimize the diff.

I hope the v2 can be less diff (= easy to backport), and acceptable for you.

Thank you for your help !!

Best regards
---
Kuninori Morimoto



More information about the linux-arm-kernel mailing list