aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index a66783e13a9c..fe1df50805a3 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1728,6 +1728,7 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card)
1728 } 1728 }
1729 1729
1730 snd_soc_dapm_link_dai_widgets(card); 1730 snd_soc_dapm_link_dai_widgets(card);
1731 snd_soc_dapm_connect_dai_link_widgets(card);
1731 1732
1732 if (card->controls) 1733 if (card->controls)
1733 snd_soc_add_card_controls(card, card->controls, card->num_controls); 1734 snd_soc_add_card_controls(card, card->controls, card->num_controls);
@@ -3484,7 +3485,7 @@ int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
3484 return dai->codec->driver->set_sysclk(dai->codec, clk_id, 0, 3485 return dai->codec->driver->set_sysclk(dai->codec, clk_id, 0,
3485 freq, dir); 3486 freq, dir);
3486 else 3487 else
3487 return -EINVAL; 3488 return -ENOTSUPP;
3488} 3489}
3489EXPORT_SYMBOL_GPL(snd_soc_dai_set_sysclk); 3490EXPORT_SYMBOL_GPL(snd_soc_dai_set_sysclk);
3490 3491
@@ -3505,7 +3506,7 @@ int snd_soc_codec_set_sysclk(struct snd_soc_codec *codec, int clk_id,
3505 return codec->driver->set_sysclk(codec, clk_id, source, 3506 return codec->driver->set_sysclk(codec, clk_id, source,
3506 freq, dir); 3507 freq, dir);
3507 else 3508 else
3508 return -EINVAL; 3509 return -ENOTSUPP;
3509} 3510}
3510EXPORT_SYMBOL_GPL(snd_soc_codec_set_sysclk); 3511EXPORT_SYMBOL_GPL(snd_soc_codec_set_sysclk);
3511 3512
@@ -4617,10 +4618,14 @@ int snd_soc_of_get_dai_name(struct device_node *of_node,
4617 4618
4618 if (id < 0 || id >= pos->num_dai) { 4619 if (id < 0 || id >= pos->num_dai) {
4619 ret = -EINVAL; 4620 ret = -EINVAL;
4620 } else { 4621 break;
4621 *dai_name = pos->dai_drv[id].name;
4622 ret = 0;
4623 } 4622 }
4623
4624 ret = 0;
4625
4626 *dai_name = pos->dai_drv[id].name;
4627 if (!*dai_name)
4628 *dai_name = pos->name;
4624 } 4629 }
4625 4630
4626 break; 4631 break;