From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: stefan.ringel@arcor.de
Cc: linux-media@vger.kernel.org, d.belimov@gmail.com
Subject: Re: [PATCH] tm6000: bugfix analog init for tm6010
Date: Mon, 03 May 2010 05:03:13 -0300 [thread overview]
Message-ID: <4BDE8341.4030203@redhat.com> (raw)
In-Reply-To: <1272543887-6344-1-git-send-email-stefan.ringel@arcor.de>
stefan.ringel@arcor.de wrote:
> From: Stefan Ringel <stefan.ringel@arcor.de>
>
> - change values in function tm6000_set_fourcc_format
> - disable digital source
> - add vbi and audio init
>
> Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
> ---
> drivers/staging/tm6000/tm6000-core.c | 97 ++++++++++++++++++++++++++++++++-
> 1 files changed, 94 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/tm6000/tm6000-core.c b/drivers/staging/tm6000/tm6000-core.c
> index 0b4dc64..860553f 100644
> --- a/drivers/staging/tm6000/tm6000-core.c
> +++ b/drivers/staging/tm6000/tm6000-core.c
> @@ -157,9 +157,9 @@ void tm6000_set_fourcc_format(struct tm6000_core *dev)
> {
> if (dev->dev_type == TM6010) {
> if (dev->fourcc == V4L2_PIX_FMT_UYVY)
> - tm6000_set_reg(dev, TM6010_REQ07_RC1_TRESHOLD, 0xfc);
> + tm6000_set_reg(dev, TM6010_REQ07_RC1_TRESHOLD, 0xd0);
> else
> - tm6000_set_reg(dev, TM6010_REQ07_RC1_TRESHOLD, 0xfd);
> + tm6000_set_reg(dev, TM6010_REQ07_RC1_TRESHOLD, 0x90);
> } else {
> if (dev->fourcc == V4L2_PIX_FMT_UYVY)
> tm6000_set_reg(dev, TM6010_REQ07_RC1_TRESHOLD, 0xd0);
This is wrong: At least on my tests here, this change is inverting the colors.
Anyway, I just committed a patch fixing it. The write on tm6010 should be on
register 0xcc, and not 0xc1. A copy-and-paste error. I'm lucky that I still
had my original appointments and USB dumps from when I added that code.
I've changed the patch a little bit to touch only on the bits that seem to be
related to video format, as it seems that the same register is also used to
enable digital and audio outputs.
--
Cheers,
Mauro
next prev parent reply other threads:[~2010-05-03 8:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-29 12:24 [PATCH] tm6000: bugfix analog init for tm6010 stefan.ringel
2010-05-03 8:03 ` Mauro Carvalho Chehab [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-04-28 20:57 Stefan Ringel
2010-04-29 12:21 ` Stefan Ringel
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=4BDE8341.4030203@redhat.com \
--to=mchehab@redhat.com \
--cc=d.belimov@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=stefan.ringel@arcor.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.