diff options
author | Brent Lu <brent.lu@intel.com> | 2020-12-03 23:40:10 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-12-04 23:26:35 +0000 |
commit | aa6cc97c0ac31c668afc7027bcf2bdb0fe4610fe (patch) | |
tree | b594e2c3b013732290c35ddf1261182df5804e14 /sound/soc/intel/boards/sof_realtek_common.h | |
parent | 29275309b0e32bb838d67158c6b6e687275f43e9 (diff) | |
download | linux-aa6cc97c0ac31c668afc7027bcf2bdb0fe4610fe.tar.gz linux-aa6cc97c0ac31c668afc7027bcf2bdb0fe4610fe.tar.bz2 linux-aa6cc97c0ac31c668afc7027bcf2bdb0fe4610fe.zip |
ASoC: intel: sof_rt5682: Add support for tgl_rt1011_rt5682
This patch adds the driver data for two rt1011 speaker amplifiers on
SSP1 and rt5682 on SSP0 for TGL platform. DAI format for rt1011 is
leveraged from cml_rt1011_rt5682 which is 4-slot tdm with 100fs bclk.
Signed-off-by: Brent Lu <brent.lu@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20201203154010.29464-1-brent.lu@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/sof_realtek_common.h')
-rw-r--r-- | sound/soc/intel/boards/sof_realtek_common.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/sof_realtek_common.h b/sound/soc/intel/boards/sof_realtek_common.h new file mode 100644 index 000000000000..87cb3812b926 --- /dev/null +++ b/sound/soc/intel/boards/sof_realtek_common.h @@ -0,0 +1,24 @@ +/* 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> + +#define RT1011_CODEC_DAI "rt1011-aif" +#define RT1011_DEV0_NAME "i2c-10EC1011:00" +#define RT1011_DEV1_NAME "i2c-10EC1011:01" +#define RT1011_DEV2_NAME "i2c-10EC1011:02" +#define RT1011_DEV3_NAME "i2c-10EC1011:03" + +void sof_rt1011_dai_link(struct snd_soc_dai_link *link); +void sof_rt1011_codec_conf(struct snd_soc_card *card); + +#endif /* __SOF_REALTEK_COMMON_H */ |