Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2002 18:58:32 -0800 (PST)
From:      Hijiri Umemoto <hijiri@umemoto.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/36451: (sys/dev/bktr) Japan IF frequency is incorrect
Message-ID:  <200203290258.g2T2wWr74981@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         36451
>Category:       i386
>Synopsis:       (sys/dev/bktr) Japan IF frequency is incorrect
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 28 19:00:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hijiri Umemoto
>Release:        4.5-STABLE
>Organization:
>Environment:
FreeBSD sarah.umemoto.org 4.5-STABLE FreeBSD 4.5-STABLE #13: Thu Mar 28 23:31:40 JST 2002     root@sarah.umemoto.org:/usr/src/sys/compile/VIDEO  i386
>Description:
The "bktr" driver (/usr/src/sys/dev/bktr) doesn't work fine on some TV tuners, video/audio is not exactly tuned on Japanese TV/cable bands. (drifts about 2ch higher.) 

>How-To-Repeat:
Use Japanese domestic model of TV tuner card (such as IO-DATA's GV-BCTV4/PCI), and run "fxtv" (by "jpnbcst" and "NTSC-J" option enabled).
Then, select channel 3, you'll see poor quality of channel 1's picture. 


>Fix:
In the file "bktr_tuner.c", definitions of IF_FREQ (IF frequency) on "jpnbcst" and "jpncable" section is incorrect.

(Japanese TV system uses 58.75MHz as the video carrier frequency.  Many video capture cards for international market deploy multi IF (45.75 for US, 58.75 for Japan, etc.) capable tuners, so they work well even in Japan with original bktr driver.  But my video capture card doesn't do so because it's for Japanese-market-only model which uses single picture IF, 58.75MHz.)

Here below is a patch.

*** bktr_tuner.c.orig   Thu Oct 19 16:33:28 2000
--- bktr_tuner.c        Fri Mar 29 09:39:32 2002
***************
*** 543,554 ****
   *  8: 193.25MHz - 12: 217.25MHz  (VHF)
   * 13: 471.25MHz - 62: 765.25MHz  (UHF)
   *
-  * IF freq: 45.75 mHz
-  *  OR
   * IF freq: 58.75 mHz
   */
  #define OFFSET  6.00
! #define IF_FREQ 45.75
  static int jpnbcst[] = {
        62,     (int)(IF_FREQ * FREQFACTOR),    0,
        13,     (int)(471.25 * FREQFACTOR),     (int)(OFFSET * FREQFACTOR),
--- 543,552 ----
   *  8: 193.25MHz - 12: 217.25MHz  (VHF)
   * 13: 471.25MHz - 62: 765.25MHz  (UHF)
   *
   * IF freq: 58.75 mHz
   */
  #define OFFSET  6.00
! #define IF_FREQ 58.75
  static int jpnbcst[] = {
        62,     (int)(IF_FREQ * FREQFACTOR),    0,
        13,     (int)(471.25 * FREQFACTOR),     (int)(OFFSET * FREQFACTOR),
***************
*** 570,579 ****
   * 22: 165.25MHz
   * 23: 223.25MHz - 63: 463.25MHz
   *
!  * IF freq: 45.75 mHz
   */
  #define OFFSET  6.00
! #define IF_FREQ 45.75
  static int jpncable[] = {
        63,     (int)(IF_FREQ * FREQFACTOR),    0,
        23,     (int)(223.25 * FREQFACTOR),     (int)(OFFSET * FREQFACTOR),
--- 568,577 ----
   * 22: 165.25MHz
   * 23: 223.25MHz - 63: 463.25MHz
   *
!  * IF freq: 58.75 mHz
   */
  #define OFFSET  6.00
! #define IF_FREQ 58.75
  static int jpncable[] = {
        63,     (int)(IF_FREQ * FREQFACTOR),    0,
        23,     (int)(223.25 * FREQFACTOR),     (int)(OFFSET * FREQFACTOR),



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203290258.g2T2wWr74981>