Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp622685pxv; Thu, 15 Jul 2021 11:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCPUTjL13dTJCPsGxiG6whLrJ/VXEcg2FFwgW9f9aRfUcaBHKrRRb7cVH+Qevkgi8QDyWb X-Received: by 2002:a02:c906:: with SMTP id t6mr5366482jao.117.1626374843898; Thu, 15 Jul 2021 11:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626374843; cv=none; d=google.com; s=arc-20160816; b=R+MBeG5n6aQR73cn7eB83FZfePvWp3pob/7S67ynvlYsaIH+/eB9S7wD73bCaEtHvO MRLdEjAU4p284dyxfF7Q6WzK89FfWGFuVRRMKCjk7QkDxO15lKk0Ov2GFF60XhTYn5gb UVdXHGx9M7ia7HuEDH+u/bbxcivtVkGMFzd223l8ubGQYi00vszK620alpyFJUZwf5Yp tC0J60SjYtcWFV7xWI9dxRGZiGUxI73L809Vl+tplo/H0abD9oiMjQMEAfEwwB1O2Vwd IaY5Rh/U8TjtxBfm3aEdK8gL2ifocaXbfWWyPSqsDejHUprU9mJKlXHOfbSGLJgNudGP oVOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=l8diRvVxLy/DSHGXQoytpmCFBFcb/65ey7gEN0FPG2E=; b=i8IMqgNPBW2QB8kBLxoyhgtkqBOKl7/co4iCKG5oPN16dtD77ZLF7GoxU12TbOmigq ituYtkWtIIg8/4lhZ9eYlKaTNYoIOwD7rQxAT50DEal39AI3NN1S/tVKLC2N2sK2LI6Y X90IbRS1aD2oYUb2v1ww3trfRzK/62tsvLrUugep3i9nEvKlTs0q5+KpVH8cqFz8W+Sn bwLdRRPRH9DgnwWDczKMqqmKLMbDPUGJiw/MBINGSw4hY46QDogx9t2huS+x/TKkcji4 SkrsP8/JfxM8daFVLFEjFqq2j/1ibCGqV/ZomLbkf205e+9lZZqZh+K+IYg18JVF2TcQ Ei/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RcoKvNyG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 187si7107293jau.8.2021.07.15.11.47.11; Thu, 15 Jul 2021 11:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RcoKvNyG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240092AbhGOStH (ORCPT + 99 others); Thu, 15 Jul 2021 14:49:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:48812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238538AbhGOSrP (ORCPT ); Thu, 15 Jul 2021 14:47:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 00C57613D2; Thu, 15 Jul 2021 18:44:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626374661; bh=bEhxiJfXKelDOYmrF7VDpzDeC9mwLyPm+++Zf04X9l4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RcoKvNyG/G8AYR7ucxBAiHENlL3pIvducuey2tL33FhkBB64LCpoNup2JmmxLKNzg eko+Cgq9RoG5qwq29N4QXeJBbVs1U9Z7Db7u6eOHAcDxI2IFXs40t1X+uegkp9Eegn i4eX+F+J+Bw5A1yM96/EGegVXDmmXdQggirIdEVE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Osipenko , Mark Brown Subject: [PATCH 5.4 094/122] ASoC: tegra: Set driver_name=tegra for all machine drivers Date: Thu, 15 Jul 2021 20:39:01 +0200 Message-Id: <20210715182516.697718751@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182448.393443551@linuxfoundation.org> References: <20210715182448.393443551@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Osipenko 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 Link: https://lore.kernel.org/r/20210529154649.25936-2-digetx@gmail.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- sound/soc/tegra/tegra_alc5632.c | 1 + sound/soc/tegra/tegra_max98090.c | 1 + sound/soc/tegra/tegra_rt5640.c | 1 + sound/soc/tegra/tegra_rt5677.c | 1 + sound/soc/tegra/tegra_sgtl5000.c | 1 + sound/soc/tegra/tegra_wm8753.c | 1 + sound/soc/tegra/tegra_wm8903.c | 1 + sound/soc/tegra/tegra_wm9712.c | 1 + sound/soc/tegra/trimslice.c | 1 + 9 files changed, 9 insertions(+) --- a/sound/soc/tegra/tegra_alc5632.c +++ b/sound/soc/tegra/tegra_alc5632.c @@ -139,6 +139,7 @@ static struct snd_soc_dai_link tegra_alc 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, --- a/sound/soc/tegra/tegra_max98090.c +++ b/sound/soc/tegra/tegra_max98090.c @@ -182,6 +182,7 @@ static struct snd_soc_dai_link tegra_max 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, --- a/sound/soc/tegra/tegra_rt5640.c +++ b/sound/soc/tegra/tegra_rt5640.c @@ -132,6 +132,7 @@ static struct snd_soc_dai_link tegra_rt5 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, --- a/sound/soc/tegra/tegra_rt5677.c +++ b/sound/soc/tegra/tegra_rt5677.c @@ -175,6 +175,7 @@ static struct snd_soc_dai_link tegra_rt5 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, --- a/sound/soc/tegra/tegra_sgtl5000.c +++ b/sound/soc/tegra/tegra_sgtl5000.c @@ -97,6 +97,7 @@ static struct snd_soc_dai_link tegra_sgt 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, --- a/sound/soc/tegra/tegra_wm8753.c +++ b/sound/soc/tegra/tegra_wm8753.c @@ -101,6 +101,7 @@ static struct snd_soc_dai_link tegra_wm8 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, --- a/sound/soc/tegra/tegra_wm8903.c +++ b/sound/soc/tegra/tegra_wm8903.c @@ -217,6 +217,7 @@ static struct snd_soc_dai_link tegra_wm8 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, --- a/sound/soc/tegra/tegra_wm9712.c +++ b/sound/soc/tegra/tegra_wm9712.c @@ -54,6 +54,7 @@ static struct snd_soc_dai_link tegra_wm9 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, --- a/sound/soc/tegra/trimslice.c +++ b/sound/soc/tegra/trimslice.c @@ -94,6 +94,7 @@ static struct snd_soc_dai_link trimslice 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,