From: Mark Brown Date: Thu, 18 Jan 2018 11:56:05 +0000 (+0000) Subject: Merge remote-tracking branches 'asoc/topic/mxs', 'asoc/topic/mxs-sgtl5000', 'asoc... X-Git-Tag: v5.15~9596^2~1^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cc289b9c689fcb2ba695317319e61720dcd73ba;p=platform%2Fkernel%2Flinux-starfive.git Merge remote-tracking branches 'asoc/topic/mxs', 'asoc/topic/mxs-sgtl5000', 'asoc/topic/nau8540', 'asoc/topic/nau8824' and 'asoc/topic/nau8825' into asoc-next --- 7cc289b9c689fcb2ba695317319e61720dcd73ba diff --cc sound/soc/mxs/mxs-sgtl5000.c index 2ed3240,b593f76,5a871f2,2ed3240,2ed3240,2ed3240..2b3f240 --- a/sound/soc/mxs/mxs-sgtl5000.c +++ b/sound/soc/mxs/mxs-sgtl5000.c @@@@@@@ -141,10 -149,22 -141,11 -141,10 -141,10 -141,10 +149,23 @@@@@@@ static int mxs_sgtl5000_probe(struct pl card->dev = &pdev->dev; + ++++ if (of_find_property(np, "audio-routing", NULL)) { + ++++ card->dapm_widgets = mxs_sgtl5000_dapm_widgets; + ++++ card->num_dapm_widgets = ARRAY_SIZE(mxs_sgtl5000_dapm_widgets); + ++++ + ++++ ret = snd_soc_of_parse_audio_routing(card, "audio-routing"); + ++++ if (ret) { + ++++ dev_err(&pdev->dev, "failed to parse audio-routing (%d)\n", + ++++ ret); + ++++ return ret; + ++++ } + ++++ } + ++++ ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) { -- --- dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", -- --- ret); ++ +++ if (ret != -EPROBE_DEFER) ++ +++ dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ++ +++ ret); return ret; }