aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-12-02 21:51:34 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:03:06 -0500
commit6a540254966f8a01de0f7c78a27db17458c2d8f5 (patch)
treea18a62aa65b78b8fcbdfdbb3c3ce94a3a8bfa794 /drivers/media/video/pvrusb2/pvrusb2-hdw.c
parentea2562d94fade3d6ee9b22ed5addbbdba697d22a (diff)
V4L/DVB (6705): pvrusb2: Implement default standard selection based on device type
This adds a default video standard setting to the pvr2_device_desc structure for describing device types. With this change it is possible to set a reasonable default standard based on device type. Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index a45721f7884..08b513b6014 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -1439,8 +1439,12 @@ static v4l2_std_id get_default_standard(struct pvr2_hdw *hdw)
1439 int tp = 0; 1439 int tp = 0;
1440 if ((unit_number >= 0) && (unit_number < PVR_NUM)) { 1440 if ((unit_number >= 0) && (unit_number < PVR_NUM)) {
1441 tp = video_std[unit_number]; 1441 tp = video_std[unit_number];
1442 if (tp) return tp;
1442 } 1443 }
1443 return tp; 1444 if (hdw->hdw_desc->default_std_mask) {
1445 return hdw->hdw_desc->default_std_mask;
1446 }
1447 return 0;
1444} 1448}
1445 1449
1446 1450