File Index
Files and directories
Sign in
FILE

mtk-afe-fe-dai.h

File preview with syntax highlighting.

linux-6.19.14/sound/soc/mediatek/common/mtk-afe-fe-dai.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/*
 3 * mtk-afe-fe-dais.h  --  Mediatek afe fe dai operator definition
 4 *
 5 * Copyright (c) 2016 MediaTek Inc.
 6 * Author: Garlic Tseng <garlic.tseng@mediatek.com>
 7 */
 8
 9#ifndef _MTK_AFE_FE_DAI_H_
10#define _MTK_AFE_FE_DAI_H_
11
12struct snd_soc_dai_ops;
13struct mtk_base_afe;
14struct mtk_base_afe_memif;
15
16int mtk_afe_fe_startup(struct snd_pcm_substream *substream,
17		       struct snd_soc_dai *dai);
18void mtk_afe_fe_shutdown(struct snd_pcm_substream *substream,
19			 struct snd_soc_dai *dai);
20int mtk_afe_fe_hw_params(struct snd_pcm_substream *substream,
21			 struct snd_pcm_hw_params *params,
22			 struct snd_soc_dai *dai);
23int mtk_afe_fe_hw_free(struct snd_pcm_substream *substream,
24		       struct snd_soc_dai *dai);
25int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
26		       struct snd_soc_dai *dai);
27int mtk_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
28		       struct snd_soc_dai *dai);
29
30extern const struct snd_soc_dai_ops mtk_afe_fe_ops;
31
32int mtk_dynamic_irq_acquire(struct mtk_base_afe *afe);
33int mtk_dynamic_irq_release(struct mtk_base_afe *afe, int irq_id);
34int mtk_afe_suspend(struct snd_soc_component *component);
35int mtk_afe_resume(struct snd_soc_component *component);
36
37int mtk_memif_set_enable(struct mtk_base_afe *afe, int id);
38int mtk_memif_set_disable(struct mtk_base_afe *afe, int id);
39int mtk_memif_set_addr(struct mtk_base_afe *afe, int id,
40		       unsigned char *dma_area,
41		       dma_addr_t dma_addr,
42		       size_t dma_bytes);
43int mtk_memif_set_channel(struct mtk_base_afe *afe,
44			  int id, unsigned int channel);
45int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream,
46				 int id, unsigned int rate);
47int mtk_memif_set_format(struct mtk_base_afe *afe,
48			 int id, snd_pcm_format_t format);
49int mtk_memif_set_pbuf_size(struct mtk_base_afe *afe,
50			    int id, int pbuf_size);
51#endif
~/ Read-only file preview.