From a2d0c7f12f46c81b82f2453a39ea65013d553275 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Thu, 21 Sep 2023 19:32:01 +0800 Subject: [PATCH] ASoC: rockchip: i2s: Use add_component_controls This patch use add_component_controls instead of dai's one to support multiple instance with name_prefix. Signed-off-by: Sugar Zhang Change-Id: Ideb9af565f8b44dffaa32f88fed412c5781bcaed --- sound/soc/rockchip/rockchip_i2s.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/rockchip/rockchip_i2s.c b/sound/soc/rockchip/rockchip_i2s.c index 6a02002d020f..9b91f5bc265d 100644 --- a/sound/soc/rockchip/rockchip_i2s.c +++ b/sound/soc/rockchip/rockchip_i2s.c @@ -589,7 +589,9 @@ static int rockchip_i2s_dai_probe(struct snd_soc_dai *dai) i2s->has_capture ? &i2s->capture_dma_data : NULL); if (i2s->mclk_calibrate) - snd_soc_add_dai_controls(dai, &rockchip_i2s_compensation_control, 1); + snd_soc_add_component_controls(dai->component, + &rockchip_i2s_compensation_control, + 1); return 0; }