ASoC: SOF: Intel: mtl: fix page fault in dspless mode when DSP is disabled
authorFred Oh <fred.oh@linux.intel.com>
Wed, 12 Apr 2023 06:14:57 +0000 (09:14 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 12 Apr 2023 11:51:59 +0000 (12:51 +0100)
commitef0128afa1655f8d024dc5058fbfa0c6deecf117
treeaa88350dff70b661a04261ab9f0fbad6deb2d1c2
parenta8f5da0bf4d85a6ad03810d902aba61c572102a6
ASoC: SOF: Intel: mtl: fix page fault in dspless mode when DSP is disabled

The patch to make DSPless mode work even if the DSP is
disabled in BIOS missed to touch the MTL code to add
the needed checks.
If the DSP is disabled this can lead to page fault due to not
accesible registers.

Fixes: 9fc6786f549c ("ASoC: SOF: Intel: hda: make DSPless mode work with DSP disabled in BIOS")
Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230412061457.27937-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/mtl.c