]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: sdw_utils: subtract the endpoint that is not present
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 12 Dec 2025 12:11:12 +0000 (20:11 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:32:41 +0000 (19:32 +0900)
commitcb0ae6f22790ead71a866f94c7a5a70ad56af16a
treecfe3f2ab5cdc6de2f0000635de8022fee32e38ea
parent9f4d0899efd9892fc7514c9488270e1bb7dedd2b
ASoC: sdw_utils: subtract the endpoint that is not present

When asoc_sdw_count_sdw_endpoints() count the num_ends, it doesn't skip
the unpresented endpoints. But, asoc_sdw_parse_sdw_endpoints() will skip
the unpresented endpoints either by quirk or the SDCA function doesn't
show up the endpoint. The endpoint number mismatches between count and
parse and the machine driver will show up a warning about it.

Fixes: 26ee34d2f5c7 ("ASoC: sdw_utils: Add codec_conf for every DAI")
Closes: https://github.com/thesofproject/linux/issues/5620
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20251212121112.3313017-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdw_utils/soc_sdw_utils.c