Skip to content

Commit

Permalink
FROMGIT: ASoC: meson: implement driver_name for snd_soc_card in meson…
Browse files Browse the repository at this point in the history
…-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>
  • Loading branch information
chewitt committed Nov 22, 2021
1 parent 638cf4c commit b2ed1ca
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 b2ed1ca

Please sign in to comment.