Message ID | 20220913212256.151799-2-mike.rudenko@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 551B7C54EE9 for <linux-arm-kernel@archiver.kernel.org>; Tue, 13 Sep 2022 21:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4CtOyzHGk55rZh5fSTZE7TVeL94Eio07pO8atUViZtY=; b=vHsoLQJ+EqFQKG 4JxCOJn+MsOXqujL7JXLXO7+5xc4QBI5YAVSIN9h27XLTVmaYUUyyUL5A3ib7ZXweGCBFqvB9Uf2d QhvMNhkwQ26vvx1MocJi0R1+PP7NMN2PdssdFV6ify0eBnLxW3UAQZSmhYlP8R292VoZcznQ2Yr0h svVPt1reoe514VuM1QYVS1AmL3GpoLjoHwv2p7dXa8YhgQi41JS3qoAjm7hq6/a++VeHrBNKBmDFR VUcZ8YwcMRAzmbDjl5wbC17yrdD6WVEHU0+42TbXt628X+iC2bydpQTaN5zKWeemDKy6KXYVaJZcT UJeE6BZ6/wXwsSKAU/kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYDO4-00H5o8-Me; Tue, 13 Sep 2022 21:24:09 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYDN7-00H4lb-5p for linux-arm-kernel@lists.infradead.org; Tue, 13 Sep 2022 21:23:10 +0000 Received: by mail-lf1-x133.google.com with SMTP id o2so19949267lfc.10 for <linux-arm-kernel@lists.infradead.org>; Tue, 13 Sep 2022 14:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=s9fWB+KIpWEfG0ChDe1LcnxfLz16/kGFFSIfjNPpFqg=; b=PFSKJZ6gXwhxNTRmtTVhaeQp46N+lP4VFWn/lQvm2dv0lKJ+ah8FUS5waaRZoZ9RVs TJHS2AGrgxI29RRAmLT9EJZFTvbQSopCWNEjNpAUL2QijGQFQJECoAEAIAsTTC2ZskBg qIn79PNZHDQ8/Ae27hX0fyiU/UHXr9+jbNzxtHFAMCD4Ju/UQ++1zPEP9yaDLxTMEUVn r58L3YJxIdUuZVPZeU471yBBWlLnj1+li4hj1sKKKkwHWET7uWm3Mja8T5hG8M9oFAJO 1w4d5oy3+pqBl3WbCafGgg6rWWnwSHXXt7fAA1z+rGzILMywDlcP1EEDGx19P37AfpbR x/EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=s9fWB+KIpWEfG0ChDe1LcnxfLz16/kGFFSIfjNPpFqg=; b=6U6k4My752mmJGmtIzhLdYfHYpnNW69d0Jy+wqoPdvZ6VRe+cKl1stBgCfS0pPiJrk s0nCFMSdesA+QQANklkkFHpVs2WYCmlfc9wIdmdmtvvp7lqoy3G64qwY+xz4Gkkh2FZo KsjEoDfZJ6fwnDsQUoTmxbcwIfVxF7J6I4KW6J6Fo4VUBOBesE2vIUor1x6/MvyiP9nB 62ON9dqhvOkQhlpT13sWR3YgKOHPr5HKJe0ihCq3knevsLyagfPws+puTuFMmAtd+SjO hkH6nCCwPfIcEBzwuxJUVOvq36bDZP2tP6jAbarmSLoIU63d8B3iHSpDZKkTzzGtx1Aj QOMw== X-Gm-Message-State: ACgBeo0vsCjyF3GdtnLMw7p9b2ZlhQAS0aX/J1Sa2I4aAq3XJbs4czLB 0hz/ub3Uu37pYtWiM4iXcb8= X-Google-Smtp-Source: AA6agR7Omz0Ba3AN6qiv2ULvX39qzey9tyjPowF3y2cHjuujTfPT0e38hrLtPKHjw1JIch+djby9Zw== X-Received: by 2002:a05:6512:4002:b0:499:280:9c5b with SMTP id br2-20020a056512400200b0049902809c5bmr7376695lfb.593.1663104185266; Tue, 13 Sep 2022 14:23:05 -0700 (PDT) Received: from localhost (95-31-185-216.broadband.corbina.ru. [95.31.185.216]) by smtp.gmail.com with ESMTPSA id 28-20020ac25f5c000000b004998d9ccb62sm1597517lfz.99.2022.09.13.14.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 14:23:04 -0700 (PDT) From: Mikhail Rudenko <mike.rudenko@gmail.com> To: Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Charles Keepax <ckeepax@opensource.cirrus.com>, Li Chen <lchen@ambarella.com>, Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Cc: Mikhail Rudenko <mike.rudenko@gmail.com>, alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] ASoC: sunxi: sun4i-codec: set debugfs_prefix for CPU DAI component Date: Wed, 14 Sep 2022 00:22:55 +0300 Message-Id: <20220913212256.151799-2-mike.rudenko@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220913212256.151799-1-mike.rudenko@gmail.com> References: <YyCqC2EypxnoJFk7@sirena.org.uk> <20220913212256.151799-1-mike.rudenko@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220913_142309_270319_B18D1548 X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[v2,1/2] ASoC: sunxi: sun4i-codec: silence misleading error in probe
|
expand
|
diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c index 3a7075d03c23..835dc3404367 100644 --- a/sound/soc/sunxi/sun4i-codec.c +++ b/sound/soc/sunxi/sun4i-codec.c @@ -1232,6 +1232,9 @@ static const struct snd_soc_component_driver sun8i_a23_codec_codec = { static const struct snd_soc_component_driver sun4i_codec_component = { .name = "sun4i-codec", .legacy_dai_naming = 1, +#ifdef CONFIG_DEBUG_FS + .debugfs_prefix = "cpu", +#endif }; #define SUN4I_CODEC_RATES SNDRV_PCM_RATE_CONTINUOUS
At present, succesfull probing of H3 Codec results in an error debugfs: Directory '1c22c00.codec' with parent 'H3 Audio Codec' already present! This is caused by a directory name conflict between codec components. Fix it by setting debugfs_prefix for the CPU DAI component. Signed-off-by: Mikhail Rudenko <mike.rudenko@gmail.com> --- changes in v2: - rebase against current tree - add #ifdef CONFIG_DEBUG_FS guard - change prefix from "dai" to more specific "cpu" sound/soc/sunxi/sun4i-codec.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.37.3