Skip to content

Commit e895d16

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_da7219: support MAX98357A on cml boards
For cml boards, MAX98357A speaker amplifier is supported by machine driver bxt_da7219_max98357a with sound card name cmlda7219max. Use same name for backward compatibility with existing devices on market. 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-10-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7873252 commit e895d16

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

sound/soc/intel/boards/sof_da7219.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,14 @@ static int audio_probe(struct platform_device *pdev)
339339

340340
/* backward-compatible with existing devices */
341341
switch (ctx->amp_type) {
342+
case CODEC_MAX98357A:
343+
card_name = devm_kstrdup(&pdev->dev, "cmlda7219max",
344+
GFP_KERNEL);
345+
if (!card_name)
346+
return -ENOMEM;
347+
348+
card_da7219.name = card_name;
349+
break;
342350
case CODEC_MAX98390:
343351
card_name = devm_kstrdup(&pdev->dev,
344352
"cml_max98390_da7219",

0 commit comments

Comments
 (0)