summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttpci')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 7fe27458f..7838c9ab4 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -2643,9 +2643,9 @@ unsigned int dvb_audio_poll(struct file *file, poll_table *wait)
DEB_EE(("av7110: %p\n",av7110));
- if (av7110->playing) {
- poll_wait(file, &av7110->aout.queue, wait);
+ poll_wait(file, &av7110->aout.queue, wait);
+ if (av7110->playing) {
if (dvb_ringbuffer_free(&av7110->aout)>20*1024)
mask |= (POLLOUT | POLLWRNORM);
} else /* if not playing: may play if asked for */
@@ -3153,10 +3153,9 @@ unsigned int dvb_ca_poll (struct file *file, poll_table *wait)
{
struct dvb_device *dvbdev = (struct dvb_device *) file->private_data;
av7110_t *av7110 = (av7110_t *) dvbdev->priv;
- unsigned int mask = 0;
-
dvb_ringbuffer_t *rbuf = &av7110->ci_rbuffer;
dvb_ringbuffer_t *wbuf = &av7110->ci_wbuffer;
+ unsigned int mask = 0;
DEB_EE(("av7110: %p\n",av7110));
@@ -3296,8 +3295,9 @@ unsigned int dvb_video_poll(struct file *file, poll_table *wait)
DEB_EE(("av7110: %p\n",av7110));
- if (av7110->playing) {
- poll_wait(file, &av7110->avout.queue, wait);
+ poll_wait(file, &av7110->avout.queue, wait);
+
+ if (av7110->playing) {
if (FREE_COND)
mask |= (POLLOUT | POLLWRNORM);
} else /* if not playing: may play if asked for */