mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -589,7 +589,9 @@ static int rockchip_i2s_dai_probe(struct snd_soc_dai *dai)
|
|||||||
i2s->has_capture ? &i2s->capture_dma_data : NULL);
|
i2s->has_capture ? &i2s->capture_dma_data : NULL);
|
||||||
|
|
||||||
if (i2s->mclk_calibrate)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user