hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/sound/soc/mediatek/common/mtk-afe-platform-driver.h
....@@ -10,7 +10,6 @@
1010 #define _MTK_AFE_PLATFORM_DRIVER_H_
1111
1212 #define AFE_PCM_NAME "mtk-afe-pcm"
13
-extern const struct snd_pcm_ops mtk_afe_pcm_ops;
1413 extern const struct snd_soc_component_driver mtk_afe_pcm_platform;
1514
1615 struct mtk_base_afe;
....@@ -18,9 +17,10 @@
1817 struct snd_soc_component;
1918 struct snd_soc_pcm_runtime;
2019
21
-
22
-int mtk_afe_pcm_new(struct snd_soc_pcm_runtime *rtd);
23
-void mtk_afe_pcm_free(struct snd_pcm *pcm);
20
+snd_pcm_uframes_t mtk_afe_pcm_pointer(struct snd_soc_component *component,
21
+ struct snd_pcm_substream *substream);
22
+int mtk_afe_pcm_new(struct snd_soc_component *component,
23
+ struct snd_soc_pcm_runtime *rtd);
2424
2525 int mtk_afe_combine_sub_dai(struct mtk_base_afe *afe);
2626 int mtk_afe_add_sub_dai_control(struct snd_soc_component *component);