Skip to content

Commit d304ab5

Browse files
brentlubroonie
authored andcommitted
ASoC: Intel: sof_nau8825: 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 b533ed0 commit d304ab5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sound/soc/intel/boards/sof_nau8825.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,7 @@ sof_card_dai_links_create(struct device *dev, struct snd_soc_card *card,
213213
max_98360a_dai_link(ctx->amp_link);
214214
break;
215215
case CODEC_MAX98373:
216-
ctx->amp_link->codecs = max_98373_components;
217-
ctx->amp_link->num_codecs = ARRAY_SIZE(max_98373_components);
218-
ctx->amp_link->init = max_98373_spk_codec_init;
219-
ctx->amp_link->ops = &max_98373_ops;
216+
max_98373_dai_link(dev, ctx->amp_link);
220217
break;
221218
case CODEC_NAU8318:
222219
nau8318_set_dai_link(ctx->amp_link);

0 commit comments

Comments
 (0)