Skip to content

Commit 7873252

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_da7219: support MAX98357A
Add support to Maxim MAX98357A speaker amplifier. 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 5b093b0 commit 7873252

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sound/soc/intel/boards/sof_da7219.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,9 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
267267

268268
/* codec-specific fields for speaker amplifier */
269269
switch (ctx->amp_type) {
270+
case CODEC_MAX98357A:
271+
max_98357a_dai_link(ctx->amp_link);
272+
break;
270273
case CODEC_MAX98360A:
271274
max_98360a_dai_link(ctx->amp_link);
272275
break;
@@ -393,6 +396,7 @@ static int audio_probe(struct platform_device *pdev)
393396
case CODEC_MAX98390:
394397
max_98390_set_codec_conf(&pdev->dev, &card_da7219);
395398
break;
399+
case CODEC_MAX98357A:
396400
case CODEC_MAX98360A:
397401
case CODEC_NONE:
398402
/* no codec conf required */

0 commit comments

Comments
 (0)