mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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
This commit is contained in:
@@ -1959,7 +1959,9 @@ static int rockchip_i2s_tdm_dai_probe(struct snd_soc_dai *dai)
|
|||||||
dai->playback_dma_data = &i2s_tdm->playback_dma_data;
|
dai->playback_dma_data = &i2s_tdm->playback_dma_data;
|
||||||
|
|
||||||
if (i2s_tdm->mclk_calibrate)
|
if (i2s_tdm->mclk_calibrate)
|
||||||
snd_soc_add_dai_controls(dai, &rockchip_i2s_tdm_compensation_control, 1);
|
snd_soc_add_component_controls(dai->component,
|
||||||
|
&rockchip_i2s_tdm_compensation_control,
|
||||||
|
1);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user