From 6c4dd79500489a0888c7295143de1547fa4571e2 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Tue, 31 Jan 2023 10:02:02 +0800 Subject: [PATCH] ASoC: rockchip: vad: Use snd_soc_find_dai_with_mutex Ref: commit 20d9fdee72df ("ASoC: soc-core: add snd_soc_find_dai_with_mutex()") This patch fix potential WARNING when config enable CONFIG_LOCKDEP Signed-off-by: Sugar Zhang Change-Id: I5f830cfcd68a7c819f6613786b78bc6d1519fc9e --- sound/soc/rockchip/rockchip_vad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_vad.c b/sound/soc/rockchip/rockchip_vad.c index e37312f80702..7ed19d43e3b5 100644 --- a/sound/soc/rockchip/rockchip_vad.c +++ b/sound/soc/rockchip/rockchip_vad.c @@ -729,7 +729,7 @@ static struct snd_soc_dai *rockchip_vad_find_dai(struct device_node *np) dai_component.of_node = np; - return snd_soc_find_dai(&dai_component); + return snd_soc_find_dai_with_mutex(&dai_component); } static void hw_refine_channels(struct snd_pcm_hw_params *params,