From: Christian Hewitt Date: Sun, 17 Oct 2021 16:00:28 +0000 (+0000) Subject: ASoC: meson: implement driver_name for snd_soc_card in meson-card-utils X-Git-Tag: v6.1-rc5~2159^2~59^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc387887ae22d6ed6439e83968b5be3443a8e57d;p=platform%2Fkernel%2Flinux-starfive.git ASoC: meson: implement driver_name for snd_soc_card in meson-card-utils Implement driver_name to provide an alternative to card_name for userspace configuration of Amlogic audio cards. Suggested-by: Matthias Reichl Signed-off-by: Christian Hewitt Acked-by: Jerome Brunet Link: https://lore.kernel.org/r/20211017160028.23318-1-christianshewitt@gmail.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c index 415cc00..29b0174 100644 --- a/sound/soc/meson/meson-card-utils.c +++ b/sound/soc/meson/meson-card-utils.c @@ -302,6 +302,7 @@ int meson_card_probe(struct platform_device *pdev) priv->card.owner = THIS_MODULE; priv->card.dev = dev; + priv->card.driver_name = dev->driver->name; priv->match_data = data; ret = snd_soc_of_parse_card_name(&priv->card, "model");