Skip to content

Commit 9ebe8cd

Browse files
author
Sugar Zhang
committed
ASoC: rockchip: i2s-tdm: 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 <sugar.zhang@rock-chips.com> Change-Id: I5aed3ba8e071544154f39b92c1180bbda0afe767
1 parent 50a69c5 commit 9ebe8cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sound/soc/rockchip/rockchip_i2s_tdm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,9 @@ static int rockchip_i2s_tdm_dai_probe(struct snd_soc_dai *dai)
19451945
dai->playback_dma_data = &i2s_tdm->playback_dma_data;
19461946

19471947
if (i2s_tdm->mclk_calibrate)
1948-
snd_soc_add_dai_controls(dai, &rockchip_i2s_tdm_compensation_control, 1);
1948+
snd_soc_add_component_controls(dai->component,
1949+
&rockchip_i2s_tdm_compensation_control,
1950+
1);
19491951

19501952
return 0;
19511953
}

0 commit comments

Comments
 (0)