Path: blob/master/sound/soc/intel/boards/sof_realtek_common.h
26493 views
/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright(c) 2020 Intel Corporation.3*/45/*6* This file defines data structures used in Machine Driver for Intel7* platforms with Realtek Codecs.8*/9#ifndef __SOF_REALTEK_COMMON_H10#define __SOF_REALTEK_COMMON_H1112#include <sound/soc.h>13#include <sound/soc-acpi-intel-ssp-common.h>1415/*16* Realtek ALC101117*/1819#define RT1011_CODEC_DAI "rt1011-aif"20#define RT1011_DEV0_NAME "i2c-" RT1011_ACPI_HID ":00"21#define RT1011_DEV1_NAME "i2c-" RT1011_ACPI_HID ":01"22#define RT1011_DEV2_NAME "i2c-" RT1011_ACPI_HID ":02"23#define RT1011_DEV3_NAME "i2c-" RT1011_ACPI_HID ":03"2425void sof_rt1011_dai_link(struct device *dev, struct snd_soc_dai_link *link);26void sof_rt1011_codec_conf(struct device *dev, struct snd_soc_card *card);2728/*29* Realtek ALC1015 (AUTO)30*/31#define RT1015P_CODEC_DAI "HiFi"32#define RT1015P_DEV0_NAME RT1015P_ACPI_HID ":00"3334void sof_rt1015p_dai_link(struct snd_soc_dai_link *link);35void sof_rt1015p_codec_conf(struct snd_soc_card *card);3637/*38* Realtek ALC1015 (I2C)39*/40#define RT1015_CODEC_DAI "rt1015-aif"41#define RT1015_DEV0_NAME "i2c-" RT1015_ACPI_HID ":00"42#define RT1015_DEV1_NAME "i2c-" RT1015_ACPI_HID ":01"4344void sof_rt1015_dai_link(struct snd_soc_dai_link *link);45void sof_rt1015_codec_conf(struct snd_soc_card *card);4647/*48* Realtek ALC130849*/50#define RT1308_CODEC_DAI "rt1308-aif"51#define RT1308_DEV0_NAME "i2c-" RT1308_ACPI_HID ":00"52void sof_rt1308_dai_link(struct snd_soc_dai_link *link);5354/*55* Realtek ALC101956*/57#define RT1019P_CODEC_DAI "HiFi"58#define RT1019P_DEV0_NAME RT1019P_ACPI_HID ":00"5960void sof_rt1019p_dai_link(struct snd_soc_dai_link *link);6162#endif /* __SOF_REALTEK_COMMON_H */636465