linux/sound/soc/mediatek/common/mtk-soundcard-driver.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * mtk-soundcard-driver.h  --  MediaTek soundcard driver common definition
 *
 * Copyright (c) 2022 MediaTek Inc.
 * Author: Trevor Wu <[email protected]>
 */

#ifndef _MTK_SOUNDCARD_DRIVER_H_
#define _MTK_SOUNDCARD_DRIVER_H_

struct mtk_sof_priv;
struct mtk_soc_card_data;
struct snd_pcm_hw_constraint_list;

enum mtk_pcm_constraint_type {};

struct mtk_pcm_constraints_data {};

struct mtk_platform_card_data {};

struct mtk_soundcard_pdata {};

/* Common playback/capture card startup ops */
extern const struct snd_soc_ops mtk_soundcard_common_playback_ops;
extern const struct snd_soc_ops mtk_soundcard_common_capture_ops;

/* Exported for custom/extended soundcard startup ops */
int mtk_soundcard_startup(struct snd_pcm_substream *substream,
			  enum mtk_pcm_constraint_type ctype);

int parse_dai_link_info(struct snd_soc_card *card);
void clean_card_reference(struct snd_soc_card *card);
int mtk_soundcard_common_probe(struct platform_device *pdev);
#endif