V4L/DVB (5058): Pvrusb2: bug fix involving switch into radio mode
authorMike Isely <isely@pobox.com>
Sat, 30 Dec 2006 21:30:12 +0000 (18:30 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:35 +0000 (13:34 -0200)
When the input is switched by opening /dev/radioX, we must also commit
that change into the driver core.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-v4l2.c

index 7a8b34dbc3634f2e45bec03108e05e0ea0aa63b3..8b9089cc32fed4fb637bc31789783e50e39ea6eb 100644 (file)
@@ -921,6 +921,7 @@ static int pvr2_v4l2_open(struct inode *inode, struct file *file)
                        pvr2_ctrl_set_value(
                                pvr2_hdw_get_ctrl_by_id(hdw,PVR2_CID_INPUT),
                                PVR2_CVAL_INPUT_RADIO);
+                       pvr2_hdw_commit_ctl(hdw);
                }
 
                fhp->vnext = NULL;