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 <[email protected]> Signed-off-by: Brent Lu <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 7873252 commit e895d16

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)