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: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0914f7961b
commit
16c2e1fae8
|
@ -2859,7 +2859,12 @@ static int snd_vt1724_resume(struct device *dev)
|
||||||
ice->set_spdif_clock(ice, 0);
|
ice->set_spdif_clock(ice, 0);
|
||||||
} else {
|
} else {
|
||||||
/* internal on-card clock */
|
/* 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);
|
update_spdif_bits(ice, ice->pm_saved_spdif_ctrl);
|
||||||
|
|
Loading…
Reference in New Issue