Skip to content

Commit 0fdec09

Browse files
author
Sugar Zhang
committed
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 <sugar.zhang@rock-chips.com> Change-Id: Ideb9af565f8b44dffaa32f88fed412c5781bcaed
1 parent 9d2fd8d commit 0fdec09

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sound/soc/rockchip/rockchip_i2s.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,9 @@ static int rockchip_i2s_dai_probe(struct snd_soc_dai *dai)
600600
dai->playback_dma_data = &i2s->playback_dma_data;
601601

602602
if (i2s->mclk_calibrate)
603-
snd_soc_add_dai_controls(dai, &rockchip_i2s_compensation_control, 1);
603+
snd_soc_add_component_controls(dai->component,
604+
&rockchip_i2s_compensation_control,
605+
1);
604606

605607
return 0;
606608
}

0 commit comments

Comments
 (0)