From patchwork Thu Mar 16 12:36:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13177526 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id D6BA2C6FD1F for ; Thu, 16 Mar 2023 12:37:38 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A453E111E; Thu, 16 Mar 2023 13:36:46 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A453E111E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1678970256; bh=LEMmm+P/YsBKRZwyeHpOAEERU5kliRkrHncf65a34AI=; h=From:To:Subject:Date:CC:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=F55AvFcJX7EbqJJ3NcbNpbGVMSoJk6vXEaERuyzjIeWbgJtBkgVs3REF01CBikrJm teP+ExgLKRuoYcL1SgWE2+gWyTGk5l2xx3C3jQD1D5bOVC1L1SmSprxBT7ydN7TMTO ypwBPzg+1sImPilyXMTsuJCiYIcb7vHHRvFxNONU= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id BB43DF80423; Thu, 16 Mar 2023 13:36:24 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 672A7F80425; Thu, 16 Mar 2023 13:36:20 +0100 (CET) Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6FCA6F800C9 for ; Thu, 16 Mar 2023 13:36:17 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6FCA6F800C9 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=tq-group.com header.i=@tq-group.com header.a=rsa-sha256 header.s=key1 header.b=n+ABVS1N; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.a=rsa-sha256 header.s=key1 header.b=KFvm+kL7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678970178; x=1710506178; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=srkpdC+yB+EdyLTj0WhGzLGs6EFRQ5wKwgJvE5nC0hQ=; b=n+ABVS1NYLql5DOHIEtGyNPCOZienMt3MFbJG16NY+88G+RlXHP7hXTC D7ULoLGNjZpM5lhMQWJwd5LUeDbgspwH8q/EsKaQ8ZVYnDj2EOX8y9pAw b03UHRfHs44IkTwrwNUwWMBLilyF1SlTVceoT0hMZAuwNLyVaGCq+Ve0i FzKq1P5WfOLE1zX8YyoML2lTOOaP7kmu+bYzi+Tv9HtPgvQi+P/2LFOCK Eeimuj1/zfN5roIJOiUynyDwYafuURb7t2w8NzyCHew3MNiJ0cMaS6vL+ fcBsTlL57VLbM6VDTDx9PJbI5JnofHDeE4wpn5jUYbumZJ7/wodph5PKh Q==; X-IronPort-AV: E=Sophos;i="5.98,265,1673910000"; d="scan'208";a="29738028" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 16 Mar 2023 13:36:16 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 16 Mar 2023 13:36:16 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 16 Mar 2023 13:36:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678970176; x=1710506176; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=srkpdC+yB+EdyLTj0WhGzLGs6EFRQ5wKwgJvE5nC0hQ=; b=KFvm+kL7CHuuM5/eAedvnG/nJcC2LiZLSDpCSK88WRZsbyOx7zzCGCW5 BAQ4la6/E2QWkMSkXLgttnUCGcEL489cIHHw4Rm7a2ZOWumY+HVC5xlM5 MRBWc1QyHNCJioC0e8O675RiD5IKWZD0B3PxLo3sKzab2gnZtzvoouRz/ cnUa2y7sR1LcMBeokficFCpBoDqRN48YRXPJcPAPZtxewbSeRR0IevjFh YPnwFZMwaVvzXjqPPOTuriMF8Qb7STRzd/KAlJ8MvkYvLb0uxnumhU7DM ap2Iuwnv3UbBfNA5sPCrnFa+frhtfRGx5O7hMKMrBaAZ4FGfEonNbB0ly g==; X-IronPort-AV: E=Sophos;i="5.98,265,1673910000"; d="scan'208";a="29738026" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 16 Mar 2023 13:36:16 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 50D81280056; Thu, 16 Mar 2023 13:36:16 +0100 (CET) From: Alexander Stein To: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 1/2] ASoC: fsl: define a common DRIVER_NAME Date: Thu, 16 Mar 2023 13:36:10 +0100 Message-Id: <20230316123611.3495597-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Message-ID-Hash: UY5CQ7L3N3ZILGXEHN4QXRZALJ4HOSAM X-Message-ID-Hash: UY5CQ7L3N3ZILGXEHN4QXRZALJ4HOSAM X-MailFrom: alexander.stein@ew.tq-group.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Alexander Stein , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Instead of copying the driver name manually, use a common define. No functional change. Signed-off-by: Alexander Stein Acked-by: Shengjiu Wang --- sound/soc/fsl/fsl-asoc-card.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index cdfca9fd1eb0..e956abfd50f8 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -28,6 +28,8 @@ #include "../codecs/wm8994.h" #include "../codecs/tlv320aic31xx.h" +#define DRIVER_NAME "fsl-asoc-card" + #define CS427x_SYSCLK_MCLK 0 #define RX 0 @@ -915,7 +917,7 @@ MODULE_DEVICE_TABLE(of, fsl_asoc_card_dt_ids); static struct platform_driver fsl_asoc_card_driver = { .probe = fsl_asoc_card_probe, .driver = { - .name = "fsl-asoc-card", + .name = DRIVER_NAME, .pm = &snd_soc_pm_ops, .of_match_table = fsl_asoc_card_dt_ids, }, @@ -924,5 +926,5 @@ module_platform_driver(fsl_asoc_card_driver); MODULE_DESCRIPTION("Freescale Generic ASoC Sound Card driver with ASRC"); MODULE_AUTHOR("Nicolin Chen "); -MODULE_ALIAS("platform:fsl-asoc-card"); +MODULE_ALIAS("platform:" DRIVER_NAME); MODULE_LICENSE("GPL"); From patchwork Thu Mar 16 12:36:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13177527 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E273EC74A5B for ; Thu, 16 Mar 2023 12:38:07 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id EBF7C1127; Thu, 16 Mar 2023 13:37:15 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz EBF7C1127 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1678970286; bh=pWuq6wgxZYUjIYXxzu8zNKkNSZD39hHos45N1n84uTw=; h=From:To:Subject:Date:In-Reply-To:References:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ruGRLq2ISqE1iOtUd58UnZzWvWHwlc1WmqTJSGxqUaK2o1UUINsuoLfkiWAM6dIQ2 8Z2GmBbdAQykh4Snubpr93oBGAJGJi75P3+Iu1JV8un9r9O9CA0hpJj2ntKnoQ+Gny kDETlrerDxQNEiUEgKswkm08eY9Ie7soU1gBjQE0= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 90D7BF804FE; Thu, 16 Mar 2023 13:36:26 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DB49CF80423; Thu, 16 Mar 2023 13:36:21 +0100 (CET) Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D4401F8016C for ; Thu, 16 Mar 2023 13:36:18 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz D4401F8016C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=tq-group.com header.i=@tq-group.com header.a=rsa-sha256 header.s=key1 header.b=Bl7rDum6; dkim=pass (2048-bit key) header.d=tq-group.com header.i=@tq-group.com header.a=rsa-sha256 header.s=key1 header.b=ZTtwAnQd DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678970180; x=1710506180; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=optA/elZmJXfhAeNRT+3b55PWRJaR5Rj/yChsqibYps=; b=Bl7rDum6mD+bNrEGQPgNKCM708U9HyNFn06aG+4ia64sKtk/eyQGq6gd uUrsy1bgTxtnlV+dwu1lvxg8/odkLxrlxOirk4OgXXyV8/KJPqIHIciNI m6liBCPx9FvQct4GlCwByCUx3wRjhJ6zShd6Xp+t8vVDjw/AHhlqZDmK6 VMw4CFhxrfPNR9DkHpCWyEwcnuGZd4A8GcY72BwhuLC5g74/tb0bdSeVm T4B1jyd8TBusYaydufCfxOXxJNuCcXVkMbO1RcR2ebckyYBl1P4kgrruK fif+PkXcvAGcfqxt1oIgWdxVX7d4Jzq4eae2BdXB2FtaQINvh04sIjNWU A==; X-IronPort-AV: E=Sophos;i="5.98,265,1673910000"; d="scan'208";a="29738031" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 16 Mar 2023 13:36:16 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 16 Mar 2023 13:36:16 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 16 Mar 2023 13:36:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1678970176; x=1710506176; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=optA/elZmJXfhAeNRT+3b55PWRJaR5Rj/yChsqibYps=; b=ZTtwAnQd86/PaC7gY3AzVeB6Crjf44BQGc5Jn2mRK2fe9bfxhIvVOIXg rEZdcWwOTamlOzNxNODK7tGCRQEYFoKn93Wa75Kz0cxsyHtV2OvHVNiRc x5bHMW5XZcc3csRFXPCC2UBPR9NoCSZv38v1GGOdYXoTilA92t5pNNQO+ fRiCowL0/TI6xWv5fiKDL52VJETJlK4X/zjMp0aMQkEERlga4uIZ/hdFQ gPCQBXsR6KuYIFtjO/5splFV6zs/xW00iBzy+NK0NeaA/EnGW2ffBF2I0 xpE3XTE/QyHqg8wzpl+OYJ8khguKEIGtCN8ckz22ZF0cZMnnG96LEwdq2 w==; X-IronPort-AV: E=Sophos;i="5.98,265,1673910000"; d="scan'208";a="29738029" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 16 Mar 2023 13:36:16 +0100 Received: from steina-w.tq-net.de (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 845EB280072; Thu, 16 Mar 2023 13:36:16 +0100 (CET) From: Alexander Stein To: Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Subject: [PATCH 2/2] ASoC: fsl: Specify driver name in ASoC card Date: Thu, 16 Mar 2023 13:36:11 +0100 Message-Id: <20230316123611.3495597-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316123611.3495597-1-alexander.stein@ew.tq-group.com> References: <20230316123611.3495597-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 Message-ID-Hash: NH3HTTXLHC4DQAWOFSW737YSVRSINW6K X-Message-ID-Hash: NH3HTTXLHC4DQAWOFSW737YSVRSINW6K X-MailFrom: alexander.stein@ew.tq-group.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Alexander Stein , alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Set the snd_soc_card driver name which fixes the warning: fsl-asoc-card sound: ASoC: driver name too long 'imx-audio-tlv320aic32x4' -> 'imx-audio-tlv32' Signed-off-by: Alexander Stein Acked-by: Shengjiu Wang --- These patches could be squashed, but I opted for separation this patch is the actual functional change. Patch 1 is just preparation. sound/soc/fsl/fsl-asoc-card.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index e956abfd50f8..bffa1048d31e 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -609,6 +609,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) priv->card.dapm_routes = audio_map; priv->card.num_dapm_routes = ARRAY_SIZE(audio_map); + priv->card.driver_name = DRIVER_NAME; /* Diversify the card configurations */ if (of_device_is_compatible(np, "fsl,imx-audio-cs42888")) { codec_dai_name = "cs42888";