diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-08 00:45:05 -0700 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-08 20:31:05 +0200 |
commit | 7bd98c08ce149a999c14352762cfe741e591c8fb (patch) | |
tree | 209596b6545c78b554208821b2ea66dbeb9cb0d0 /src/inputPlugins/_flac_common.c | |
parent | da1e8584585af9c92b92a25c049829b7012af191 (diff) | |
download | mpd-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/inputPlugins/_flac_common.c')
0 files changed, 0 insertions, 0 deletions