]> git.ipfire.org Git - people/arne_f/kernel.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>
Mon, 19 Jul 2021 06:53:16 +0000 (08:53 +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 9e8b1497efd3e543e8e495f4d8a8aae391897bc6..a281ceb3c67e7936237b6e563b42265b6e91ae88 100644 (file)
@@ -139,6 +139,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,
        .dai_link = &tegra_alc5632_dai,
        .num_links = 1,
index 4954a33ff46bcb24f8cf357871f1ef4cdbac55cc..30edd70e81834c51cccac4b358883e3814206a72 100644 (file)
@@ -182,6 +182,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,
        .dai_link = &tegra_max98090_dai,
        .num_links = 1,
index d46915a3ec4cbae90cf0c12322ee2dc8b7fd16b2..3d68a41040ed4153a5aa0d99503da3c0d6294376 100644 (file)
@@ -132,6 +132,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,
        .dai_link = &tegra_rt5640_dai,
        .num_links = 1,
index 81cb6cc6236e4410e0a75679a8ecece79f251054..ae150ade94410e89e1391d8bc1af3b8b539a964c 100644 (file)
@@ -175,6 +175,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,
        .dai_link = &tegra_rt5677_dai,
        .num_links = 1,
index e13b81d29cf3594598dbc9d63fc80535f1f1fb09..fe21d9eff8c05fb6e04cf285f58cef61518958ba 100644 (file)
@@ -97,6 +97,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 f6dd790dad71cc7f677675c242a1428474af78c9..a2362a2189dceecf1efd3d8b0756b83a77b1d26c 100644 (file)
@@ -101,6 +101,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 0fa01cacfec9a86d9c93662d6c51afef6e9bf2b9..08bcc94dcff89bdc2eedc9aeb2052fd5d215b26e 100644 (file)
@@ -217,6 +217,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 b85bd9f8907371d7c10498318c9eff25847f564f..232eac58373aa83d917b7001b0a1c1ae6a42c336 100644 (file)
@@ -54,6 +54,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 3f67ddd13674e5033a7a486a4171eca7bfe51eee..5086bc2446d23ef63ae74829f31c49f27602f0bd 100644 (file)
@@ -94,6 +94,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,