All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: linux-media@vger.kernel.org
Subject: Re: [GIT PATCHES FOR 2.6.37] fix long-standing tm6000 compile warning
Date: Thu, 30 Sep 2010 12:38:37 -0300	[thread overview]
Message-ID: <4CA4AEFD.7090806@redhat.com> (raw)
In-Reply-To: <4f06d6c22359c65faa965a4924a06d0d.squirrel@webmail.xs4all.nl>

Em 30-09-2010 11:32, Hans Verkuil escreveu:
> The following changes since commit e847bbbf9273533c15c6e8aab204ba62c238cf42:
>   Hans Verkuil (1):
>         V4L/DVB: v4l2-common: Move v4l2_find_nearest_format from
> videodev2.h to v4l2-common.h
> 
> are available in the git repository at:
> 
>   ssh://linuxtv.org/git/hverkuil/v4l-dvb.git fixes
> 
> Hans Verkuil (1):
>       tm6000-core.c: fix compile warning

That warning is there for a purpose: it shouldn't be required to re-initialize
the frequency every time analog mode is selected, especially since it takes
some time to set a frequency on tm6000, as the chipset has a broken i2c
implementation and requires some milisseconds after each url sent, otherwise
the device becomes unresponsive.

What happens with tm5600/tm6000 devices (not sure if this affects tm6010) is that,
if the channel has a weak signal, the chip goes to some sleep state, where it
stops receiving the stream. Unfortunately, even after signal return, the stream
doesn't return. So, we need to call the function that changes the channel frequency
just as a way to wake up the device.

This is an ugly hack, and eventually there are some other ways of doing that that
would be faster than what this routine does, but we never discovered.

My hope on keeping this warning is that one day during the driver development,
we would discover the root cause and provide a better fix for it (or when moving
it from staging to drivers/media).

I don't object to remove the warning though, but the better would be to move the
frequency declaration to the beginning of the function, avoiding to have the
block under { }.

> 
>  drivers/staging/tm6000/tm6000-core.c |   13 ++++++++-----
>  1 files changed, 8 insertions(+), 5 deletions(-)
> 
> 


      reply	other threads:[~2010-09-30 15:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-30 14:32 [GIT PATCHES FOR 2.6.37] fix long-standing tm6000 compile warning Hans Verkuil
2010-09-30 15:38 ` Mauro Carvalho Chehab [this message]

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=4CA4AEFD.7090806@redhat.com \
    --to=mchehab@redhat.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    /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.