ASoC: SOF: Intel: hda: Correct Firmware State Register use
authorMark Brown <broonie@kernel.org>
Tue, 23 Aug 2022 18:48:41 +0000 (19:48 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 23 Aug 2022 18:48:41 +0000 (19:48 +0100)
commitd4a9fd829285e488c522853faf30aca6097c2b40
treed25ba33a19ffb2bb95ae822bf0352e43b1ed285a
parent78f0ecf3c3147ef641dd89ed2c26d757f89ec11c
parent8613753a681e7a5c63313dea9b04bf103d601368
ASoC: SOF: Intel: hda: Correct Firmware State Register use

Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:

Hi,

The FSR (Firmware State Register) holds the ROM state information, it does not
contain error information.
The FSR itself is a bit more complicated as well as the state depends on the
module currently in use.

The error code from ROM or the status code from the firmware is located at the
next register.

Fix the handling of the FSR in order to provide usable and human readable (in
most cases) report on the status and error.

Regards,
Peter
---
Peter Ujfalusi (3):
  ASoC: SOF: Intel: hda: Correct the ROM/FW state reporting code
  ASoC: SOF: Intel: hda-loader: Use the FSR state definitions during
    bootup
  ASoC: SOF: Intel: hda: Drop no longer used ROM state definitions

 sound/soc/sof/intel/hda-loader.c |  10 +--
 sound/soc/sof/intel/hda.c        | 147 ++++++++++++++++++++++++++-----
 sound/soc/sof/intel/hda.h        |  69 +++++++++++++--
 3 files changed, 194 insertions(+), 32 deletions(-)

--
2.37.0