xref: /linux/sound/soc/sof/mediatek/mtk-adsp-common.h
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2 
3 #ifndef __MEDIATEK_ADSP_COMMON_H__
4 #define __MEDIATEK_ADSP_COMMON_H__
5 
6 #define EXCEPT_MAX_HDR_SIZE	0x400
7 #define MTK_ADSP_STACK_DUMP_SIZE 32
8 
9 void mtk_adsp_dump(struct snd_sof_dev *sdev, u32 flags);
10 int mtk_adsp_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg);
11 void mtk_adsp_handle_reply(struct mtk_adsp_ipc *ipc);
12 void mtk_adsp_handle_request(struct mtk_adsp_ipc *ipc);
13 int mtk_adsp_get_bar_index(struct snd_sof_dev *sdev, u32 type);
14 int mtk_adsp_stream_pcm_hw_params(struct snd_sof_dev *sdev,
15 				  struct snd_pcm_substream *substream,
16 				  struct snd_pcm_hw_params *params,
17 				  struct snd_sof_platform_stream_params *platform_params);
18 snd_pcm_uframes_t mtk_adsp_stream_pcm_pointer(struct snd_sof_dev *sdev,
19 					      struct snd_pcm_substream *substream);
20 #endif
21 

served by {OpenGrok

Last Index Update: Sun Jun 08 21:32:33 UTC 2025