ASoC: Intel: sof_da7219: support MAX98390
Add support to Maxim MAX98390 speaker amplifier. Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Brent Lu <brent.lu@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20240426152529.38345-4-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3b3ed47526
commit
b7654a7e21
|
@ -614,6 +614,7 @@ config SND_SOC_INTEL_SOF_DA7219_MACH
|
|||
select SND_SOC_DA7219
|
||||
select SND_SOC_MAX98357A
|
||||
select SND_SOC_MAX98373_I2C
|
||||
select SND_SOC_MAX98390
|
||||
select SND_SOC_DMIC
|
||||
select SND_SOC_INTEL_SOF_BOARD_HELPERS
|
||||
select SND_SOC_INTEL_SOF_MAXIM_COMMON
|
||||
|
|
|
@ -281,6 +281,9 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
|
|||
return -EINVAL;
|
||||
}
|
||||
break;
|
||||
case CODEC_MAX98390:
|
||||
max_98390_dai_link(dev, ctx->amp_link);
|
||||
break;
|
||||
default:
|
||||
dev_err(dev, "invalid amp type %d\n", ctx->amp_type);
|
||||
return -EINVAL;
|
||||
|
@ -352,6 +355,9 @@ static int audio_probe(struct platform_device *pdev)
|
|||
case CODEC_MAX98373:
|
||||
max_98373_set_codec_conf(&card_da7219);
|
||||
break;
|
||||
case CODEC_MAX98390:
|
||||
max_98390_set_codec_conf(&pdev->dev, &card_da7219);
|
||||
break;
|
||||
case CODEC_MAX98360A:
|
||||
case CODEC_NONE:
|
||||
/* no codec conf required */
|
||||
|
|
Loading…
Reference in New Issue