diff mbox series

[SRU,OEM-OSP1-B,1/1] ASoC: SOF: Intel: HDA: correct ROM state mask

Message ID 20190723043522.20932-2-hui.wang@canonical.com
State Accepted
Headers show
Series alsa/sof: The definition of ROM state register is not correct | expand

Commit Message

Hui Wang July 23, 2019, 4:35 a.m. UTC
From: Keyon Jie <yang.jie@linux.intel.com>

BugLink: http://bugs.launchpad.net/bugs/1837500

The ROM state is represented by the 24 LSB bits in the ROM status
register, so the mask should be 0xffffff instead of 0xf.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
(cherry picked from commit f745362cc60dd62b825a4afacf7457430dce3565
git://github.com/thesofproject/linux.git)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
---
 sound/soc/sof/intel/hda.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sound/soc/sof/intel/hda.h b/sound/soc/sof/intel/hda.h
index 1475d8a51a7e..3ab90266244a 100644
--- a/sound/soc/sof/intel/hda.h
+++ b/sound/soc/sof/intel/hda.h
@@ -169,7 +169,7 @@ 
 #define HDA_DSP_STACK_DUMP_SIZE			32
 
 /* ROM  status/error values */
-#define HDA_DSP_ROM_STS_MASK			0xf
+#define HDA_DSP_ROM_STS_MASK			GENMASK(23, 0)
 #define HDA_DSP_ROM_INIT			0x1
 #define HDA_DSP_ROM_FW_MANIFEST_LOADED		0x3
 #define HDA_DSP_ROM_FW_FW_LOADED		0x4