summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/amd/acp-pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/sof/amd/acp-pcm.c')
-rw-r--r--sound/soc/sof/amd/acp-pcm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sof/amd/acp-pcm.c b/sound/soc/sof/amd/acp-pcm.c
index 0ba8ae46bd76..727c3a784a20 100644
--- a/sound/soc/sof/amd/acp-pcm.c
+++ b/sound/soc/sof/amd/acp-pcm.c
@@ -42,7 +42,8 @@ int acp_pcm_hw_params(struct snd_sof_dev *sdev, struct snd_pcm_substream *substr
/* write buffer size of stream in scratch memory */
- buf_offset = offsetof(struct scratch_reg_conf, buf_size);
+ buf_offset = sdev->debug_box.offset +
+ offsetof(struct scratch_reg_conf, buf_size);
index = stream->stream_tag - 1;
buf_offset = buf_offset + index * 4;