From 84889d0fa6e61451328a0077946105158ea86a25 Mon Sep 17 00:00:00 2001 From: Apelete Seketeli Date: Fri, 14 Feb 2014 14:34:32 +0100 Subject: 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 Signed-off-by: Vinod Koul --- pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcm.c') diff --git a/pcm.c b/pcm.c index 1a5d84b..5381a89 100644 --- a/pcm.c +++ b/pcm.c @@ -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 */ -- cgit v1.2.3