diff options
author | Mike Isely <isely@pobox.com> | 2007-11-25 23:58:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:02 -0500 |
commit | 78a47101ac0ac75019a740d62c70ccb16ff7c7c1 (patch) | |
tree | a329cea6e4ebb8145d29e076075bad9595af5318 /drivers/media/video/pvrusb2/pvrusb2-hdw.h | |
parent | f66fbd71f24f5f0264bb8526cfb91ea5c6219f50 (diff) |
V4L/DVB (6695): pvrusb2: Implement functions to pass descriptive hardware info
Implement additional pvrusb2 device info table entries for a device
identifier and a device description. Export this information via the
driver's internal API. Make this information available via the sysfs
driver interface. Also propagate this information into the v4l2
capability structure. An app can now retrieve and report a
descriptive string about the particular type of hardware device it is
operating.
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.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.h b/drivers/media/video/pvrusb2/pvrusb2-hdw.h index 205fa03057e6..3ad7a13d6c39 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.h +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.h | |||
@@ -158,6 +158,12 @@ int pvr2_hdw_get_tuner_status(struct pvr2_hdw *,struct v4l2_tuner *); | |||
158 | /* Query device and see if it thinks it is on a high-speed USB link */ | 158 | /* Query device and see if it thinks it is on a high-speed USB link */ |
159 | int pvr2_hdw_is_hsm(struct pvr2_hdw *); | 159 | int pvr2_hdw_is_hsm(struct pvr2_hdw *); |
160 | 160 | ||
161 | /* Return a string token representative of the hardware type */ | ||
162 | const char *pvr2_hdw_get_type(struct pvr2_hdw *); | ||
163 | |||
164 | /* Return a single line description of the hardware type */ | ||
165 | const char *pvr2_hdw_get_desc(struct pvr2_hdw *); | ||
166 | |||
161 | /* Turn streaming on/off */ | 167 | /* Turn streaming on/off */ |
162 | int pvr2_hdw_set_streaming(struct pvr2_hdw *,int); | 168 | int pvr2_hdw_set_streaming(struct pvr2_hdw *,int); |
163 | 169 | ||