mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-18 13:31:45 -04:00
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> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://patch.msgid.link/20251217110433.3558136-3-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -330,11 +330,13 @@ config SND_SOC_INTEL_SOF_RT5682_MACH
|
||||
select SND_SOC_RT5645
|
||||
select SND_SOC_RT5682_I2C
|
||||
select SND_SOC_RT5682S
|
||||
select SND_SOC_TAS2781_I2C
|
||||
select SND_SOC_DMIC
|
||||
select SND_SOC_INTEL_HDA_DSP_COMMON
|
||||
select SND_SOC_INTEL_SOF_BOARD_HELPERS
|
||||
select SND_SOC_INTEL_SOF_MAXIM_COMMON
|
||||
select SND_SOC_INTEL_SOF_REALTEK_COMMON
|
||||
select SND_SOC_INTEL_SOF_TI_COMMON
|
||||
select SND_SOC_ACPI_INTEL_MATCH
|
||||
help
|
||||
This adds support for ASoC machine driver for SOF platforms
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "sof_board_helpers.h"
|
||||
#include "sof_maxim_common.h"
|
||||
#include "sof_realtek_common.h"
|
||||
#include "sof_ti_common.h"
|
||||
|
||||
/* Driver-specific board quirks: from bit 0 to 7 */
|
||||
#define SOF_RT5682_MCLK_EN BIT(0)
|
||||
@@ -620,6 +621,9 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
|
||||
ctx->amp_link->init = rt5650_spk_init;
|
||||
ctx->amp_link->ops = &sof_rt5682_ops;
|
||||
break;
|
||||
case CODEC_TAS2563:
|
||||
sof_tas2563_dai_link(ctx->amp_link);
|
||||
break;
|
||||
default:
|
||||
dev_err(dev, "invalid amp type %d\n", ctx->amp_type);
|
||||
return -EINVAL;
|
||||
@@ -767,6 +771,7 @@ static int sof_audio_probe(struct platform_device *pdev)
|
||||
case CODEC_MAX98360A:
|
||||
case CODEC_RT1019P:
|
||||
case CODEC_RT5650:
|
||||
case CODEC_TAS2563:
|
||||
case CODEC_NONE:
|
||||
/* no codec conf required */
|
||||
break;
|
||||
@@ -934,3 +939,4 @@ MODULE_LICENSE("GPL v2");
|
||||
MODULE_IMPORT_NS("SND_SOC_INTEL_SOF_BOARD_HELPERS");
|
||||
MODULE_IMPORT_NS("SND_SOC_INTEL_SOF_MAXIM_COMMON");
|
||||
MODULE_IMPORT_NS("SND_SOC_INTEL_SOF_REALTEK_COMMON");
|
||||
MODULE_IMPORT_NS("SND_SOC_INTEL_SOF_TI_COMMON");
|
||||
|
||||
Reference in New Issue
Block a user