Skip to content

Commit

Permalink
fixup! ASoC: sdw_utils: Add support for exclusion DAI quirks
Browse files Browse the repository at this point in the history
Correct logic error in masking for exclusion quirks.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
  • Loading branch information
charleskeepax committed Oct 8, 2024
1 parent 5899601 commit 8566af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sdw_utils/soc_sdw_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8566af5

Please sign in to comment.