diff options
author | Mike Isely <isely@pobox.com> | 2007-11-26 00:00:51 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:03 -0500 |
commit | 56dcbfa0d5a46f137df5047ae8f3aab30f59954e (patch) | |
tree | b8e9cc1eab838353acfe6fe01a5f0713152ffb1c | |
parent | 78a47101ac0ac75019a740d62c70ccb16ff7c7c1 (diff) |
V4L/DVB (6696): pvrusb2: Miscellaneous tweaks for controlling tuner type and video standard
Correctly mark when a tuner type is set. Report more faithfully
information about known supported device video standards.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-eeprom.c | 1 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-eeprom.c b/drivers/media/video/pvrusb2/pvrusb2-eeprom.c index 45cbca0143ca..5ef005947b04 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-eeprom.c +++ b/drivers/media/video/pvrusb2/pvrusb2-eeprom.c | |||
@@ -144,6 +144,7 @@ int pvr2_eeprom_analyze(struct pvr2_hdw *hdw) | |||
144 | trace_eeprom("serial_number=%d",tvdata.serial_number); | 144 | trace_eeprom("serial_number=%d",tvdata.serial_number); |
145 | trace_eeprom("rev_str=%s",tvdata.rev_str); | 145 | trace_eeprom("rev_str=%s",tvdata.rev_str); |
146 | hdw->tuner_type = tvdata.tuner_type; | 146 | hdw->tuner_type = tvdata.tuner_type; |
147 | hdw->tuner_updated = !0; | ||
147 | hdw->serial_number = tvdata.serial_number; | 148 | hdw->serial_number = tvdata.serial_number; |
148 | hdw->std_mask_eeprom = tvdata.tuner_formats; | 149 | hdw->std_mask_eeprom = tvdata.tuner_formats; |
149 | 150 | ||
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 4ffaf3faff5b..6a7b9af55e43 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -1093,7 +1093,10 @@ static int pvr2_upload_firmware1(struct pvr2_hdw *hdw) | |||
1093 | 1093 | ||
1094 | if (!hdw->hdw_desc->fx2_firmware.cnt) { | 1094 | if (!hdw->hdw_desc->fx2_firmware.cnt) { |
1095 | hdw->fw1_state = FW1_STATE_OK; | 1095 | hdw->fw1_state = FW1_STATE_OK; |
1096 | return 0; | 1096 | pvr2_trace(PVR2_TRACE_ERROR_LEGS, |
1097 | "Connected device type defines" | ||
1098 | " no firmware to upload; ignoring firmware"); | ||
1099 | return -ENOTTY; | ||
1097 | } | 1100 | } |
1098 | 1101 | ||
1099 | hdw->fw1_state = FW1_STATE_FAILED; // default result | 1102 | hdw->fw1_state = FW1_STATE_FAILED; // default result |
@@ -1524,7 +1527,8 @@ static void pvr2_hdw_setup_std(struct pvr2_hdw *hdw) | |||
1524 | 1527 | ||
1525 | bcnt = pvr2_std_id_to_str(buf,sizeof(buf),hdw->std_mask_eeprom); | 1528 | bcnt = pvr2_std_id_to_str(buf,sizeof(buf),hdw->std_mask_eeprom); |
1526 | pvr2_trace(PVR2_TRACE_STD, | 1529 | pvr2_trace(PVR2_TRACE_STD, |
1527 | "Supported video standard(s) reported by eeprom: %.*s", | 1530 | "Supported video standard(s) reported available" |
1531 | " in hardware: %.*s", | ||
1528 | bcnt,buf); | 1532 | bcnt,buf); |
1529 | 1533 | ||
1530 | hdw->std_mask_avail = hdw->std_mask_eeprom; | 1534 | hdw->std_mask_avail = hdw->std_mask_eeprom; |
@@ -1682,9 +1686,9 @@ static void pvr2_hdw_setup_low(struct pvr2_hdw *hdw) | |||
1682 | pvr2_trace(PVR2_TRACE_INIT, | 1686 | pvr2_trace(PVR2_TRACE_INIT, |
1683 | "pvr2_hdw_setup: Tuner type overridden to %d", | 1687 | "pvr2_hdw_setup: Tuner type overridden to %d", |
1684 | hdw->tuner_type); | 1688 | hdw->tuner_type); |
1689 | hdw->tuner_updated = !0; | ||
1685 | } | 1690 | } |
1686 | 1691 | ||
1687 | hdw->tuner_updated = !0; | ||
1688 | pvr2_i2c_core_check_stale(hdw); | 1692 | pvr2_i2c_core_check_stale(hdw); |
1689 | hdw->tuner_updated = 0; | 1693 | hdw->tuner_updated = 0; |
1690 | 1694 | ||