From: Liam Girdwood Date: Thu, 29 Jun 2017 13:22:25 +0000 (+0100) Subject: ASoC: topology: Fix usage of SND_SOC_TPLG_INDEX_ALL during load X-Git-Tag: microblaze-4.14-rc3~43^2~52^2^2~1^5~1 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=bb97142bcf8c042103e87d035a120f522d12e788;p=linux-2.6-microblaze.git ASoC: topology: Fix usage of SND_SOC_TPLG_INDEX_ALL during load SND_SOC_TPLG_INDEX_ALL is used by drivers to tell the core to load all topology component indexes, not just the index in the header. Fix this so that SND_SOC_TPLG_INDEX_ALL will load all components no matter their index. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index 12e189701924..6070e35455aa 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -2381,7 +2381,7 @@ static int soc_tplg_load_header(struct soc_tplg *tplg, /* check for matching ID */ if (hdr->index != tplg->req_index && - hdr->index != SND_SOC_TPLG_INDEX_ALL) + tplg->req_index != SND_SOC_TPLG_INDEX_ALL) return 0; tplg->index = hdr->index;