mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
To: "Damien \"tuX\" THEBAULT" <damien.thebault@laposte.net>,
	LKML <linux-kernel@vger.kernel.org>,
	Linux and Kernel Video <video4linux-list@redhat.com>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: Tuner module is too verbose
Date: Tue, 21 Jun 2005 03:11:59 -0300	[thread overview]
Message-ID: <42B7AFAF.7000402@brturbo.com.br> (raw)
In-Reply-To: <1119289192.22634.24.camel@tux.rezid.org>

Damien,

Damien "tuX" THEBAULT wrote:

>I upgraded from my previous kernel (2.6.10-mm1) to 2.6.12-mm1 today.
>
>I have a problem with the "tuner" module : it is printing too many
>messages into the syslog :
>
>"tuner 2-0060: Cmd VIDIOCSCHAN accepted to TV"
>or
>"tuner 2-0060: Cmd VIDIOCGAUDIO accepted to radio"
>
>(about -			  return 0; } else \
>+	26 messages per second, but only when watching TV)
>  
>
    This thing is really strange... 26 msg/sec means a tuner change for
every two video frames! More strange is that tuner is switching from
radio mode to video mode. It is also generating 26 I2C calls to tuner by
second. Maybe you are experiencing some performance troubles with this
application bad behavior.

    Maybe there's a radio application that is competing with your TV app.

>I looked into the module's source code and I was able to disable those
>messages with a little modification (patch included).
>(maybe the same modification is needed when CONFIG_TUNER_MULTI_I2C is
>defined)
>
>I don't know if this is the good way to do this, but I didn't find any
>other way to solve my problem...
>
>PS : I'm not subscribed to the list so please CC me.
>
>--- ./drivers/media/video/tuner-core.old.c	2005-06-20 18:53:12.864742688
>+0200
>+++ ./drivers/media/video/tuner-core.c	2005-06-20 19:24:42.382492328
>+0200
>@@ -201,7 +201,7 @@
> 
> #ifdef CONFIG_TUNER_MULTI_I2C
> #define CHECK_ADDR(tp,cmd,tun)	if (client->addr!=tp) { \
>-			  return 0; } else \
>+			  return 0; } else if (tuner_debug!=0) \
> 			  tuner_info ("Cmd %s accepted to "tun"\n",cmd);
> #define CHECK_MODE(cmd)	if (t->mode == V4L2_TUNER_RADIO) { \
> 		 	CHECK_ADDR(radio_tuner,cmd,"radio") } else \
>
>  
>
    Your patch will help aliviating the verbose problem, but maybe you
should check if every radio apps are turned off before calling video
app, since they share the same resources.

Mauro Chehab.

  reply	other threads:[~2005-06-21  6:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-20 17:39 Damien "tuX" THEBAULT
2005-06-21  6:11 ` Mauro Carvalho Chehab [this message]
2005-06-21 11:10   ` Damien "tuX" THEBAULT

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=42B7AFAF.7000402@brturbo.com.br \
    --to=mchehab@brturbo.com.br \
    --cc=akpm@osdl.org \
    --cc=damien.thebault@laposte.net \
    --cc=linux-kernel@vger.kernel.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®