From 368ee65696f4eacf61a05aceb224c3d37296f4cc Mon Sep 17 00:00:00 2001 From: Mike Isely Date: Thu, 20 Apr 2006 00:04:40 -0500 Subject: Make NTSC-Mj available in pvrusb2 when hardware reports NTSC-M availability From: Mike Isely PVR USB2 models that are NTSC capable are also able to handle the Japanese variant (according to the model info on the device's white sticker). However tveeprom doesn't report this. Work around this for now (and consider getting tveeprom fixed later). Signed-off-by: Mike Isely --- linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'linux/drivers') diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 6538e886c..350db8dcb 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -1375,6 +1375,13 @@ static void pvr2_hdw_setup_std(struct pvr2_hdw *hdw) std1 = get_default_standard(hdw); + // Devices which are NTSC-M capable are also marked as NTSC-Mj + // capable on the device's sticker. Reflect that fact here, + // because tveeprom doesn't seem to report it. + if (hdw->std_mask_eeprom & V4L2_STD_NTSC_M) { + hdw->std_mask_eeprom |= V4L2_STD_NTSC_M_JP; + } + 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", -- cgit v1.2.3