diff options
| author | Maciej Strozek <mstrozek@opensource.cirrus.com> | 2026-04-08 10:38:32 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-08 16:55:29 +0100 |
| commit | 58dec4fac4c46b42b8264f2d8aa6972ff951c18b (patch) | |
| tree | e57a246dd2f38f73763b0737e3f225fc93f40f17 /sound | |
| parent | 23e0cbe55736de222ed975863cf06baf29bee5fe (diff) | |
ASoC: SDCA: mask Function_Status value
According to the SDCA specification [1], when writing Function_Status during
handling this control, the value should mask off bit 7.
[1] MIPI Specification for SoundWire Device Class for Audio, version
1.1, section 7.14.1.3 (Host Software Handling of Function_Status)
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260408093835.2881486-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
| -rw-r--r-- | sound/soc/sdca/sdca_interrupts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sdca/sdca_interrupts.c b/sound/soc/sdca/sdca_interrupts.c index 9acb0be84674..0693209ffed1 100644 --- a/sound/soc/sdca/sdca_interrupts.c +++ b/sound/soc/sdca/sdca_interrupts.c @@ -138,7 +138,7 @@ static irqreturn_t function_status_handler(int irq, void *data) } } - ret = regmap_write(interrupt->function_regmap, reg, val); + ret = regmap_write(interrupt->function_regmap, reg, val & 0x7F); if (ret < 0) { dev_err(dev, "failed to clear function status: %d\n", ret); goto error; |
