提交 31d632f9 编写于 作者: D Dan Carpenter 提交者: Mark Brown

ASoC: intel: incorrect sizeof()

This should be sizeof(pos) instead of sizeof(&pos).  Most likely they
are both 8 bytes though so it doesn't often make a difference in real
life.

Fixes: 22981243 ('ASoC: Intel: Add Haswell/Broadwell IPC')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NLiam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 f9da9e43
......@@ -617,7 +617,7 @@ static void hsw_notification_work(struct work_struct *work)
case IPC_POSITION_CHANGED:
trace_ipc_notification("DSP stream position changed for",
stream->reply.stream_hw_id);
sst_dsp_inbox_read(hsw->dsp, pos, sizeof(&pos));
sst_dsp_inbox_read(hsw->dsp, pos, sizeof(pos));
if (stream->notify_position)
stream->notify_position(stream, stream->pdata);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册