From 8566af5a71ab2638f7dd5b702a6836039cf93f1d Mon Sep 17 00:00:00 2001 From: Charles Keepax Date: Tue, 8 Oct 2024 15:03:20 +0100 Subject: [PATCH] fixup! ASoC: sdw_utils: Add support for exclusion DAI quirks Correct logic error in masking for exclusion quirks. Signed-off-by: Charles Keepax --- sound/soc/sdw_utils/soc_sdw_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sdw_utils/soc_sdw_utils.c b/sound/soc/sdw_utils/soc_sdw_utils.c index 1059c455e15473..6f6bff0f69fccc 100644 --- a/sound/soc/sdw_utils/soc_sdw_utils.c +++ b/sound/soc/sdw_utils/soc_sdw_utils.c @@ -1156,7 +1156,7 @@ int asoc_sdw_parse_sdw_endpoints(struct snd_soc_card *card, soc_dai = asoc_sdw_find_dailink(soc_dais, adr_end); if (dai_info->quirk && - !(dai_info->quirk_exclude ^ (dai_info->quirk & ctx->mc_quirk))) + !(dai_info->quirk_exclude ^ !!(dai_info->quirk & ctx->mc_quirk))) continue; dev_dbg(dev,