aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCezary Rojewski <[email protected]>2022-07-07 14:41:47 +0200
committerMark Brown <[email protected]>2022-07-08 18:53:22 +0100
commitdaa36bbcd78bca24db84e273bcafec9a8f81c767 (patch)
tree40a2dd607d91c3da2804298905b5598c34950407
parent00566ad4ce9d394c6ebaacde12eda06eef4e5279 (diff)
ASoC: Intel: avs: Block IPC channel on suspend
To allow for driver's filesystem interfaces e.g.: debugfs, to be touched even when the device is asleep, mark IPC-channel as blocked when the device is suspended. This causes any invocation of said interfaces that do not toggle PM themselves to gracefully fail with "Operation not permitted" message. Signed-off-by: Cezary Rojewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/intel/avs/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/intel/avs/core.c b/sound/soc/intel/avs/core.c
index 664f87c33e9d..4234adeb3d1c 100644
--- a/sound/soc/intel/avs/core.c
+++ b/sound/soc/intel/avs/core.c
@@ -556,6 +556,7 @@ static int __maybe_unused avs_suspend_common(struct avs_dev *adev)
return AVS_IPC_RET(ret);
}
+ avs_ipc_block(adev->ipc);
avs_dsp_op(adev, int_control, false);
snd_hdac_ext_bus_ppcap_int_enable(bus, false);