2020-12-03 23:40:10 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
/*
|
|
|
|
* Copyright(c) 2020 Intel Corporation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file defines data structures used in Machine Driver for Intel
|
|
|
|
* platforms with Realtek Codecs.
|
|
|
|
*/
|
|
|
|
#ifndef __SOF_REALTEK_COMMON_H
|
|
|
|
#define __SOF_REALTEK_COMMON_H
|
|
|
|
|
|
|
|
#include <sound/soc.h>
|
2024-03-27 11:23:52 -05:00
|
|
|
#include <sound/soc-acpi-intel-ssp-common.h>
|
2023-09-15 20:48:36 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Realtek ALC1011
|
|
|
|
*/
|
2020-12-03 23:40:10 +08:00
|
|
|
|
|
|
|
#define RT1011_CODEC_DAI "rt1011-aif"
|
2023-09-15 20:48:36 +08:00
|
|
|
#define RT1011_DEV0_NAME "i2c-" RT1011_ACPI_HID ":00"
|
|
|
|
#define RT1011_DEV1_NAME "i2c-" RT1011_ACPI_HID ":01"
|
|
|
|
#define RT1011_DEV2_NAME "i2c-" RT1011_ACPI_HID ":02"
|
|
|
|
#define RT1011_DEV3_NAME "i2c-" RT1011_ACPI_HID ":03"
|
2020-12-03 23:40:10 +08:00
|
|
|
|
2024-04-11 17:03:44 -05:00
|
|
|
void sof_rt1011_dai_link(struct device *dev, struct snd_soc_dai_link *link);
|
|
|
|
void sof_rt1011_codec_conf(struct device *dev, struct snd_soc_card *card);
|
2020-12-03 23:40:10 +08:00
|
|
|
|
2023-09-15 20:48:36 +08:00
|
|
|
/*
|
|
|
|
* Realtek ALC1015 (AUTO)
|
|
|
|
*/
|
2021-03-17 19:08:24 +08:00
|
|
|
#define RT1015P_CODEC_DAI "HiFi"
|
2023-09-15 20:48:36 +08:00
|
|
|
#define RT1015P_DEV0_NAME RT1015P_ACPI_HID ":00"
|
2021-03-17 19:08:24 +08:00
|
|
|
|
|
|
|
void sof_rt1015p_dai_link(struct snd_soc_dai_link *link);
|
|
|
|
void sof_rt1015p_codec_conf(struct snd_soc_card *card);
|
|
|
|
|
2023-09-15 20:48:36 +08:00
|
|
|
/*
|
|
|
|
* Realtek ALC1015 (I2C)
|
|
|
|
*/
|
2021-12-07 13:24:58 -06:00
|
|
|
#define RT1015_CODEC_DAI "rt1015-aif"
|
2023-09-15 20:48:36 +08:00
|
|
|
#define RT1015_DEV0_NAME "i2c-" RT1015_ACPI_HID ":00"
|
|
|
|
#define RT1015_DEV1_NAME "i2c-" RT1015_ACPI_HID ":01"
|
2021-12-07 13:24:58 -06:00
|
|
|
|
2022-09-13 15:49:06 +08:00
|
|
|
void sof_rt1015_dai_link(struct snd_soc_dai_link *link);
|
2021-12-07 13:24:58 -06:00
|
|
|
void sof_rt1015_codec_conf(struct snd_soc_card *card);
|
|
|
|
|
2023-09-15 20:48:36 +08:00
|
|
|
/*
|
|
|
|
* Realtek ALC1308
|
|
|
|
*/
|
2022-03-01 13:49:00 -06:00
|
|
|
#define RT1308_CODEC_DAI "rt1308-aif"
|
2023-09-15 20:48:36 +08:00
|
|
|
#define RT1308_DEV0_NAME "i2c-" RT1308_ACPI_HID ":00"
|
2022-03-01 13:49:00 -06:00
|
|
|
void sof_rt1308_dai_link(struct snd_soc_dai_link *link);
|
|
|
|
|
2023-09-15 20:48:36 +08:00
|
|
|
/*
|
|
|
|
* Realtek ALC1019
|
|
|
|
*/
|
2022-06-06 15:46:21 -05:00
|
|
|
#define RT1019P_CODEC_DAI "HiFi"
|
2023-09-15 20:48:36 +08:00
|
|
|
#define RT1019P_DEV0_NAME RT1019P_ACPI_HID ":00"
|
2022-05-09 12:09:20 -05:00
|
|
|
|
2022-06-06 15:46:21 -05:00
|
|
|
void sof_rt1019p_dai_link(struct snd_soc_dai_link *link);
|
2022-05-09 12:09:20 -05:00
|
|
|
|
2020-12-03 23:40:10 +08:00
|
|
|
#endif /* __SOF_REALTEK_COMMON_H */
|