ASoC: SOF: Intel: hda: disable SoundWire interrupts on suspend
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 25 Mar 2020 21:50:22 +0000 (16:50 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 27 Mar 2020 15:16:33 +0000 (15:16 +0000)
Doing this avoid conflicts and errors reported on the bus.

The interrupts are only re-enabled on resume after the firmware is
downloaded, so the behavior is not fully symmetric

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200325215027.28716-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dsp.c

index c396b7ef0328d9e3ec35ee93da9aef5643acaa25..1aff90042694cd2c3e3a156e62448b94fff5e010 100644 (file)
@@ -594,6 +594,8 @@ static int hda_suspend(struct snd_sof_dev *sdev, bool runtime_suspend)
 #endif
        int ret;
 
+       hda_sdw_int_enable(sdev, false);
+
        /* disable IPC interrupts */
        hda_dsp_ipc_int_disable(sdev);