Ticket #616 (closed defect: fixed)
[PATCH] Recover stream when it's suspended upon rewind
| Reported by: | lkundrak | Owned by: | lennart |
|---|---|---|---|
| Milestone: | 0.9.16 | Component: | module-alsa-* |
| Keywords: | Cc: |
Description
Error from snd_pcm_rewind() might mean we just woke up from suspend and didn't have a chance to try to recover the stream since we didn't write to it in between. Call try_recover() in such cases.
Note that for this to work kernel must return ESTRPIPE instead of EBADF for rewind/forward attempts on suspended streams, so that snd_pcm_recover() can recognize it should snd_pcm_resume() the stream. This is not the case yet (2.6.31-rc5), patch is available.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
