diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-07 17:45:05 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-07 17:54:42 -0700 |
commit | 30a3603f35a3d2a752d601c60b61bddfd4c21ef1 (patch) | |
tree | 6dd06a1bc15a7c973ce1cd99e3efe8a74b69d449 /bs/pkginfo-header.sh | |
parent | bc44454d2b249d80275107dcfca41a20afb48ba9 (diff) | |
download | mpd-30a3603f35a3d2a752d601c60b61bddfd4c21ef1.tar.gz mpd-30a3603f35a3d2a752d601c60b61bddfd4c21ef1.tar.xz mpd-30a3603f35a3d2a752d601c60b61bddfd4c21ef1.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.
Diffstat (limited to 'bs/pkginfo-header.sh')
0 files changed, 0 insertions, 0 deletions