Path: blob/master/sound/soc/mediatek/common/mtk-dsp-sof-common.h
26450 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* mtk-dsp-sof-common.h -- MediaTek dsp sof common definition3*4* Copyright (c) 2022 MediaTek Inc.5* Author: Chunxu Li <[email protected]>6*/78#ifndef _MTK_DSP_SOF_COMMON_H_9#define _MTK_DSP_SOF_COMMON_H_1011#include <sound/soc.h>1213struct sof_conn_stream {14const char *normal_link;15const char *sof_link;16const char *sof_dma;17int stream_dir;18};1920struct mtk_dai_link {21const char *name;22int (*be_hw_params_fixup)(struct snd_soc_pcm_runtime *rtd,23struct snd_pcm_hw_params *params);24struct list_head list;25};2627struct mtk_sof_priv {28const struct sof_conn_stream *conn_streams;29int num_streams;30int (*sof_dai_link_fixup)(struct snd_soc_pcm_runtime *rtd,31struct snd_pcm_hw_params *params);32};3334int mtk_sof_dai_link_fixup(struct snd_soc_pcm_runtime *rtd,35struct snd_pcm_hw_params *params);36int mtk_sof_card_probe(struct snd_soc_card *card);37int mtk_sof_card_late_probe(struct snd_soc_card *card);38int mtk_sof_dailink_parse_of(struct snd_soc_card *card, struct device_node *np,39const char *propname, struct snd_soc_dai_link *pre_dai_links,40int pre_num_links);4142#endif434445