Message ID | 1498742546-23463-2-git-send-email-liam.r.girdwood@linux.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | bb97142bcf8c042103e87d035a120f522d12e788 |
Headers | show |
diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c index 10797d74a700..06fb7c4c664a 100644 --- a/sound/soc/soc-topology.c +++ b/sound/soc/soc-topology.c @@ -2389,7 +2389,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;
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 <liam.r.girdwood@linux.intel.com> --- sound/soc/soc-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)