diff options
author | Apelete Seketeli <apeletex.seketeli@intel.com> | 2014-02-14 14:34:32 +0100 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-08-12 13:56:16 +0530 |
commit | 84889d0fa6e61451328a0077946105158ea86a25 (patch) | |
tree | 1e0bd4a4b9e29ca9d5a195a86bad9dc9150d257f | |
parent | ad80762a3b75e39bb26faf091b203c1d7c49fc05 (diff) |
Tinyalsa: allow pcm_wait to wait on POLLIN events
Tinyalsa pcm_wait() function does not wait on POLLIN events,
preventing it to be used when recording audio data.
This allows pcm_wait to wait on POLLIN events.
Change-Id: I2e4bd0f4f57415add37213f8785a3602897f2c8a
Signed-off-by: Apelete Seketeli <apeletex.seketeli@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -918,7 +918,7 @@ int pcm_wait(struct pcm *pcm, int timeout) int err; pfd.fd = pcm->fd; - pfd.events = POLLOUT | POLLERR | POLLNVAL; + pfd.events = POLLIN | POLLOUT | POLLERR | POLLNVAL; do { /* let's wait for avail or timeout */ |