Skip to content

Commit 9643456

Browse files
plbossartbroonie
authored andcommitted
ASoC: SOF: Intel: hda-mlink: initialize instance_offset member
We defined the values but never initialized it for SoundWire/SSP, fix this miss. A Fixes: tag is not provided as instance_offset was not used so far, so nothing was really broken. This patch is only required for the SoundWire support in the following patch. Signed-off-by: Pierre-Louis Bossart <[email protected] Reviewed-by: Bard Liao <[email protected] Reviewed-by: Rander Wang <[email protected] Reviewed-by: Ranjani Sridharan <[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]
1 parent 7dfd1cc commit 9643456

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/sof/intel/hda-mlink.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ static int hdaml_lnk_enum(struct device *dev, struct hdac_ext2_link *h2link,
140140

141141
switch (h2link->elid) {
142142
case AZX_REG_ML_LEPTR_ID_SDW:
143+
h2link->instance_offset = AZX_REG_SDW_INSTANCE_OFFSET;
143144
h2link->shim_offset = AZX_REG_SDW_SHIM_OFFSET;
144145
h2link->ip_offset = AZX_REG_SDW_IP_OFFSET;
145146
h2link->shim_vs_offset = AZX_REG_SDW_VS_SHIM_OFFSET;
@@ -154,6 +155,7 @@ static int hdaml_lnk_enum(struct device *dev, struct hdac_ext2_link *h2link,
154155
link_idx, base_offset);
155156
break;
156157
case AZX_REG_ML_LEPTR_ID_INTEL_SSP:
158+
h2link->instance_offset = AZX_REG_INTEL_SSP_INSTANCE_OFFSET;
157159
h2link->shim_offset = AZX_REG_INTEL_SSP_SHIM_OFFSET;
158160
h2link->ip_offset = AZX_REG_INTEL_SSP_IP_OFFSET;
159161
h2link->shim_vs_offset = AZX_REG_INTEL_SSP_VS_SHIM_OFFSET;

0 commit comments

Comments
 (0)