[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220825065411.31279-3-chunxu.li@mediatek.com>
Date: Thu, 25 Aug 2022 14:54:10 +0800
From: Chunxu Li <chunxu.li@...iatek.com>
To: <broonie@...nel.org>, <pierre-louis.bossart@...ux.intel.com>,
<peter.ujfalusi@...ux.intel.com>, <lgirdwood@...il.com>,
<angelogioacchino.delregno@...labora.com>, <daniel.baluta@....com>
CC: <matthias.bgg@...il.com>, <yc.hung@...iatek.com>,
<linux-kernel@...r.kernel.org>, <alsa-devel@...a-project.org>,
<sound-open-firmware@...a-project.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-mediatek@...ts.infradead.org>,
<project_global_chrome_upstream_group@...iatek.com>,
Chunxu Li <chunxu.li@...iatek.com>
Subject: [PATCH 2/3] 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@...iatek.com>
---
sound/soc/sof/mediatek/mt8186/mt8186.c | 8 ++++++++
1 file changed, 8 insertions(+)
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,
--
2.25.1
Powered by blists - more mailing lists