diff options
author | Mike Isely <isely@pobox.com> | 2008-04-22 13:45:42 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:48 -0400 |
commit | 40381cb02fb7fc0b46c55e3a71325b5d930580fa (patch) | |
tree | a2654ff76b947f1aa3dcee9bc4ad77e7504d022b /drivers/media/video/pvrusb2/pvrusb2-devattr.h | |
parent | c55a97d7538d5f3abbee5486e37e56e896478fbd (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.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-devattr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-devattr.h b/drivers/media/video/pvrusb2/pvrusb2-devattr.h index 4e4798d6139f..ce4004978a92 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-devattr.h +++ b/drivers/media/video/pvrusb2/pvrusb2-devattr.h | |||
@@ -43,6 +43,9 @@ struct pvr2_string_table { | |||
43 | #define PVR2_DIGITAL_SCHEME_HAUPPAUGE 1 | 43 | #define PVR2_DIGITAL_SCHEME_HAUPPAUGE 1 |
44 | #define PVR2_DIGITAL_SCHEME_ONAIR 2 | 44 | #define PVR2_DIGITAL_SCHEME_ONAIR 2 |
45 | 45 | ||
46 | #define PVR2_LED_SCHEME_NONE 0 | ||
47 | #define PVR2_LED_SCHEME_HAUPPAUGE 1 | ||
48 | |||
46 | /* This describes a particular hardware type (except for the USB device ID | 49 | /* This describes a particular hardware type (except for the USB device ID |
47 | which must live in a separate structure due to environmental | 50 | which must live in a separate structure due to environmental |
48 | constraints). See the top of pvrusb2-hdw.c for where this is | 51 | constraints). See the top of pvrusb2-hdw.c for where this is |
@@ -70,6 +73,11 @@ struct pvr2_device_desc { | |||
70 | drivers (search for things which touch this field). */ | 73 | drivers (search for things which touch this field). */ |
71 | unsigned int signal_routing_scheme; | 74 | unsigned int signal_routing_scheme; |
72 | 75 | ||
76 | /* Indicates scheme for controlling device's LED (if any). The | ||
77 | driver will turn on the LED when streaming is underway. This | ||
78 | contains one of PVR2_LED_SCHEME_XXX. */ | ||
79 | unsigned int led_scheme; | ||
80 | |||
73 | /* Control scheme to use if there is a digital tuner. This | 81 | /* Control scheme to use if there is a digital tuner. This |
74 | contains one of PVR2_DIGITAL_SCHEME_XXX. This is an arbitrary | 82 | contains one of PVR2_DIGITAL_SCHEME_XXX. This is an arbitrary |
75 | integer scheme id; its meaning is contained entirely within the | 83 | integer scheme id; its meaning is contained entirely within the |