xref: /OK3568_Linux_fs/kernel/sound/soc/intel/boards/sof_maxim_common.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Copyright(c) 2020 Intel Corporation.
4*4882a593Smuzhiyun  */
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun /*
7*4882a593Smuzhiyun  * This file defines data structures used in Machine Driver for Intel
8*4882a593Smuzhiyun  * platforms with Maxim Codecs.
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun #ifndef __SOF_MAXIM_COMMON_H
11*4882a593Smuzhiyun #define __SOF_MAXIM_COMMON_H
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #include <sound/soc.h>
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #define MAX_98373_CODEC_DAI	"max98373-aif1"
16*4882a593Smuzhiyun #define MAX_98373_DEV0_NAME	"i2c-MX98373:00"
17*4882a593Smuzhiyun #define MAX_98373_DEV1_NAME	"i2c-MX98373:01"
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun extern struct snd_soc_dai_link_component max_98373_components[2];
20*4882a593Smuzhiyun extern struct snd_soc_ops max_98373_ops;
21*4882a593Smuzhiyun extern const struct snd_soc_dapm_route max_98373_dapm_routes[];
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun int max98373_spk_codec_init(struct snd_soc_pcm_runtime *rtd);
24*4882a593Smuzhiyun void sof_max98373_codec_conf(struct snd_soc_card *card);
25*4882a593Smuzhiyun int max98373_trigger(struct snd_pcm_substream *substream, int cmd);
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun #endif /* __SOF_MAXIM_COMMON_H */
28