···11181118 unsigned int instantiated:1;11191119 unsigned int topology_shortname_created:1;11201120 unsigned int fully_routed:1;11211121- unsigned int disable_route_checks:1;11221121 unsigned int probed:1;11231122 unsigned int component_chaining:1;11241123
-2
sound/soc/intel/boards/skl_hda_dsp_generic.c
···124124 return ret;125125126126 card->dev = &pdev->dev;127127- if (!snd_soc_acpi_sof_parent(&pdev->dev))128128- card->disable_route_checks = true;129127130128 if (mach->mach_params.dmic_num > 0) {131129 card->components = devm_kasprintf(card->dev, GFP_KERNEL,
+4-25
sound/soc/soc-core.c
···16441644 ret = snd_soc_dapm_add_routes(dapm,16451645 component->driver->dapm_routes,16461646 component->driver->num_dapm_routes);16471647- if (ret < 0) {16481648- if (card->disable_route_checks) {16491649- ret = 0;16501650- dev_info(card->dev,16511651- "%s: disable_route_checks set, ignoring errors on add_routes\n",16521652- __func__);16531653- } else {16541654- dev_err(card->dev,16551655- "%s: snd_soc_dapm_add_routes failed: %d\n",16561656- __func__, ret);16571657- goto err_probe;16581658- }16591659- }16471647+ if (ret < 0)16481648+ goto err_probe;1660164916611650 /* see for_each_card_components */16621651 list_add(&component->card_list, &card->component_dev_list);···2224223522252236 ret = snd_soc_dapm_add_routes(&card->dapm, card->dapm_routes,22262237 card->num_dapm_routes);22272227- if (ret < 0) {22282228- if (card->disable_route_checks) {22292229- dev_info(card->dev,22302230- "%s: disable_route_checks set, ignoring errors on add_routes\n",22312231- __func__);22322232- } else {22332233- dev_err(card->dev,22342234- "%s: snd_soc_dapm_add_routes failed: %d\n",22352235- __func__, ret);22362236- goto probe_end;22372237- }22382238- }22382238+ if (ret < 0)22392239+ goto probe_end;2239224022402241 ret = snd_soc_dapm_add_routes(&card->dapm, card->of_dapm_routes,22412242 card->num_of_dapm_routes);
+2-10
sound/soc/soc-topology.c
···11011101 }1102110211031103 ret = snd_soc_dapm_add_routes(dapm, route, 1);11041104- if (ret) {11051105- if (dapm->card->disable_route_checks) {11061106- ret = 0;11071107- dev_info(tplg->dev,11081108- "ASoC: disable_route_checks set, ignoring dapm_add_routes errors\n");11091109- } else {11101110- dev_err(tplg->dev, "ASoC: dapm_add_routes failed: %d\n", ret);11111111- break;11121112- }11131113- }11041104+ if (ret)11051105+ break;11141106 }1115110711161108 return ret;