aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 9916cf32494d..acf651e01f94 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -1008,6 +1008,13 @@ unsigned long pvr2_hdw_get_sn(struct pvr2_hdw *hdw)
1008 return hdw->serial_number; 1008 return hdw->serial_number;
1009} 1009}
1010 1010
1011
1012const char *pvr2_hdw_get_bus_info(struct pvr2_hdw *hdw)
1013{
1014 return hdw->bus_info;
1015}
1016
1017
1011unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *hdw) 1018unsigned long pvr2_hdw_get_cur_freq(struct pvr2_hdw *hdw)
1012{ 1019{
1013 return hdw->freqSelector ? hdw->freqValTelevision : hdw->freqValRadio; 1020 return hdw->freqSelector ? hdw->freqValTelevision : hdw->freqValRadio;
@@ -2105,6 +2112,11 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf,
2105 hdw->usb_intf = intf; 2112 hdw->usb_intf = intf;
2106 hdw->usb_dev = interface_to_usbdev(intf); 2113 hdw->usb_dev = interface_to_usbdev(intf);
2107 2114
2115 scnprintf(hdw->bus_info,sizeof(hdw->bus_info),
2116 "usb %s address %d",
2117 hdw->usb_dev->dev.bus_id,
2118 hdw->usb_dev->devnum);
2119
2108 ifnum = hdw->usb_intf->cur_altsetting->desc.bInterfaceNumber; 2120 ifnum = hdw->usb_intf->cur_altsetting->desc.bInterfaceNumber;
2109 usb_set_interface(hdw->usb_dev,ifnum,0); 2121 usb_set_interface(hdw->usb_dev,ifnum,0);
2110 2122
@@ -3275,7 +3287,9 @@ int pvr2_hdw_register_access(struct pvr2_hdw *hdw,
3275 mutex_lock(&hdw->i2c_list_lock); do { 3287 mutex_lock(&hdw->i2c_list_lock); do {
3276 list_for_each(item,&hdw->i2c_clients) { 3288 list_for_each(item,&hdw->i2c_clients) {
3277 cp = list_entry(item,struct pvr2_i2c_client,list); 3289 cp = list_entry(item,struct pvr2_i2c_client,list);
3278 if (!v4l2_chip_match_i2c_client(cp->client, req.match_type, req.match_chip)) { 3290 if (!v4l2_chip_match_i2c_client(
3291 cp->client,
3292 req.match_type, req.match_chip)) {
3279 continue; 3293 continue;
3280 } 3294 }
3281 stat = pvr2_i2c_client_cmd( 3295 stat = pvr2_i2c_client_cmd(