]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: tegra: Set driver_name=tegra for all machine drivers
authorDmitry Osipenko <digetx@gmail.com>
Sat, 29 May 2021 15:46:46 +0000 (18:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:21:09 +0000 (16:21 +0200)
commit f6eb84fa596abf28959fc7e0b626f925eb1196c7 upstream.

The driver_name="tegra" is now required by the newer ALSA UCMs, otherwise
Tegra UCMs don't match by the path/name.

All Tegra machine drivers are specifying the card's name, but it has no
effect if model name is specified in the device-tree since it overrides
the card's name. We need to set the driver_name to "tegra" in order to
get a usable lookup path for the updated ALSA UCMs. The new UCM lookup
path has a form of driver_name/card_name.

The old lookup paths that are based on driver module name continue to
work as before. Note that UCM matching never worked for Tegra ASoC drivers
if they were compiled as built-in, this is fixed by supporting the new
naming scheme.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210529154649.25936-2-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/tegra/tegra_alc5632.c
sound/soc/tegra/tegra_max98090.c
sound/soc/tegra/tegra_rt5640.c
sound/soc/tegra/tegra_rt5677.c
sound/soc/tegra/tegra_sgtl5000.c
sound/soc/tegra/tegra_wm8753.c
sound/soc/tegra/tegra_wm8903.c
sound/soc/tegra/tegra_wm9712.c
sound/soc/tegra/trimslice.c

index deb597f7c302b19a1a241784cb1b8f209a968c38..f40657da4db2ba458021cab67890d2b267786e69 100644 (file)
@@ -149,6 +149,7 @@ static struct snd_soc_dai_link tegra_alc5632_dai = {
 
 static struct snd_soc_card snd_soc_tegra_alc5632 = {
        .name = "tegra-alc5632",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .remove = tegra_alc5632_card_remove,
        .dai_link = &tegra_alc5632_dai,
index 902da36581d1ba8af25494b8e69a2fec4415b1eb..f4f238924c76470648c685718b7fb640d6fd6b60 100644 (file)
@@ -205,6 +205,7 @@ static struct snd_soc_dai_link tegra_max98090_dai = {
 
 static struct snd_soc_card snd_soc_tegra_max98090 = {
        .name = "tegra-max98090",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .remove = tegra_max98090_card_remove,
        .dai_link = &tegra_max98090_dai,
index e5ef4e9c4ac59cdc81bde106f472818e1ba44039..3088c6f401e38eda5fb1b3b1ef7eb39d339697b3 100644 (file)
@@ -150,6 +150,7 @@ static struct snd_soc_dai_link tegra_rt5640_dai = {
 
 static struct snd_soc_card snd_soc_tegra_rt5640 = {
        .name = "tegra-rt5640",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .remove = tegra_rt5640_card_remove,
        .dai_link = &tegra_rt5640_dai,
index 1470873ecde68019eefdf44446bb061460c61d37..451e7254e87b6ab828e0ea478b89308e9d1dd8bb 100644 (file)
@@ -198,6 +198,7 @@ static struct snd_soc_dai_link tegra_rt5677_dai = {
 
 static struct snd_soc_card snd_soc_tegra_rt5677 = {
        .name = "tegra-rt5677",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .remove = tegra_rt5677_card_remove,
        .dai_link = &tegra_rt5677_dai,
index 863e04809a6b8b3af51735a3e71453a4d3129861..8755a9528d925e5c8187acdde80fe66b2bd0aaea 100644 (file)
@@ -103,6 +103,7 @@ static struct snd_soc_dai_link tegra_sgtl5000_dai = {
 
 static struct snd_soc_card snd_soc_tegra_sgtl5000 = {
        .name = "tegra-sgtl5000",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .dai_link = &tegra_sgtl5000_dai,
        .num_links = 1,
index f0cd01dbfc3805e8b4f8510e75c0214c432454c0..633d26c4811b808e3026b8f22728d2d153d3d748 100644 (file)
@@ -110,6 +110,7 @@ static struct snd_soc_dai_link tegra_wm8753_dai = {
 
 static struct snd_soc_card snd_soc_tegra_wm8753 = {
        .name = "tegra-wm8753",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .dai_link = &tegra_wm8753_dai,
        .num_links = 1,
index e485278e027a251189a16f77c3f24a2428bb2b7a..20a3ca03ac30d4ceef6aac69b1c978f2a090eefd 100644 (file)
@@ -228,6 +228,7 @@ static struct snd_soc_dai_link tegra_wm8903_dai = {
 
 static struct snd_soc_card snd_soc_tegra_wm8903 = {
        .name = "tegra-wm8903",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .dai_link = &tegra_wm8903_dai,
        .num_links = 1,
index 6492f8143ff1f172d3bcd5007b3ea1049cdc9e2f..e5bebb473d95e19e18925f21122888f823d233a0 100644 (file)
@@ -59,6 +59,7 @@ static struct snd_soc_dai_link tegra_wm9712_dai = {
 
 static struct snd_soc_card snd_soc_tegra_wm9712 = {
        .name = "tegra-wm9712",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .dai_link = &tegra_wm9712_dai,
        .num_links = 1,
index 2cea203c4f5f1529010659770f314d33ce552d23..90a770968f3484d2609906da52c3d74a7377d390 100644 (file)
@@ -103,6 +103,7 @@ static struct snd_soc_dai_link trimslice_tlv320aic23_dai = {
 
 static struct snd_soc_card snd_soc_trimslice = {
        .name = "tegra-trimslice",
+       .driver_name = "tegra",
        .owner = THIS_MODULE,
        .dai_link = &trimslice_tlv320aic23_dai,
        .num_links = 1,