summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2006-04-25 19:22:38 -0500
committerMike Isely <isely@pobox.com>2006-04-25 19:22:38 -0500
commit60f073ffa46dc14bcbc82b9c14ff5fb6cc2a5102 (patch)
tree20a168bd1890b9537ec6135356d4e1e710d8a928 /linux/drivers
parentbec655f69df2e179760e48639daf3cc936d6c6e6 (diff)
downloadmediapointer-dvb-s2-60f073ffa46dc14bcbc82b9c14ff5fb6cc2a5102.tar.gz
mediapointer-dvb-s2-60f073ffa46dc14bcbc82b9c14ff5fb6cc2a5102.tar.bz2
Remove pvrusb2 video standard adjustment logic
From: Mike Isely <isely@pobox.com> Remove logic which tries to infer additional video standards based on what was reported by tveeprom. Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 07bfb7e3b..890aa4a06 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -1399,60 +1399,19 @@ static int pvr2_hdw_check_firmware(struct pvr2_hdw *hdw)
return result == 0;
}
-struct pvr2_std_hack {
- v4l2_std_id pat; // Pattern to match
- v4l2_std_id msk; // Which bits we care about
- v4l2_std_id std; // What additional standards to set
-};
-
-// This is a mapping of additional standards to support if certain
-// standards are already present.
-const static struct pvr2_std_hack std_hacks[] = {
- {
- // Devices which are NTSC-M capable are also marked as
- // NTSC-Mj capable on the device's sticker.
- .pat = V4L2_STD_NTSC_M,
- .std = V4L2_STD_NTSC_M_JP,
- },{
- // Enable PAL-N for PAL-capable devices. One user in
- // Argentina has encountered this.
- .pat = V4L2_STD_PAL_BG|V4L2_STD_PAL_DK|V4L2_STD_PAL_I,
- .std = V4L2_STD_PAL_N|V4L2_STD_PAL_Nc
- }
-};
-
static void pvr2_hdw_setup_std(struct pvr2_hdw *hdw)
{
char buf[40];
unsigned int bcnt;
v4l2_std_id std1,std2;
- unsigned int idx;
std1 = get_default_standard(hdw);
- std2 = 0;
- for (idx = 0; idx < sizeof(std_hacks)/sizeof(std_hacks[0]); idx++) {
- if (std_hacks[idx].msk ?
- ((std_hacks[idx].pat ^ hdw->std_mask_eeprom) &
- std_hacks[idx].msk) :
- (std_hacks[idx].pat & hdw->std_mask_eeprom)) {
- std2 |= std_hacks[idx].std;
- }
- }
-
bcnt = pvr2_std_id_to_str(buf,sizeof(buf),hdw->std_mask_eeprom);
pvr2_trace(PVR2_TRACE_INIT,
"Supported video standard(s) reported by eeprom: %.*s",
bcnt,buf);
- if (std2) {
- bcnt = pvr2_std_id_to_str(buf,sizeof(buf),std2);
- pvr2_trace(PVR2_TRACE_INIT,
- "Based on eeprom list, also supporting: %.*s",
- bcnt,buf);
- hdw->std_mask_eeprom |= std2;
- }
-
hdw->std_mask_avail = hdw->std_mask_eeprom;
std2 = std1 & ~hdw->std_mask_avail;