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

Commit 16c2e1fa authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: ice1724: Fix rate setup after resume



The rate isn't restored properly after resume since it's only set up
in hw_params, and not in prepare callback.  For fixing it, put the
corresponding call to resume callback as well.

Reported-and-tested-by: default avatarOndrej Zary <linux@rainbow-software.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0914f796
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2859,7 +2859,12 @@ static int snd_vt1724_resume(struct device *dev)
		ice->set_spdif_clock(ice, 0);
	} else {
		/* internal on-card clock */
		snd_vt1724_set_pro_rate(ice, ice->pro_rate_default, 1);
		int rate;
		if (ice->cur_rate)
			rate = ice->cur_rate;
		else
			rate = ice->pro_rate_default;
		snd_vt1724_set_pro_rate(ice, rate, 1);
	}

	update_spdif_bits(ice, ice->pm_saved_spdif_ctrl);