Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50232d62 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: ca0106 - Check ac97 availability at PM



Check the availability of ac97 at PM suspend/resume callbacks.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8df0f707
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1752,6 +1752,7 @@ static int snd_ca0106_suspend(struct pci_dev *pci, pm_message_t state)
	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
	for (i = 0; i < 4; i++)
		snd_pcm_suspend_all(chip->pcm[i]);
	if (chip->details->ac97)
		snd_ac97_suspend(chip->ac97);
	snd_ca0106_mixer_suspend(chip);

@@ -1781,6 +1782,7 @@ static int snd_ca0106_resume(struct pci_dev *pci)

	ca0106_init_chip(chip, 1);

	if (chip->details->ac97)
		snd_ac97_resume(chip->ac97);
	snd_ca0106_mixer_resume(chip);
	if (chip->details->spi_dac) {