diff options
author | Mike Isely <isely@pobox.com> | 2010-05-14 23:13:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-06-01 00:19:49 -0400 |
commit | 8fd0444817e557568d8bddd77828d9ae0d606e04 (patch) | |
tree | 66600b9963739c20851cc3dec15361a8d53486e7 /drivers/media/video/pvrusb2 | |
parent | 6861800c1512ca8452c5f350a7c0af445ece773b (diff) |
V4L/DVB: pvrusb2: New feature to mark specific hardware support as experimental
This adds a flag in the device attribute structure which can be used
to mark support for a particular device as experimental. Any devices
flagged in this way, when encountered at run-time, will generate a
warning message to the kernel log.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/pvrusb2')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-devattr.h | 5 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.h b/drivers/media/video/pvrusb2/pvrusb2-devattr.h index e5b9594eb5f6..273c8d4b3853 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-devattr.h +++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.h | |||
@@ -177,6 +177,11 @@ struct pvr2_device_desc { | |||
177 | unsigned int flag_has_composite:1; /* Has composite input */ | 177 | unsigned int flag_has_composite:1; /* Has composite input */ |
178 | unsigned int flag_has_svideo:1; /* Has s-video input */ | 178 | unsigned int flag_has_svideo:1; /* Has s-video input */ |
179 | unsigned int flag_fx2_16kb:1; /* 16KB FX2 firmware OK here */ | 179 | unsigned int flag_fx2_16kb:1; /* 16KB FX2 firmware OK here */ |
180 | |||
181 | /* If this driver is considered experimental, i.e. not all aspects | ||
182 | are working correctly and/or it is untested, mark that fact | ||
183 | with this flag. */ | ||
184 | unsigned int flag_is_experimental:1; | ||
180 | }; | 185 | }; |
181 | 186 | ||
182 | extern struct usb_device_id pvr2_device_table[]; | 187 | extern struct usb_device_id pvr2_device_table[]; |
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index d13232d51823..2c3f845c3e5c 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -2459,6 +2459,19 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf, | |||
2459 | hdw,hdw_desc->description); | 2459 | hdw,hdw_desc->description); |
2460 | pvr2_trace(PVR2_TRACE_INFO, "Hardware description: %s", | 2460 | pvr2_trace(PVR2_TRACE_INFO, "Hardware description: %s", |
2461 | hdw_desc->description); | 2461 | hdw_desc->description); |
2462 | if (hdw_desc->flag_is_experimental) { | ||
2463 | pvr2_trace(PVR2_TRACE_INFO, "**********"); | ||
2464 | pvr2_trace(PVR2_TRACE_INFO, | ||
2465 | "WARNING: Support for this device (%s) is" | ||
2466 | " experimental.", hdw_desc->description); | ||
2467 | pvr2_trace(PVR2_TRACE_INFO, | ||
2468 | "Important functionality might not be" | ||
2469 | " entirely working."); | ||
2470 | pvr2_trace(PVR2_TRACE_INFO, | ||
2471 | "Please consider contacting the driver author to" | ||
2472 | " help with further stabilization of the driver."); | ||
2473 | pvr2_trace(PVR2_TRACE_INFO, "**********"); | ||
2474 | } | ||
2462 | if (!hdw) goto fail; | 2475 | if (!hdw) goto fail; |
2463 | 2476 | ||
2464 | init_timer(&hdw->quiescent_timer); | 2477 | init_timer(&hdw->quiescent_timer); |