diff options
author | Mike Isely <isely@pobox.com> | 2006-04-25 19:22:38 -0500 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2006-04-25 19:22:38 -0500 |
commit | 60f073ffa46dc14bcbc82b9c14ff5fb6cc2a5102 (patch) | |
tree | 20a168bd1890b9537ec6135356d4e1e710d8a928 /linux/drivers | |
parent | bec655f69df2e179760e48639daf3cc936d6c6e6 (diff) | |
download | mediapointer-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.c | 41 |
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; |