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