From patchwork Fri May 28 17:28:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 12287303 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D334DC2B9F7 for ; Fri, 28 May 2021 17:32:08 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC4F4613B4 for ; Fri, 28 May 2021 17:32:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC4F4613B4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 190D716DF; Fri, 28 May 2021 19:31:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 190D716DF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1622223126; bh=hLo9q4imkSnJB1p2Lz97cku/y12aBVj/f8qqfmv8lpI=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=npJHk+1fgw6/MCGKmKM+JTN/20TqTXDGCwiWaDktU5I6Bapleiz4cAt+vmgg1qvlp zWMqshA7qxad4iVigcOISOWkYX+5ju4obH+RCka/xwuxk2AyIFhQcgvYS5vtrpv2qD xdL1Vrh/EnxepS+8NBRc0pY6eQH++Zo34LJSNJ6w= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id F3C7FF804CB; Fri, 28 May 2021 19:29:57 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0A2F9F804CC; Fri, 28 May 2021 19:29:57 +0200 (CEST) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 1DEB9F804AB for ; Fri, 28 May 2021 19:29:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 1DEB9F804AB Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kKvUfGUy" Received: by mail-lf1-x12d.google.com with SMTP id b18so2299647lfv.11 for ; Fri, 28 May 2021 10:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8PTBqF9bUZ29TAyNJcHkJi9b+wJ01dNiOO2rZosrHKI=; b=kKvUfGUyQj0Y4a45HhX/bwTlRBscj+LDu+wz1Fmq0n3JPyzgqSEEURNXBi9KJcgdO/ 9b+fg7cgjIbxjBeTGwiKUZc7yyAQ0Pyffi8asb7iL865qCnQZPJdDX2j3s0RzluaPSn8 ovUTVxZzYxQaV+ZHp3rkuIEEhvfH6Lve2sNw3aP91TywP4yjYAKpiaENY8lS742/gFXG s0xpWsZH7v30/VJbNuRRJ1D/KxJGZNGVHK6a3Su1k8aW871P/XWWzy6JQYJkmiexY54t ygBfEBn00KBQSRQTQCSgNK2RS+7ORRz0ceYmnM61Q2Tq11Vj/0vP9ylXcAFB67kDJaTU K1Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8PTBqF9bUZ29TAyNJcHkJi9b+wJ01dNiOO2rZosrHKI=; b=UMZQeqCc6pCtRzwIrYha652Ef8pwUWpgFXkGoDICAe8w4bMAcXVzEHS/bung1JM2OM Zm55qu6IdZ1Vppj6dMZenRNfypHzMSTKt1E8YRAKZ8YOEu+SuuZIgjuasBMesDgmvC37 /R3YWcEcOzQcHlbe1lc9kXy+avkjtv3HyVF3G5uSSbQjJ7v9/swvBR1NXj+53pymcg+T nYd6Z2Ii8GRD8tsLp5uIQDPvgC/4hjhvd/Nvr+bB3u44rGOecSauXi3eyohlaImZj4bz EpYtTlGieZloq59MaHdFGuZg9hr//KBnIlEMQGbHscvRgLYYmU4YQf4f17hAr2/onGWT oLLg== X-Gm-Message-State: AOAM531vtzmRRlgnBY4A8iB51zZ5kaL26FJwUcXvlK732Pc9ijN3qbOR 1xezCbryrfnyC5CX+LCR/bo= X-Google-Smtp-Source: ABdhPJxAxDmXB0O4YfFV8hLXuAN1wCO7q1ZbyRUb+4zd9T2gUi96a9lMRwkqBDY6/ITi6id59rXuJA== X-Received: by 2002:ac2:5e71:: with SMTP id a17mr4392360lfr.619.1622222966034; Fri, 28 May 2021 10:29:26 -0700 (PDT) Received: from localhost.localdomain (46-138-12-55.dynamic.spd-mgts.ru. [46.138.12.55]) by smtp.gmail.com with ESMTPSA id x207sm518282lff.234.2021.05.28.10.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 May 2021 10:29:25 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Mark Brown , Takashi Iwai , Jaroslav Kysela , Ion Agorria , Svyatoslav Ryhel , Liam Girdwood Subject: [PATCH v5 3/3] ASoC: tegra: Specify components string for each card Date: Fri, 28 May 2021 20:28:33 +0300 Message-Id: <20210528172833.21622-4-digetx@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210528172833.21622-1-digetx@gmail.com> References: <20210528172833.21622-1-digetx@gmail.com> MIME-Version: 1.0 Cc: linux-tegra@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Specify components string for each card of each supported device. It's a free form string that describes audio hardware configuration. This information is useful for ALSA UCM rules. It allows to generalize UCM rules, potentially removing a need to add new UCM rule for each device. Acked-by: Jaroslav Kysela Suggested-by: Jaroslav Kysela Signed-off-by: Dmitry Osipenko --- sound/soc/tegra/tegra_asoc_machine.c | 7 +++++++ sound/soc/tegra/tegra_wm8903.c | 1 + 2 files changed, 8 insertions(+) diff --git a/sound/soc/tegra/tegra_asoc_machine.c b/sound/soc/tegra/tegra_asoc_machine.c index b1fdd33cab17..33b5bb785da5 100644 --- a/sound/soc/tegra/tegra_asoc_machine.c +++ b/sound/soc/tegra/tegra_asoc_machine.c @@ -406,6 +406,7 @@ static struct snd_soc_dai_link tegra_wm8753_dai = { }; static struct snd_soc_card snd_soc_tegra_wm8753 = { + .components = "codec:wm8753", .dai_link = &tegra_wm8753_dai, .num_links = 1, .fully_routed = true, @@ -438,6 +439,7 @@ static struct snd_soc_dai_link tegra_wm9712_dai = { }; static struct snd_soc_card snd_soc_tegra_wm9712 = { + .components = "codec:wm9712", .dai_link = &tegra_wm9712_dai, .num_links = 1, .fully_routed = true, @@ -499,6 +501,7 @@ static struct snd_soc_dai_link tegra_sgtl5000_dai = { }; static struct snd_soc_card snd_soc_tegra_sgtl5000 = { + .components = "codec:sgtl5000", .dai_link = &tegra_sgtl5000_dai, .num_links = 1, .fully_routed = true, @@ -541,6 +544,7 @@ static struct snd_soc_dai_link tegra_tlv320aic23_dai = { }; static struct snd_soc_card snd_soc_tegra_trimslice = { + .components = "codec:tlv320aic23", .dai_link = &tegra_tlv320aic23_dai, .num_links = 1, .dapm_widgets = trimslice_dapm_widgets, @@ -588,6 +592,7 @@ static struct snd_soc_dai_link tegra_rt5677_dai = { }; static struct snd_soc_card snd_soc_tegra_rt5677 = { + .components = "codec:rt5677", .dai_link = &tegra_rt5677_dai, .num_links = 1, .fully_routed = true, @@ -621,6 +626,7 @@ static struct snd_soc_dai_link tegra_rt5640_dai = { }; static struct snd_soc_card snd_soc_tegra_rt5640 = { + .components = "codec:rt5640", .dai_link = &tegra_rt5640_dai, .num_links = 1, .fully_routed = true, @@ -653,6 +659,7 @@ static struct snd_soc_dai_link tegra_rt5632_dai = { }; static struct snd_soc_card snd_soc_tegra_rt5632 = { + .components = "codec:rt5632", .dai_link = &tegra_rt5632_dai, .num_links = 1, .fully_routed = true, diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c index 74101d2c7785..5751fb398c1a 100644 --- a/sound/soc/tegra/tegra_wm8903.c +++ b/sound/soc/tegra/tegra_wm8903.c @@ -129,6 +129,7 @@ static struct snd_soc_dai_link tegra_wm8903_dai = { }; static struct snd_soc_card snd_soc_tegra_wm8903 = { + .components = "codec:wm8903", .owner = THIS_MODULE, .dai_link = &tegra_wm8903_dai, .num_links = 1,