Skip to content

Commit 834c4f9

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_rt5682: use max_98373_dai_link function
Use max_98373_dai_link() function to initialize dai link of maxim max98373 speaker amplifier. No functional change. 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 d304ab5 commit 834c4f9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sound/soc/intel/boards/sof_rt5682.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,10 +591,7 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
591591
max_98360a_dai_link(ctx->amp_link);
592592
break;
593593
case CODEC_MAX98373:
594-
ctx->amp_link->codecs = max_98373_components;
595-
ctx->amp_link->num_codecs = ARRAY_SIZE(max_98373_components);
596-
ctx->amp_link->init = max_98373_spk_codec_init;
597-
ctx->amp_link->ops = &max_98373_ops;
594+
max_98373_dai_link(dev, ctx->amp_link);
598595
break;
599596
case CODEC_MAX98390:
600597
max_98390_dai_link(dev, ctx->amp_link);

0 commit comments

Comments
 (0)