diff options
author | Chunxu Li <chunxu.li@mediatek.com> | 2022-08-25 08:54:10 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-08-25 13:29:29 +0200 |
commit | 82e93430e0ad13cc31e411cfa575e63118bb0ed4 (patch) | |
tree | 13bbcc5841e934641f2ac2e406f7989d171c7ce6 /sound/soc/sof/mediatek | |
parent | ASoC: SOF: mediatek: Add dai driver for mt8186 (diff) | |
download | linux-82e93430e0ad13cc31e411cfa575e63118bb0ed4.tar.xz linux-82e93430e0ad13cc31e411cfa575e63118bb0ed4.zip |
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, |