ASoC: Intel: avs: Block IPC channel on suspend
authorCezary Rojewski <cezary.rojewski@intel.com>
Thu, 7 Jul 2022 12:41:47 +0000 (14:41 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 8 Jul 2022 17:53:22 +0000 (18:53 +0100)
commitdaa36bbcd78bca24db84e273bcafec9a8f81c767
tree40a2dd607d91c3da2804298905b5598c34950407
parent00566ad4ce9d394c6ebaacde12eda06eef4e5279
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 <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220707124153.1858249-7-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/core.c