Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: intel: hda: remove HDA_DSP_REG_SNDW_WAKE_STS definition

HDA_DSP_REG_SNDW_WAKE_STS is actually (SDW_SHIM_BASE + SDW_SHIM_WAKESTS)
and SDW_SHIM_BASE is platform-dependent. Removing HDA_DSP_REG_SNDW_WAKE_STS
and use (hdev->desc->sdw_shim_base + SDW_SHIM_WAKESTS) instead.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210723115451.7245-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Bard Liao and committed by
Mark Brown
781dd3c8 1cbf6443

+1 -2
+1 -1
sound/soc/sof/intel/hda.c
··· 249 249 hdev = sdev->pdata->hw_pdata; 250 250 if (hdev->sdw && 251 251 snd_sof_dsp_read(sdev, HDA_DSP_BAR, 252 - HDA_DSP_REG_SNDW_WAKE_STS)) 252 + hdev->desc->sdw_shim_base + SDW_SHIM_WAKESTS)) 253 253 return true; 254 254 255 255 return false;
-1
sound/soc/sof/intel/hda.h
··· 233 233 #define HDA_DSP_REG_ADSPIS2 (HDA_DSP_GEN_BASE + 0x14) 234 234 235 235 #define HDA_DSP_REG_ADSPIS2_SNDW BIT(5) 236 - #define HDA_DSP_REG_SNDW_WAKE_STS 0x2C192 237 236 238 237 /* Intel HD Audio Inter-Processor Communication Registers */ 239 238 #define HDA_DSP_IPC_BASE 0x40