Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3771324pxv; Mon, 19 Jul 2021 08:22:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlaHvgSwuNOGy0ThkYBkzNjGqQhVoCEWUI5iKSxJAzgmmi4S0D3M7o497CdJw/ZR15RSZM X-Received: by 2002:aa7:c545:: with SMTP id s5mr34754564edr.182.1626708142616; Mon, 19 Jul 2021 08:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626708142; cv=none; d=google.com; s=arc-20160816; b=Xrdpv12ZbLL/IWK9FOTqLxVIjQIrQzLVcSZMYaGWIp1Fe4+qpK7ShaPWQdNCrvlr5B UFByQGE42tOg7QkWLmFnHMwn6PbP1FqRg8vYt7R5VL5weCsdAaiknvI44dcVPqgIOAAL RaJ3x2H9VdRt9SAu7LCtPdcHUQlm5j35X1ciCITq/AXcjwiPYa1m+5jWelpTAW/My59M 1uDiUkz9tttcFWRc9chkov/dIK/KB49NI8iTVgTk7j46k8kdpzl32do6m4ptVcSExNsA w8nkVXZmc0APRzzi1obzxYYeR+mgn8gcFcTGLneEIAU4ECug1dEsP6l6o3yDjX1fgFBt obqQ== 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=h9VNKQF/SoRVCnppssuI3aykXH/S+MjDahGBykiGLuE=; b=WW3HuXb8jzcAVDfREC76DHbif3WHDIhLbyGKr7QlcHeZXuwtIIJPR/1GF9ISfAWGGe liwUSK6/ZgM+FmCTSa/+DPoIWCVjUsOjPKOHAGqKFqeqOP83bfSW1wD8Os9NHf3BMBDe ObL5hQZlDMJDbN+ixUoXQQPiE6fXAuWtsHYF4fI7yENPrJhwH1258ELNqFvRBisguBBE SdtYTr+OG8wsw/fc5YtYIEKFXEpemBNDTcjoleaaU59jDbDxsnvIeYO6m+T+8L1YlQpK ggewSagwAexSQf5m/hjyHgpyClDhYCwAM1kn78yi2/s0msEc0hjDvaAAO7ZWYE4LmyEY 7SLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RsA0yPoR; 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 ho11si20281687ejc.106.2021.07.19.08.21.59; Mon, 19 Jul 2021 08:22:22 -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=RsA0yPoR; 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 S1344168AbhGSOkB (ORCPT + 99 others); Mon, 19 Jul 2021 10:40:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:45544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244890AbhGSOaH (ORCPT ); Mon, 19 Jul 2021 10:30:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0DAD860551; Mon, 19 Jul 2021 15:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626707446; bh=nwTaF573mhMv+FHGykxD2glN9ZKKvMHnRloQgzmAbe4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RsA0yPoRxe0o09pgsU4ut3ihqdn5bFX2olI/D2LR3TH/cggDX5ccFF3h+1ha3nsJU ByK2vN014dJDuEzSDR8y4xvSFPyt3MnEVh56K8WjsVILqtfmycqPO98wijss88Phzn keYUJVGchjyMCK1Ww5UnKKXHGWLyUB2lIyWPn0W8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Osipenko , Mark Brown Subject: [PATCH 4.9 166/245] ASoC: tegra: Set driver_name=tegra for all machine drivers Date: Mon, 19 Jul 2021 16:51:48 +0200 Message-Id: <20210719144945.775906001@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.288257948@linuxfoundation.org> References: <20210719144940.288257948@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 @@ -149,6 +149,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, .remove = tegra_alc5632_card_remove, .dai_link = &tegra_alc5632_dai, --- a/sound/soc/tegra/tegra_max98090.c +++ b/sound/soc/tegra/tegra_max98090.c @@ -205,6 +205,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, .remove = tegra_max98090_card_remove, .dai_link = &tegra_max98090_dai, --- a/sound/soc/tegra/tegra_rt5640.c +++ b/sound/soc/tegra/tegra_rt5640.c @@ -150,6 +150,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, .remove = tegra_rt5640_card_remove, .dai_link = &tegra_rt5640_dai, --- a/sound/soc/tegra/tegra_rt5677.c +++ b/sound/soc/tegra/tegra_rt5677.c @@ -198,6 +198,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, .remove = tegra_rt5677_card_remove, .dai_link = &tegra_rt5677_dai, --- a/sound/soc/tegra/tegra_sgtl5000.c +++ b/sound/soc/tegra/tegra_sgtl5000.c @@ -103,6 +103,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 @@ -110,6 +110,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 @@ -228,6 +228,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 @@ -59,6 +59,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 @@ -103,6 +103,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,