diff options
author | Chunxu Li <chunxu.li@mediatek.com> | 2022-08-25 09:54:10 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-25 14:29:29 +0300 |
commit | 82e93430e0ad13cc31e411cfa575e63118bb0ed4 (patch) | |
tree | 13bbcc5841e934641f2ac2e406f7989d171c7ce6 /sound/soc/sof/mediatek | |
parent | f3b75e9b56780e3bfaa910e560cb9ba4d8f38e53 (diff) | |
download | linux-82e93430e0ad13cc31e411cfa575e63118bb0ed4.tar.xz |
ASoC: SOF: mediatek: add snd_sof_dsp_ops callbacks for pcm and mail box
Use generic IPC stream and mailbox ops for mt8186
Signed-off-by: Chunxu Li <chunxu.li@mediatek.com>
Link: https://lore.kernel.org/r/20220825065411.31279-3-chunxu.li@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/mediatek')
-rw-r--r-- | sound/soc/sof/mediatek/mt8186/mt8186.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/sof/mediatek/mt8186/mt8186.c b/sound/soc/sof/mediatek/mt8186/mt8186.c index b47bb7a6ba70..5fc206bb0da0 100644 --- a/sound/soc/sof/mediatek/mt8186/mt8186.c +++ b/sound/soc/sof/mediatek/mt8186/mt8186.c @@ -512,6 +512,10 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = { .block_read = sof_block_read, .block_write = sof_block_write, + /* Mailbox IO */ + .mailbox_read = sof_mailbox_read, + .mailbox_write = sof_mailbox_write, + /* Register IO */ .write = sof_io_write, .read = sof_io_read, @@ -528,6 +532,10 @@ static struct snd_sof_dsp_ops sof_mt8186_ops = { /* misc */ .get_bar_index = mt8186_get_bar_index, + /* stream callbacks */ + .pcm_open = sof_stream_pcm_open, + .pcm_close = sof_stream_pcm_close, + /* firmware loading */ .load_firmware = snd_sof_load_firmware_memcpy, |