diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2021-03-12 05:38:40 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-03-25 16:58:06 +0300 |
commit | 8bdfc0455e3a59e2c1207a56be22e910fae0e0d5 (patch) | |
tree | 5bb8c4ea8be168416923feab08176d5cb75ee58c /sound/soc/soc-pcm.c | |
parent | 3f994c25868729fb63a4eef42a7040e563eff365 (diff) | |
download | linux-8bdfc0455e3a59e2c1207a56be22e910fae0e0d5.tar.xz |
ASoC: soc-component: Add snd_soc_pcm_component_ack
Add snd_soc_pcm_component_ack back, which can be used to get an
updated buffer pointer in the platform driver.
On Asymmetric multiprocessor, this pointer can be sent to Cortex-M
core for audio processing.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1615516725-4975-2-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r-- | sound/soc/soc-pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 2df70ab851ea..02968a4e52b4 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2772,6 +2772,8 @@ int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num) rtd->ops.page = snd_soc_pcm_component_page; if (drv->mmap) rtd->ops.mmap = snd_soc_pcm_component_mmap; + if (drv->ack) + rtd->ops.ack = snd_soc_pcm_component_ack; } if (playback) |