2020-05-01 09:58:50 -05:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2020-03-25 16:32:44 -05:00
|
|
|
/*
|
|
|
|
* Copyright(c) 2020 Intel Corporation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file defines data structures used in Machine Driver for Intel
|
|
|
|
* platforms with Maxim Codecs.
|
|
|
|
*/
|
|
|
|
#ifndef __SOF_MAXIM_COMMON_H
|
|
|
|
#define __SOF_MAXIM_COMMON_H
|
|
|
|
|
|
|
|
#include <sound/soc.h>
|
2024-03-27 11:23:52 -05:00
|
|
|
#include <sound/soc-acpi-intel-ssp-common.h>
|
2020-03-25 16:32:44 -05:00
|
|
|
|
2023-09-15 20:48:36 +08:00
|
|
|
/*
|
|
|
|
* Maxim MAX98373
|
|
|
|
*/
|
2020-03-25 16:32:44 -05:00
|
|
|
#define MAX_98373_CODEC_DAI "max98373-aif1"
|
2023-09-15 20:48:36 +08:00
|
|
|
#define MAX_98373_DEV0_NAME "i2c-" MAX_98373_ACPI_HID ":00"
|
|
|
|
#define MAX_98373_DEV1_NAME "i2c-" MAX_98373_ACPI_HID ":01"
|
2020-03-25 16:32:44 -05:00
|
|
|
|
2024-05-09 11:34:07 -05:00
|
|
|
void max_98373_dai_link(struct device *dev, struct snd_soc_dai_link *link);
|
2021-05-05 11:36:58 -05:00
|
|
|
void max_98373_set_codec_conf(struct snd_soc_card *card);
|
2020-06-25 14:26:20 -05:00
|
|
|
|
2021-11-24 22:04:53 -05:00
|
|
|
/*
|
|
|
|
* Maxim MAX98390
|
|
|
|
*/
|
2023-07-31 18:34:19 +08:00
|
|
|
#define MAX_98390_CODEC_DAI "max98390-aif1"
|
|
|
|
#define MAX_98390_DEV0_NAME "i2c-" MAX_98390_ACPI_HID ":00"
|
|
|
|
#define MAX_98390_DEV1_NAME "i2c-" MAX_98390_ACPI_HID ":01"
|
|
|
|
#define MAX_98390_DEV2_NAME "i2c-" MAX_98390_ACPI_HID ":02"
|
|
|
|
#define MAX_98390_DEV3_NAME "i2c-" MAX_98390_ACPI_HID ":03"
|
|
|
|
|
|
|
|
void max_98390_dai_link(struct device *dev, struct snd_soc_dai_link *link);
|
|
|
|
void max_98390_set_codec_conf(struct device *dev, struct snd_soc_card *card);
|
2021-11-24 22:04:53 -05:00
|
|
|
|
2021-05-05 11:37:03 -05:00
|
|
|
/*
|
2021-07-12 15:32:35 -05:00
|
|
|
* Maxim MAX98357A/MAX98360A
|
2021-05-05 11:37:03 -05:00
|
|
|
*/
|
|
|
|
#define MAX_98357A_CODEC_DAI "HiFi"
|
2023-09-15 20:48:36 +08:00
|
|
|
#define MAX_98357A_DEV0_NAME MAX_98357A_ACPI_HID ":00"
|
|
|
|
#define MAX_98360A_DEV0_NAME MAX_98360A_ACPI_HID ":00"
|
2021-05-05 11:37:03 -05:00
|
|
|
|
|
|
|
void max_98357a_dai_link(struct snd_soc_dai_link *link);
|
2021-07-12 15:32:35 -05:00
|
|
|
void max_98360a_dai_link(struct snd_soc_dai_link *link);
|
2021-05-05 11:37:03 -05:00
|
|
|
|
2020-03-25 16:32:44 -05:00
|
|
|
#endif /* __SOF_MAXIM_COMMON_H */
|