Skip to content

Commit

Permalink
ASoC: meson: implement driver_name for snd_soc_card in meson-card-utils
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian Hewitt authored and Mark Brown committed Oct 18, 2021
1 parent 0f88409 commit bc38788
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/meson/meson-card-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bc38788

Please sign in to comment.