mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
fix suspend for alsa sink
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2438 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
f021538d91
commit
74f8a67e98
1 changed files with 4 additions and 1 deletions
|
|
@ -868,6 +868,9 @@ static void sink_update_requested_latency_cb(pa_sink *s) {
|
|||
snd_pcm_sframes_t before;
|
||||
pa_assert(u);
|
||||
|
||||
if (!u->pcm_handle)
|
||||
return;
|
||||
|
||||
before = u->hwbuf_unused_frames;
|
||||
update_sw_params(u);
|
||||
|
||||
|
|
@ -1003,7 +1006,7 @@ static void thread_func(void *userdata) {
|
|||
* we have filled the buffer at least once
|
||||
* completely.*/
|
||||
|
||||
pa_log_debug("Cutting sleep time for the initial iterations by half.");
|
||||
/*pa_log_debug("Cutting sleep time for the initial iterations by half.");*/
|
||||
sleep_usec /= 2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue