Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: qcom: q6asm: drop DSP responses for closed data streams

'Commit a354f030dbce ("ASoC: qcom: q6asm: handle the responses
after closing")' attempted to ignore DSP responses arriving
after a stream had been closed.

However, those responses were still handled, causing lockups.

Fix this by unconditionally dropping all DSP responses associated with
closed data streams.

Signed-off-by: Cédric Bellegarde <cedric.bellegarde@adishatz.org>
Link: https://patch.msgid.link/20260102215225.609166-1-cedric.bellegarde@adishatz.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Cédric Bellegarde and committed by
Mark Brown
8a066a81 090c8844

+2 -2
+2 -2
sound/soc/qcom/qdsp6/q6asm.c
··· 636 636 client_event = ASM_CLIENT_EVENT_CMD_OUT_FLUSH_DONE; 637 637 break; 638 638 case ASM_STREAM_CMD_OPEN_WRITE_V3: 639 - case ASM_DATA_CMD_WRITE_V2: 640 639 case ASM_STREAM_CMD_OPEN_READ_V3: 641 640 case ASM_STREAM_CMD_OPEN_READWRITE_V2: 642 641 case ASM_STREAM_CMD_SET_ENCDEC_PARAM: ··· 654 655 break; 655 656 case ASM_DATA_CMD_EOS: 656 657 case ASM_DATA_CMD_READ_V2: 658 + case ASM_DATA_CMD_WRITE_V2: 657 659 /* response as result of close stream */ 658 - break; 660 + goto done; 659 661 default: 660 662 dev_err(ac->dev, "command[0x%x] not expecting rsp\n", 661 663 result->opcode);