diff options
author | V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com> | 2022-09-13 17:43:18 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-20 21:38:04 +0300 |
commit | 40d3c041e2f871b3d2d78c8e360224f788ac17ab (patch) | |
tree | d7d76801dae85d74770be03911c43f1fb1239803 /sound/soc/sof/amd/acp-pcm.c | |
parent | ed2562c64b4f2cb434420f7d2818d0388250ac1a (diff) | |
download | linux-40d3c041e2f871b3d2d78c8e360224f788ac17ab.tar.xz |
ASoC: SOF: amd: increase SRAM inbox and outbox size to 1024
Increase inbox and outbox mailbox size from 512 to 1024 to
support thirdparty DTS integration ipc tx/rx messages communication.
This is done through firmware window get info.
Signed-off-by: V sujith kumar Reddy <Vsujithkumar.Reddy@amd.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220913144319.1055302-5-Vsujithkumar.Reddy@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/amd/acp-pcm.c')
-rw-r--r-- | sound/soc/sof/amd/acp-pcm.c | 3 |
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; |