Skip to content

Commit

Permalink
ASoC: Intel: sof_da7219: disable max98373 speaker pins in late_probe
Browse files Browse the repository at this point in the history
Commit 94d2d08 ("ASoC: Intel: Boards: tgl_max98373: add dai_trigger
function") disables speaker pins in late_probe to allow DSP to enter
low power state. Add same code to sof_da7219 driver.

Signed-off-by: Brent Lu <brent.lu@intel.com>
  • Loading branch information
brentlu authored and plbossart committed May 24, 2024
1 parent e3fb32f commit e429a70
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions sound/soc/intel/boards/sof_da7219.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,19 @@ static void da7219_codec_exit(struct snd_soc_pcm_runtime *rtd)

static int card_late_probe(struct snd_soc_card *card)
{
struct sof_card_private *ctx = snd_soc_card_get_drvdata(card);
struct snd_soc_dapm_context *dapm = &card->dapm;
int err;

if (ctx->amp_type == CODEC_MAX98373) {
/* Disable Left and Right Spk pin after boot */
snd_soc_dapm_disable_pin(dapm, "Left Spk");
snd_soc_dapm_disable_pin(dapm, "Right Spk");
err = snd_soc_dapm_sync(dapm);
if (err < 0)
return err;
}

return sof_intel_board_card_late_probe(card);
}

Expand Down

0 comments on commit e429a70

Please sign in to comment.