Skip to content

Commit 58dec4f

Browse files
mstrozekbroonie
authored andcommitted
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 <[email protected]> Signed-off-by: Charles Keepax <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 23e0cbe commit 58dec4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sdca/sdca_interrupts.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ static irqreturn_t function_status_handler(int irq, void *data)
138138
}
139139
}
140140

141-
ret = regmap_write(interrupt->function_regmap, reg, val);
141+
ret = regmap_write(interrupt->function_regmap, reg, val & 0x7F);
142142
if (ret < 0) {
143143
dev_err(dev, "failed to clear function status: %d\n", ret);
144144
goto error;

0 commit comments

Comments
 (0)