Skip to content
Snippets Groups Projects
Commit da9f8427 authored by Chunxu Li's avatar Chunxu Li Committed by Oleksii Kutuzov
Browse files

UPSTREAM: ASoC: SOF: mediatek: add snd_sof_dsp_ops callbacks for pcm and mail box


Use generic IPC stream and mailbox ops for mt8186

Change-Id: If47b41e905f7ff5e864c28ca0be48d722429ab20
Signed-off-by: default avatarChunxu Li <chunxu.li@mediatek.com>
Link: https://lore.kernel.org/r/20220825065411.31279-3-chunxu.li@mediatek.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent a94a826f
No related branches found
No related tags found
1 merge request!13[UPSTREAM] Add Audio-related patches from Mediatek's Release 24.0
...@@ -512,6 +512,10 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = { ...@@ -512,6 +512,10 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
.block_read = sof_block_read, .block_read = sof_block_read,
.block_write = sof_block_write, .block_write = sof_block_write,
/* Mailbox IO */
.mailbox_read = sof_mailbox_read,
.mailbox_write = sof_mailbox_write,
/* Register IO */ /* Register IO */
.write = sof_io_write, .write = sof_io_write,
.read = sof_io_read, .read = sof_io_read,
...@@ -528,6 +532,10 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = { ...@@ -528,6 +532,10 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = {
/* misc */ /* misc */
.get_bar_index = mt8186_get_bar_index, .get_bar_index = mt8186_get_bar_index,
/* stream callbacks */
.pcm_open = sof_stream_pcm_open,
.pcm_close = sof_stream_pcm_close,
/* firmware loading */ /* firmware loading */
.load_firmware = snd_sof_load_firmware_memcpy, .load_firmware = snd_sof_load_firmware_memcpy,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment