OSDN Git Service

ASoC: mediatek: mt8173: Fix debugfs registration for components
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 11 Nov 2021 16:11:08 +0000 (17:11 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 12 Nov 2021 18:16:44 +0000 (18:16 +0000)
commit8c32984bc7da29828260ac514d5d4967f7e8f62d
tree2182241e6106e5f634488a51a40f25f9113df201
parent2cd9b0ef82d936623d789bb3fbb6fcf52c500367
ASoC: mediatek: mt8173: Fix debugfs registration for components

When registering the mt8173-afe-pcm driver, we are also adding two
components: one is for the PCM DAIs and one is for the HDMI DAIs, but
when debugfs is enabled, we're getting the following issue:

[   17.279176] debugfs: Directory '11220000.audio-controller' with parent 'mtk-rt5650' already present!
[   17.288345] debugfs: Directory '11220000.audio-controller' with parent 'mtk-rt5650' already present!

To overcome to that without any potentially big rewrite of this driver,
similarly to what was done in mt8195-afe-pcm, add a debugfs_prefix to
the components before actually adding them.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20211111161108.502344-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt8173/mt8173-afe-pcm.c