projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3b75e9
)
ASoC: SOF: mediatek: add snd_sof_dsp_ops callbacks for pcm and mail box
author
Chunxu Li
<chunxu.li@mediatek.com>
Thu, 25 Aug 2022 06:54:10 +0000
(14:54 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 25 Aug 2022 11:29:29 +0000
(12:29 +0100)
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>
sound/soc/sof/mediatek/mt8186/mt8186.c
patch
|
blob
|
history
diff --git
a/sound/soc/sof/mediatek/mt8186/mt8186.c
b/sound/soc/sof/mediatek/mt8186/mt8186.c
index b47bb7a6ba703b8f78bf651976ad4c9e9f79ee59..5fc206bb0da0378ede5181a0c7b1f2bae554325b 100644
(file)
--- 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,