diff options
| author | Vijendar Mukunda <Vijendar.Mukunda@amd.com> | 2026-09-10 21:46:48 +0530 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-16 20:08:18 +0100 |
| commit | 27098aaf28b96ab4e6891709062c343566d4882b (patch) | |
| tree | a0542c1074ea36f6634ebb6c62caeb974a66b1e0 /scripts/Makefile.thinlto | |
| parent | 0b7d55d3a91200f2b1ed710f525a944b0a7d6369 (diff) | |
| download | linux-27098aaf28b96ab4e6891709062c343566d4882b.tar.gz linux-27098aaf28b96ab4e6891709062c343566d4882b.zip | |
ASoC: amd: acp: fix ffs() operator precedence for SoundWire link ID
ffs(link_mask - 1) computes ffs on (link_mask - 1) instead of
subtracting 1 from the result of ffs(link_mask). For a typical
power-of-2 link_mask this returns the wrong link ID, causing cpu_pin_id
lookup to select the incorrect SoundWire manager.
Fix the operator precedence to ffs(link_mask) - 1 in both
acp-sdw-sof-mach.c and acp-sdw-legacy-mach.c.
Fixes: 6d8348ddc56e ("ASoC: amd: acp: refactor SoundWire machine driver code")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/20260910161728.1452808-4-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
