Commit 7a52d706 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: SOF: Intel: fix u16/32 confusion in LSDIID

Likely a combination of copy-paste and test coverage problem. Oops.

Fixes: 87a6ddc0 ("ASoC: SOF: Intel: hda-mlink: program SoundWire LSDIID registers")
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: default avatarRander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20230807210959.506849-3-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7075b0c9
...@@ -331,14 +331,14 @@ static bool hdaml_link_check_cmdsync(u32 __iomem *lsync, u32 cmdsync_mask) ...@@ -331,14 +331,14 @@ static bool hdaml_link_check_cmdsync(u32 __iomem *lsync, u32 cmdsync_mask)
return !!(val & cmdsync_mask); return !!(val & cmdsync_mask);
} }
static void hdaml_link_set_lsdiid(u32 __iomem *lsdiid, int dev_num) static void hdaml_link_set_lsdiid(u16 __iomem *lsdiid, int dev_num)
{ {
u32 val; u16 val;
val = readl(lsdiid); val = readw(lsdiid);
val |= BIT(dev_num); val |= BIT(dev_num);
writel(val, lsdiid); writew(val, lsdiid);
} }
static void hdaml_shim_map_stream_ch(u16 __iomem *pcmsycm, int lchan, int hchan, static void hdaml_shim_map_stream_ch(u16 __iomem *pcmsycm, int lchan, int hchan,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment