diff options
author | Christian Hewitt <christianshewitt@gmail.com> | 2021-10-17 16:00:28 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-10-18 13:56:43 +0100 |
commit | bc387887ae22d6ed6439e83968b5be3443a8e57d (patch) | |
tree | 60b230bfe61338082efb87245d194345d04fcb22 | |
parent | 0f884099a57516c0f1b66aa29e03b9265b242fff (diff) |
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 <hias@horus.com>
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20211017160028.23318-1-christianshewitt@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/meson/meson-card-utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c index 415cc0046e4b..29b0174f4b5c 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"); |