aboutsummaryrefslogtreecommitdiff
path: root/pcm.c
diff options
context:
space:
mode:
authorApelete Seketeli <apeletex.seketeli@intel.com>2014-02-14 14:34:32 +0100
committerVinod Koul <vinod.koul@intel.com>2014-08-12 13:56:16 +0530
commit84889d0fa6e61451328a0077946105158ea86a25 (patch)
tree1e0bd4a4b9e29ca9d5a195a86bad9dc9150d257f /pcm.c
parentad80762a3b75e39bb26faf091b203c1d7c49fc05 (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>
Diffstat (limited to 'pcm.c')
-rw-r--r--pcm.c2
1 files changed, 1 insertions, 1 deletions
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 */