diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-02 18:34:28 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-02 18:34:28 -0200 |
commit | 3b82f5e352df73dbfba4c205e5a247749c4f21c3 (patch) | |
tree | 50f108f0865207e595ea84301acdfbaa3e297d26 | |
parent | 5dd791e743207ae2cfc2711a7a2e882a307b9f5a (diff) | |
download | mediapointer-dvb-s2-3b82f5e352df73dbfba4c205e5a247749c4f21c3.tar.gz mediapointer-dvb-s2-3b82f5e352df73dbfba4c205e5a247749c4f21c3.tar.bz2 |
Missing v4l2_prio_close in radio_release
From: Udo Steinberg <udo@hypervisor.org>
The radio_release function of the BTTV driver is missing a call to
v4l2_prio_close. As a result, after the radio device has been opened at
least once (e.g., by HAL during bootup), v4l2_priority will never drop below
V4L2_PRIORITY_INTERACTIVE again. With the following patch against 2.6.28,
applications that run with V4L2_PRIORITY_BACKGROUND are able to open devices
again. Previous Linux versions are affected as well.
Signed-off-by: Udo Steinberg <udo@hypervisor.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | linux/drivers/media/video/bt8xx/bttv-driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttv-driver.c b/linux/drivers/media/video/bt8xx/bttv-driver.c index 690e09b91..c02c0ec80 100644 --- a/linux/drivers/media/video/bt8xx/bttv-driver.c +++ b/linux/drivers/media/video/bt8xx/bttv-driver.c @@ -3500,6 +3500,7 @@ static int radio_release(struct file *file) struct bttv *btv = fh->btv; struct rds_command cmd; + v4l2_prio_close(&btv->prio,&fh->prio); file->private_data = NULL; kfree(fh); |