public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Darron Broad <darron@kewl.org>
To: Anders Semb Hermansen <anders@ginandtonic.no>
Cc: linux-dvb@linuxtv.org
Subject: Re: [linux-dvb] HVR-4000 and analogue tv
Date: Wed, 24 Sep 2008 20:09:42 +0100	[thread overview]
Message-ID: <7674.1222283382@kewl.org> (raw)
In-Reply-To: <8C08530B-BAD7-4E83-B1CA-6AB66EE9F53F@ginandtonic.no>

In message <8C08530B-BAD7-4E83-B1CA-6AB66EE9F53F@ginandtonic.no>, Anders Semb Hermansen wrote:

lo

>Den 24. sep.. 2008 kl. 19.20 skrev Darron Broad:
>
><snip>
>
>> <snip>
>>>
>>> Does this mean that mythtv is doing something weird or maybe just
>>> using the v4l api in a different way which the driver cannot handle?
>>
>> This is feasable. I will take a look if I get the time but this
>> is more than likely to be when I have other reasons to look
>> at mythtv so don't expect an immediate response :-)
>>
>
>I did some more investigating.
>
>I thought maybe this had something to do with the tuner, since I got  
>snow. So I enabled debugging for the tuner module (debug=1). What I  
>saw was that when I started watching TV in myth, there was a  
>TUNER_SET_STANDBY after frequency and other things was set. This  
>TUNER_SET_STANDBY did not appear when I was just changing channel (and  
>picture worked).
>
>So I searched the driver for TUNER_STANDBY and found one which I  
>tried. Here is what I did:
>
>diff -r e5ca4534b543 linux/drivers/media/video/cx88/cx88-video.c
>--- a/linux/drivers/media/video/cx88/cx88-video.c       Tue Sep 09  
>08:29:56 2008 -0700
>+++ b/linux/drivers/media/video/cx88/cx88-video.c       Wed Sep 24  
>20:35:46 2008 +0200
>@@ -1152,7 +1152,8 @@
>         file->private_data = NULL;
>         kfree(fh);
>
>-       cx88_call_i2c_clients (dev->core, TUNER_SET_STANDBY, NULL);
>+       printk("Don't set standby mode! TUNER_SET_STANDBY NO SIR!");
>+       //cx88_call_i2c_clients (dev->core, TUNER_SET_STANDBY, NULL);
>
>         return 0;
>  }
>
>
>This fixed it!!
>
>I don't know what side effects this will have. Or if this is caused by  
>wrong use of v4l by mythtv, or driver not implementing it correctly.  
>Those who know the codebase can maybe answer that and come up with a  
>better permanent solution.

I admit I found your fix interesting. In fact, you can reproduce
this using tvtime and cat.

Eg.

> tvtime -d /dev/video0 &
> cat /dev/video0

The problem in mythtv appears to be in OpenV4L2DeviceAsInput(void)
where is opens the video device twice although I have no confirmed it.

cya

--

 // /
{:)==={ Darron Broad <darron@kewl.org>
 \\ \ 


_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

  reply	other threads:[~2008-09-24 19:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24 15:22 [linux-dvb] HVR-4000 and analogue tv Anders Semb Hermansen
2008-09-24 16:18 ` Darron Broad
2008-09-24 17:02   ` Anders Semb Hermansen
2008-09-24 17:20     ` Darron Broad
2008-09-24 18:39       ` Anders Semb Hermansen
2008-09-24 19:09         ` Darron Broad [this message]
2008-09-24 19:31           ` Anders Semb Hermansen
2008-09-24 20:04           ` Janne Grunau
2008-09-24 21:11             ` Darron Broad
2008-09-24 19:28         ` Steven Toth
2008-09-25 23:42           ` Darron Broad
2008-09-26  7:43             ` Anders Semb Hermansen
  -- strict thread matches above, loose matches on Subject: below --
2008-09-29  9:31 Jens.Peder.Terjesen
2008-09-29  9:40 ` Anders Semb Hermansen
2008-09-29 10:31 Jens.Peder.Terjesen

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=7674.1222283382@kewl.org \
    --to=darron@kewl.org \
    --cc=anders@ginandtonic.no \
    --cc=linux-dvb@linuxtv.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox