]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d59b8a101db17196d558b3c43cc9389b8178c8a
tree2182241e6106e5f634488a51a40f25f9113df201
parent7d3e86890ed26fde6bb551493b3ad7c1c7327c2f
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