mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Trent Piepho <xyzzy@speakeasy.org>
To: Edgar Toernig <froese@gmx.de>
Cc: v4l-dvb maintainer list <v4l-dvb-maintainer@linuxtv.org>,
	Mauro Carvalho Chehab <mchehab@infradead.org>,
	akpm@osdl.org,
	Linux and Kernel Video <video4linux-list@redhat.com>,
	linux-kernel@vger.kernel.org, alan@redhat.com, torvalds@osdl.org
Subject: Re: [v4l-dvb-maintainer] Re: [PATCH 00/23] V4L/DVB fixes
Date: Tue, 25 Jul 2006 18:00:25 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0607251741350.8253@shell3.speakeasy.net> (raw)
In-Reply-To: <20060726004127.6eab5a9f.froese@gmx.de>

On Wed, 26 Jul 2006, Edgar Toernig wrote:
> I'm still missing the VBI_OFFSET fix.  See:
>
>   http://marc.theaimsgroup.com/?m=114710558215044
>
> Could you consider that patch for the next update and
> IMHO also for 2.6.16.x and 2.6.17.x?

I've put a patch that fixes this in my tree.  Mauro, please pull from
http://linuxtv.org/hg/~tap/v4l-dvb for:

02/02: bttv: Revert VBI_OFFSET to previous value, it works better
http://www.linuxtv.org/hg/~tap/v4l-dvb?cmd=changeset;node=88eaa291cc50;style=gitweb

FYI, contents of patch:
diff -r aaf8b9916bbb -r 88eaa291cc50 linux/drivers/media/video/bt8xx/bttv-vbi.c
--- a/linux/drivers/media/video/bt8xx/bttv-vbi.c        Tue Jul 25 16:37:03 2006
-0700
+++ b/linux/drivers/media/video/bt8xx/bttv-vbi.c        Tue Jul 25 17:51:36 2006
-0700
@@ -31,11 +31,16 @@
 #include <asm/io.h>
 #include "bttvp.h"

-/* Offset from line sync pulse leading edge (0H) in 1 / sampling_rate:
-   bt8x8 /HRESET pulse starts at 0H and has length 64 / fCLKx1 (E|O_VTC
-   HSFMT = 0). VBI_HDELAY (always 0) is an offset from the trailing edge
-   of /HRESET in 1 / fCLKx1, and the sampling_rate tvnorm->Fsc is fCLKx2. */
-#define VBI_OFFSET ((64 + 0) * 2)
+/* Offset from line sync pulse leading edge (0H) to start of VBI capture,
+   in fCLKx2 pixels.  According to the datasheet, VBI capture starts
+   VBI_HDELAY fCLKx1 pixels from the tailing edgeof /HRESET, and /HRESET
+   is 64 fCLKx1 pixels wide.  VBI_HDELAY is set to 0, so this should be
+   (64 + 0) * 2 = 128 fCLKx2 pixels.  But it's not!  The datasheet is
+   Just Plain Wrong.  The real value appears to be different for
+   different revisions of the bt8x8 chips, and to be affected by the
+   horizontal scaling factor.  Experimentally, the value is measured
+   to be about 244.  */
+#define VBI_OFFSET 244

 #define VBI_DEFLINES 16
 #define VBI_MAXLINES 32


  parent reply	other threads:[~2006-07-26  1:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-25 18:03 mchehab
2006-07-25 22:41 ` Edgar Toernig
2006-07-25 23:10   ` [v4l-dvb-maintainer] " Michael Krufky
2006-07-26  1:00   ` Trent Piepho [this message]
2006-07-26  7:49     ` Edgar Toernig
2006-07-26  9:11     ` Alan Cox
2006-07-30  1:25 ` Mauro Carvalho Chehab
2006-07-30  6:02   ` Linus Torvalds
2006-07-30  7:11     ` [v4l-dvb-maintainer] " Trent Piepho
2006-07-30 11:53       ` Mauro Carvalho Chehab
2006-07-30 12:07     ` Mauro Carvalho Chehab
2006-07-30 17:56     ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.58.0607251741350.8253@shell3.speakeasy.net \
    --to=xyzzy@speakeasy.org \
    --cc=akpm@osdl.org \
    --cc=alan@redhat.com \
    --cc=froese@gmx.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=torvalds@osdl.org \
    --cc=v4l-dvb-maintainer@linuxtv.org \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®