ASoC: SOF: Intel: hda-mlink: fix base_ptr computation
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 12 May 2023 17:46:08 +0000 (12:46 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 15 May 2023 01:20:11 +0000 (10:20 +0900)
commitaf8c32b1a3d55f9b42294aee7e7c7eca85ee3bd2
treece2b78d600df46a45687ac499cff463aad7985fb
parentdcb88fc47d0e79fd54a19a63a4c8a7594ba0838e
ASoC: SOF: Intel: hda-mlink: fix base_ptr computation

The base_ptr value needs to be derived from the remap_addr pointer,
not the ml_addr. This base_ptr was used only in debug logs that were
so far not contributed upstream so the issue was not detected. It
needs to be fixed for SoundWire support on LunarLake.

Fixes: 17c9b6ec35c0 ("ASoC: SOF: Intel: hda-mlink: add structures to parse ALT links")
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com
Reviewed-by: Rander Wang <rander.wang@intel.com
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com
Link: https://lore.kernel.org/r/20230512174611.84372-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org
sound/soc/sof/intel/hda-mlink.c