aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer2array.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-09-08 00:45:05 -0700
committerMax Kellermann <max@duempel.org>2008-09-08 20:31:05 +0200
commit7bd98c08ce149a999c14352762cfe741e591c8fb (patch)
tree209596b6545c78b554208821b2ea66dbeb9cb0d0 /src/buffer2array.c
parentda1e8584585af9c92b92a25c049829b7012af191 (diff)
downloadmpd-7bd98c08ce149a999c14352762cfe741e591c8fb.tar.gz
mpd-7bd98c08ce149a999c14352762cfe741e591c8fb.tar.xz
mpd-7bd98c08ce149a999c14352762cfe741e591c8fb.zip
alsa: optimistically try resuming from suspend
Apparently snd_pcm_hw_params_can_resume() can return false even though my hardware does in fact support resuming. So stop carrying that value in the canResume flag and just try to resume when we're in the suspended state; falling back to snd_pcm_prepare only if resuming fails. libao does something similar on resume, too. While we're at it, use the E() macro which will enable us to have better error reporting. [mk: remove the E() macro stuff]
Diffstat (limited to 'src/buffer2array.c')
0 files changed, 0 insertions, 0 deletions