提交 28739dfc 编写于 作者: P Peter Ujfalusi 提交者: Mark Brown

ASoC: omap-mcbsp: Check mcbsp->id instead of cpu_dai->id when adding ST controls

In ddevice tree booted kernel all device have unique name and their device
id is set to 0.
Use the mcbsp->id for checking to decide which control set we should add
for McBSP sidetone handling.
Signed-off-by: NPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: NJarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 eda21d37
...@@ -722,7 +722,7 @@ int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd) ...@@ -722,7 +722,7 @@ int omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd)
if (!mcbsp->st_data) if (!mcbsp->st_data)
return -ENODEV; return -ENODEV;
switch (cpu_dai->id) { switch (mcbsp->id) {
case 2: /* McBSP 2 */ case 2: /* McBSP 2 */
return snd_soc_add_dai_controls(cpu_dai, return snd_soc_add_dai_controls(cpu_dai,
omap_mcbsp2_st_controls, omap_mcbsp2_st_controls,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册