aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-devattr.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2008-04-22 13:45:42 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:48 -0400
commit40381cb02fb7fc0b46c55e3a71325b5d930580fa (patch)
treea2654ff76b947f1aa3dcee9bc4ad77e7504d022b /drivers/media/video/pvrusb2/pvrusb2-devattr.c
parentc55a97d7538d5f3abbee5486e37e56e896478fbd (diff)
V4L/DVB (7313): pvrusb2: Make LED control into a device-specific attribute
The pvrusb2 driver has used hardcoded logic to control the LED on the device. However this is really Hauppauge-specific behavior. This change defines a new device attribute for LED control and sets things up appropriately for Hauppauge devices. 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-devattr.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-devattr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.c b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
index 1a60591e38b5..638c577e3268 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-devattr.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.c
@@ -61,6 +61,7 @@ static const struct pvr2_device_desc pvr2_device_29xxx = {
61 .flag_has_composite = !0, 61 .flag_has_composite = !0,
62 .flag_has_svideo = !0, 62 .flag_has_svideo = !0,
63 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, 63 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
64 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
64}; 65};
65 66
66 67
@@ -94,6 +95,7 @@ static const struct pvr2_device_desc pvr2_device_24xxx = {
94 .flag_has_composite = !0, 95 .flag_has_composite = !0,
95 .flag_has_svideo = !0, 96 .flag_has_svideo = !0,
96 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, 97 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
98 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
97}; 99};
98 100
99 101
@@ -235,6 +237,7 @@ static const struct pvr2_device_desc pvr2_device_75xxx = {
235 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, 237 .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE,
236 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, 238 .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE,
237 .default_std_mask = V4L2_STD_NTSC_M, 239 .default_std_mask = V4L2_STD_NTSC_M,
240 .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE,
238}; 241};
239 242
240 243