xref: /linux/sound/soc/intel/boards/sof_realtek_common.h (revision 3a38ef2b3cb6b63c105247b5ea4a9cf600e673f0)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright(c) 2020 Intel Corporation.
4  */
5 
6 /*
7  * This file defines data structures used in Machine Driver for Intel
8  * platforms with Realtek Codecs.
9  */
10 #ifndef __SOF_REALTEK_COMMON_H
11 #define __SOF_REALTEK_COMMON_H
12 
13 #include <sound/soc.h>
14 
15 #define RT1011_CODEC_DAI	"rt1011-aif"
16 #define RT1011_DEV0_NAME	"i2c-10EC1011:00"
17 #define RT1011_DEV1_NAME	"i2c-10EC1011:01"
18 #define RT1011_DEV2_NAME	"i2c-10EC1011:02"
19 #define RT1011_DEV3_NAME	"i2c-10EC1011:03"
20 
21 void sof_rt1011_dai_link(struct snd_soc_dai_link *link);
22 void sof_rt1011_codec_conf(struct snd_soc_card *card);
23 
24 #define RT1015P_CODEC_DAI	"HiFi"
25 #define RT1015P_DEV0_NAME	"RTL1015:00"
26 #define RT1015P_DEV1_NAME	"RTL1015:01"
27 
28 void sof_rt1015p_dai_link(struct snd_soc_dai_link *link);
29 void sof_rt1015p_codec_conf(struct snd_soc_card *card);
30 
31 #define RT1015_CODEC_DAI	"rt1015-aif"
32 #define RT1015_DEV0_NAME	"i2c-10EC1015:00"
33 #define RT1015_DEV1_NAME	"i2c-10EC1015:01"
34 
35 void sof_rt1015_dai_link(struct snd_soc_dai_link *link);
36 void sof_rt1015_codec_conf(struct snd_soc_card *card);
37 
38 #define RT1308_CODEC_DAI	"rt1308-aif"
39 #define RT1308_DEV0_NAME	"i2c-10EC1308:00"
40 void sof_rt1308_dai_link(struct snd_soc_dai_link *link);
41 
42 #define RT1019P_CODEC_DAI	"HiFi"
43 #define RT1019P_DEV0_NAME	"RTL1019:00"
44 
45 void sof_rt1019p_dai_link(struct snd_soc_dai_link *link);
46 
47 #endif /* __SOF_REALTEK_COMMON_H */
48