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
This commit is contained in:
parent
2e41a8e117
commit
a2d0c7f12f
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue