]> git.proxmox.com Git - qemu.git/commit - audio/alsaaudio.c
alsa: add host suspend/resume support
authorBjørn Mork <bjorn@mork.no>
Thu, 30 Jul 2009 07:44:26 +0000 (09:44 +0200)
committermalc <av1474@comtv.ru>
Thu, 30 Jul 2009 10:45:50 +0000 (14:45 +0400)
commit866358211d8398823e72528daaa810eef49be8c5
tree8130d8279e1157e29646ef6ab7ba296987b415df
parent4c955388572068c57bb8cd205b61fa5dfa1a84f1
alsa: add host suspend/resume support

Both input and output streams may be in SND_PCM_STATE_SUSPENDED
after the host is suspended and resumed, meaning "Hardware is
suspended".  snd_pcm_readi() and snd_pcm_writei() will return
-ESTRPIPE if called while the stream is in this state.

Call snd_pcm_resume() to enable audio output and capture after
host resume.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: malc <av1474@comtv.ru>
audio/alsaaudio.c