xref: /linux/sound/soc/intel/boards/sof_maxim_common.h (revision 33e02dc69afbd8f1b85a51d74d72f139ba4ca623)
1e149ca29SPierre-Louis Bossart /* SPDX-License-Identifier: GPL-2.0-only */
2e2e404a6SSathyanarayana Nujella /*
3e2e404a6SSathyanarayana Nujella  * Copyright(c) 2020 Intel Corporation.
4e2e404a6SSathyanarayana Nujella  */
5e2e404a6SSathyanarayana Nujella 
6e2e404a6SSathyanarayana Nujella /*
7e2e404a6SSathyanarayana Nujella  * This file defines data structures used in Machine Driver for Intel
8e2e404a6SSathyanarayana Nujella  * platforms with Maxim Codecs.
9e2e404a6SSathyanarayana Nujella  */
10e2e404a6SSathyanarayana Nujella #ifndef __SOF_MAXIM_COMMON_H
11e2e404a6SSathyanarayana Nujella #define __SOF_MAXIM_COMMON_H
12e2e404a6SSathyanarayana Nujella 
13e2e404a6SSathyanarayana Nujella #include <sound/soc.h>
14bd1222adSBrent Lu #include <sound/soc-acpi-intel-ssp-common.h>
15e2e404a6SSathyanarayana Nujella 
1602a204ddSBrent Lu /*
1702a204ddSBrent Lu  * Maxim MAX98373
1802a204ddSBrent Lu  */
19e2e404a6SSathyanarayana Nujella #define MAX_98373_CODEC_DAI	"max98373-aif1"
2002a204ddSBrent Lu #define MAX_98373_DEV0_NAME	"i2c-" MAX_98373_ACPI_HID ":00"
2102a204ddSBrent Lu #define MAX_98373_DEV1_NAME	"i2c-" MAX_98373_ACPI_HID ":01"
22e2e404a6SSathyanarayana Nujella 
23*3895aa82SBrent Lu void max_98373_dai_link(struct device *dev, struct snd_soc_dai_link *link);
249c5046e4SPierre-Louis Bossart void max_98373_set_codec_conf(struct snd_soc_card *card);
25be82e888SNaveen Manohar 
26a21515b5SBrent Lu /*
27f316c9d9SMac Chiang  * Maxim MAX98390
28f316c9d9SMac Chiang  */
29f316c9d9SMac Chiang #define MAX_98390_CODEC_DAI	"max98390-aif1"
3036eb9868SBrent Lu #define MAX_98390_DEV0_NAME	"i2c-" MAX_98390_ACPI_HID ":00"
3136eb9868SBrent Lu #define MAX_98390_DEV1_NAME	"i2c-" MAX_98390_ACPI_HID ":01"
3236eb9868SBrent Lu #define MAX_98390_DEV2_NAME	"i2c-" MAX_98390_ACPI_HID ":02"
3336eb9868SBrent Lu #define MAX_98390_DEV3_NAME	"i2c-" MAX_98390_ACPI_HID ":03"
34f316c9d9SMac Chiang 
3536eb9868SBrent Lu void max_98390_dai_link(struct device *dev, struct snd_soc_dai_link *link);
3636eb9868SBrent Lu void max_98390_set_codec_conf(struct device *dev, struct snd_soc_card *card);
37f316c9d9SMac Chiang 
38f316c9d9SMac Chiang /*
3907acee58SBrent Lu  * Maxim MAX98357A/MAX98360A
40a21515b5SBrent Lu  */
41a21515b5SBrent Lu #define MAX_98357A_CODEC_DAI	"HiFi"
4202a204ddSBrent Lu #define MAX_98357A_DEV0_NAME	MAX_98357A_ACPI_HID ":00"
4302a204ddSBrent Lu #define MAX_98360A_DEV0_NAME	MAX_98360A_ACPI_HID ":00"
44a21515b5SBrent Lu 
45a21515b5SBrent Lu void max_98357a_dai_link(struct snd_soc_dai_link *link);
4607acee58SBrent Lu void max_98360a_dai_link(struct snd_soc_dai_link *link);
47a21515b5SBrent Lu 
48e2e404a6SSathyanarayana Nujella #endif /* __SOF_MAXIM_COMMON_H */
49