aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2012-02-20 00:40:56 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-07 15:58:00 -0400
commitaeebb1b3146a70bf02d0115a2be690d856d12e8c (patch)
treee712ddbde6a76495a32d1c7fd41a4bb7eeabfe12
parentc0bb609fdc0b842799d5108aec7fae13b0fd32cd (diff)
[media] pvrusb2: For querystd, start with list of hardware-supported standards
The V4L querystd implementation appears to want to narrow down the list of available standards by starting with a hardware-supported list and then attempting to detect which among those are actually available. Prior to this change in the pvrusb2 driver we started with all possible standards. With this change in place we instead narrow to just the standards that we know the hardware can actually support. For example, this removes the ATSC standards from the list if we aren't dealing with a hybrid device... Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index d882c95c5788..fb828ba1dbbe 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -2867,7 +2867,7 @@ static void pvr2_subdev_set_control(struct pvr2_hdw *hdw, int id,
2867v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw) 2867v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw)
2868{ 2868{
2869 v4l2_std_id std; 2869 v4l2_std_id std;
2870 std = V4L2_STD_ALL; 2870 std = (v4l2_std_id)hdw->std_mask_avail;
2871 v4l2_device_call_all(&hdw->v4l2_dev, 0, 2871 v4l2_device_call_all(&hdw->v4l2_dev, 0,
2872 video, querystd, &std); 2872 video, querystd, &std);
2873 return std; 2873 return std;