Skip to content

Commit 636ca2d

Browse files
davidlin923bardliao
authored andcommitted
ASoC: Intel: sof_rt5682: add tas2563 speaker amp support
This patch adds tas2563 which supports the RT5682 headset codec and TAS2563 speaker amplifier combination on PantherLake platform. Signed-off-by: David Lin <david.lin@intel.com>
1 parent 91dc486 commit 636ca2d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

sound/soc/intel/boards/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,13 @@ config SND_SOC_INTEL_SOF_RT5682_MACH
330330
select SND_SOC_RT5645
331331
select SND_SOC_RT5682_I2C
332332
select SND_SOC_RT5682S
333+
select SND_SOC_TAS2781_I2C
333334
select SND_SOC_DMIC
334335
select SND_SOC_INTEL_HDA_DSP_COMMON
335336
select SND_SOC_INTEL_SOF_BOARD_HELPERS
336337
select SND_SOC_INTEL_SOF_MAXIM_COMMON
337338
select SND_SOC_INTEL_SOF_REALTEK_COMMON
339+
select SND_SOC_INTEL_SOF_TI_COMMON
338340
select SND_SOC_ACPI_INTEL_MATCH
339341
help
340342
This adds support for ASoC machine driver for SOF platforms

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "sof_board_helpers.h"
2828
#include "sof_maxim_common.h"
2929
#include "sof_realtek_common.h"
30+
#include "sof_ti_common.h"
3031

3132
/* Driver-specific board quirks: from bit 0 to 7 */
3233
#define SOF_RT5682_MCLK_EN BIT(0)
@@ -619,6 +620,9 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
619620
ctx->amp_link->init = rt5650_spk_init;
620621
ctx->amp_link->ops = &sof_rt5682_ops;
621622
break;
623+
case CODEC_TAS2563:
624+
sof_tas2563_dai_link(ctx->amp_link);
625+
break;
622626
default:
623627
dev_err(dev, "invalid amp type %d\n", ctx->amp_type);
624628
return -EINVAL;
@@ -766,6 +770,7 @@ static int sof_audio_probe(struct platform_device *pdev)
766770
case CODEC_MAX98360A:
767771
case CODEC_RT1019P:
768772
case CODEC_RT5650:
773+
case CODEC_TAS2563:
769774
case CODEC_NONE:
770775
/* no codec conf required */
771776
break;
@@ -933,3 +938,4 @@ MODULE_LICENSE("GPL v2");
933938
MODULE_IMPORT_NS("SND_SOC_INTEL_SOF_BOARD_HELPERS");
934939
MODULE_IMPORT_NS("SND_SOC_INTEL_SOF_MAXIM_COMMON");
935940
MODULE_IMPORT_NS("SND_SOC_INTEL_SOF_REALTEK_COMMON");
941+
MODULE_IMPORT_NS("SND_SOC_INTEL_SOF_TI_COMMON");

0 commit comments

Comments
 (0)