diff options
author | Mike Isely <isely@pobox.com> | 2008-02-09 00:02:57 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2008-02-09 00:02:57 -0600 |
commit | 68b4313913b7abb511a7d1fd565f8fb52e04d173 (patch) | |
tree | 614f3d7dba1a35476c358371495aef49f295c5e9 /linux/drivers/media/video/pvrusb2/pvrusb2-devattr.c | |
parent | 492871136f3dbe02e441ad5992c20e8d2a529678 (diff) | |
download | mediapointer-dvb-s2-68b4313913b7abb511a7d1fd565f8fb52e04d173.tar.gz mediapointer-dvb-s2-68b4313913b7abb511a7d1fd565f8fb52e04d173.tar.bz2 |
pvrusb2: Make LED control into a device-specific attribute
From: Mike Isely <isely@pobox.com>
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>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-devattr.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-devattr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-devattr.c b/linux/drivers/media/video/pvrusb2/pvrusb2-devattr.c index e1dad8699..da17554e7 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-devattr.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-devattr.c @@ -61,6 +61,7 @@ static const struct pvr2_device_desc pvr2_device_29xxx = { .flag_has_composite = !0, .flag_has_svideo = !0, .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, + .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, }; @@ -94,6 +95,7 @@ static const struct pvr2_device_desc pvr2_device_24xxx = { .flag_has_composite = !0, .flag_has_svideo = !0, .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, + .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, }; @@ -200,6 +202,7 @@ static const struct pvr2_device_desc pvr2_device_75xxx = { .signal_routing_scheme = PVR2_ROUTING_SCHEME_HAUPPAUGE, .digital_control_scheme = PVR2_DIGITAL_SCHEME_HAUPPAUGE, .default_std_mask = V4L2_STD_NTSC_M, + .led_scheme = PVR2_LED_SCHEME_HAUPPAUGE, }; |