Re: [PATCH] tm6000: bugfix analog init for tm6010

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



stefan.ringel@xxxxxxxx wrote:
> From: Stefan Ringel <stefan.ringel@xxxxxxxx>
> 
> - change values in function tm6000_set_fourcc_format
> - disable digital source
> - add vbi and audio init
> 
> Signed-off-by: Stefan Ringel <stefan.ringel@xxxxxxxx>
> ---
>  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
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux