Thread (25 messages) 25 messages, 5 authors, 2025-03-14

Re: [PATCH 02/14] ASoC: mediatek: common: modify mtk afe platform driver for mt8196

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2025-03-07 15:22:08
Also in: linux-devicetree, linux-gpio, linux-mediatek, linux-sound, lkml

On 07/03/2025 13:47, Darren.Ye wrote:
quoted hunk ↗ jump to hunk
From: Darren Ye <redacted>

Mofify the pcm pointer interface to support 64-bit address access.

Signed-off-by: Darren Ye <redacted>
---
 .../mediatek/common/mtk-afe-platform-driver.c | 63 ++++++++++++++-----
 .../mediatek/common/mtk-afe-platform-driver.h |  5 ++
 2 files changed, 52 insertions(+), 16 deletions(-)
diff --git a/sound/soc/mediatek/common/mtk-afe-platform-driver.c b/sound/soc/mediatek/common/mtk-afe-platform-driver.c
index 6b6330583941..5d8f4421e665 100644
--- a/sound/soc/mediatek/common/mtk-afe-platform-driver.c
+++ b/sound/soc/mediatek/common/mtk-afe-platform-driver.c
@@ -77,6 +77,16 @@ int mtk_afe_add_sub_dai_control(struct snd_soc_component *component)
 }
 EXPORT_SYMBOL_GPL(mtk_afe_add_sub_dai_control);
 
+int mtk_afe_pcm_open(struct snd_soc_component *component,
How adding this is related with 64-bit addresses? It's not even used here.
+		     struct snd_pcm_substream *substream)
+{
+	/* set the wait_for_avail to 2 sec*/
+	substream->wait_time = msecs_to_jiffies(2 * 1000);
+
+	return 0;
+}
+EXPORT_SYMBOL_GPL(mtk_afe_pcm_open);

Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help