diff options
author | Kenneth Aafloy <devnull@localhost> | 2004-10-01 03:28:43 +0000 |
---|---|---|
committer | Kenneth Aafloy <devnull@localhost> | 2004-10-01 03:28:43 +0000 |
commit | e25260a46b80a33db6858ac42cc431a626f50e6a (patch) | |
tree | b1e6cf1e19e95af301ee7e389f3a9b5510226223 /linux/drivers/media | |
parent | fd72b37aea79c3cd1fe42881785f6dad5241d64b (diff) | |
download | mediapointer-dvb-s2-e25260a46b80a33db6858ac42cc431a626f50e6a.tar.gz mediapointer-dvb-s2-e25260a46b80a33db6858ac42cc431a626f50e6a.tar.bz2 |
- Fix dvb-ttpci ca write poll.
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_ca.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_ca.c b/linux/drivers/media/dvb/ttpci/av7110_ca.c index 484869fe6..da7e1c541 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_ca.c +++ b/linux/drivers/media/dvb/ttpci/av7110_ca.c @@ -226,10 +226,13 @@ static unsigned int dvb_ca_poll (struct file *file, poll_table *wait) dprintk(8, "av7110:%p\n",av7110); poll_wait(file, &rbuf->queue, wait); + poll_wait(file, &wbuf->queue, wait); + if (!dvb_ringbuffer_empty(rbuf)) - mask |= POLLIN; - if (dvb_ringbuffer_avail(wbuf) > 1024) - mask |= POLLOUT; + mask |= (POLLIN | POLLRDNORM); + + if (dvb_ringbuffer_free(wbuf) > 1024) + mask |= (POLLOUT | POLLWRNORM); return mask; } |