xref: /linux/sound/soc/intel/boards/sof_maxim_common.h (revision 33e02dc69afbd8f1b85a51d74d72f139ba4ca623)
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 Maxim Codecs.
9  */
10 #ifndef __SOF_MAXIM_COMMON_H
11 #define __SOF_MAXIM_COMMON_H
12 
13 #include <sound/soc.h>
14 #include <sound/soc-acpi-intel-ssp-common.h>
15 
16 /*
17  * Maxim MAX98373
18  */
19 #define MAX_98373_CODEC_DAI	"max98373-aif1"
20 #define MAX_98373_DEV0_NAME	"i2c-" MAX_98373_ACPI_HID ":00"
21 #define MAX_98373_DEV1_NAME	"i2c-" MAX_98373_ACPI_HID ":01"
22 
23 void max_98373_dai_link(struct device *dev, struct snd_soc_dai_link *link);
24 void max_98373_set_codec_conf(struct snd_soc_card *card);
25 
26 /*
27  * Maxim MAX98390
28  */
29 #define MAX_98390_CODEC_DAI	"max98390-aif1"
30 #define MAX_98390_DEV0_NAME	"i2c-" MAX_98390_ACPI_HID ":00"
31 #define MAX_98390_DEV1_NAME	"i2c-" MAX_98390_ACPI_HID ":01"
32 #define MAX_98390_DEV2_NAME	"i2c-" MAX_98390_ACPI_HID ":02"
33 #define MAX_98390_DEV3_NAME	"i2c-" MAX_98390_ACPI_HID ":03"
34 
35 void max_98390_dai_link(struct device *dev, struct snd_soc_dai_link *link);
36 void max_98390_set_codec_conf(struct device *dev, struct snd_soc_card *card);
37 
38 /*
39  * Maxim MAX98357A/MAX98360A
40  */
41 #define MAX_98357A_CODEC_DAI	"HiFi"
42 #define MAX_98357A_DEV0_NAME	MAX_98357A_ACPI_HID ":00"
43 #define MAX_98360A_DEV0_NAME	MAX_98360A_ACPI_HID ":00"
44 
45 void max_98357a_dai_link(struct snd_soc_dai_link *link);
46 void max_98360a_dai_link(struct snd_soc_dai_link *link);
47 
48 #endif /* __SOF_MAXIM_COMMON_H */
49