Skip to content

Commit b533ed0

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_da7219: 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 3895aa8 commit b533ed0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sound/soc/intel/boards/sof_da7219.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,8 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
275275
max_98360a_dai_link(ctx->amp_link);
276276
break;
277277
case CODEC_MAX98373:
278-
ctx->amp_link->codecs = max_98373_components;
279-
ctx->amp_link->num_codecs = ARRAY_SIZE(max_98373_components);
280-
ctx->amp_link->init = max_98373_spk_codec_init;
278+
max_98373_dai_link(dev, ctx->amp_link);
279+
281280
if (ctx->da7219.is_jsl_board) {
282281
ctx->amp_link->ops = &max98373_ops; /* use local ops */
283282
} else {

0 commit comments

Comments
 (0)