ASoC: SOF: Intel: hda: Dump registers and stack when SOF_DBG_DUMP_REGS is set
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 6 Oct 2021 11:06:45 +0000 (14:06 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 14:45:41 +0000 (15:45 +0100)
commit3ad7b8f4817fcfd68a101ec9986c435f17cc74a1
tree77be3f2aee190728df0d76616e060b4a47092dc8
parent7511b0edf1b8d9a1321ac19cb076fcdfe534439a
ASoC: SOF: Intel: hda: Dump registers and stack when SOF_DBG_DUMP_REGS is set

Instead of checking the fw_state to decide what information should be
printed, use the SOF_DBG_DUMP_REGS bit in the flags to dump registers and
stack.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20211006110645.26679-20-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c