Skip to content

Commit 68d6c63

Browse files
committed
ASoC: SOF: sof-client-probes: Block the capture if the firmware is crashed
Do not allow the compressed stream to be started if the firmware is in crashed state. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 6677eec commit 68d6c63

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sound/soc/sof/sof-client-probes.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ static int sof_probes_compr_startup(struct snd_compr_stream *cstream,
262262
const struct sof_probes_host_ops *ops = priv->host_ops;
263263
int ret;
264264

265+
if (sof_client_get_fw_state(cdev) == SOF_FW_CRASHED)
266+
return -ENODEV;
267+
265268
ret = sof_client_core_module_get(cdev);
266269
if (ret)
267270
return ret;

0 commit comments

Comments
 (0)