Bug 7192

Summary: Noise instead of sound with Pinnacle PCTV Pro when module "bttv" is loaded before "tuner"
Product: v4l-dvb Reporter: Jens Kager (jens.kager)
Component: bt8xxAssignee: Mauro Carvalho Chehab (mchehab)
Status: REJECTED UNREPRODUCIBLE    
Severity: normal CC: bunk, loci, protasnb
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.18 Subsystem:
Regression: --- Bisected commit-id:
Attachments: dmesg output before tuner or bttv are loaded
additional dmesg output when loading modules in order bttv first, tuner second and noise occurs
additional dmesg output when loading modules in order tuner first, bttv second and everything works

Description Jens Kager 2006-09-23 08:42:14 UTC
Most recent kernel where this bug did not occur: Unknown
Distribution: Gentoo
Hardware Environment: Intel Pentium D 820, 1024 MB RAM
Software Environment: Don't know what to write here...
Problem Description:

I have a Pinnacle PCTV Pro TV card. When I load the module "bttv" before the
module "tuner", there is no sound on any channel, just white noise. When loading
the module the other way round (first "tuner", then "bttv"), everything is fine.

Unfortunately I don't know which kernel first showed this behavior. Up to that I
had the modules compiled in - then I had to compile them as modules and load
them in the correct order. It's many months ago - I was reminded of it now 
because seemingly "tda9887" (which I have been using and which behaved the same)
has been merged into "tuner".

In January I got a new machine and moved the sound card from the old machine to
the new one (totally different hardware), and the erroneous behavior stayed the
same.

I am not the only one with this problem, see
http://forums.gentoo.org/viewtopic.php?p=3521271.

Output of lspci concernin the TV adapter:

01:02.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture
(rev 11)
        Subsystem: Pinnacle Systems Inc. PCTV pro (TV + FM stereo receiver)
        Flags: bus master, medium devsel, latency 64, IRQ 20
        Memory at dfffe000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

01:02.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Subsystem: Pinnacle Systems Inc. PCTV pro (TV + FM stereo receiver,
audio section)
        Flags: bus master, medium devsel, latency 64, IRQ 5
        Memory at dffff000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

Steps to reproduce: Load module "bttv", then load module "tuner", start TV
application, hear noise. Unload modules, load "tuner" first, then "bttv", hear
TV sound.
Comment 1 Mauro Carvalho Chehab 2006-09-26 12:51:09 UTC
Can you attach a dmesg output?
Comment 2 Jens Kager 2006-09-26 15:16:56 UTC
Created attachment 9107 [details]
dmesg output before tuner or bttv are loaded
Comment 3 Jens Kager 2006-09-26 15:18:11 UTC
Created attachment 9108 [details]
additional dmesg output when loading modules in order bttv first, tuner second and noise occurs
Comment 4 Jens Kager 2006-09-26 15:19:08 UTC
Created attachment 9109 [details]
additional dmesg output when loading modules in order tuner first, bttv second and everything works
Comment 5 Lorant Nemeth 2007-02-10 00:47:45 UTC
I face the same problem with a Pinnacle PCTV (non Pro) card on Ubuntu Edgy
aswell. The problem occured when I installed Edgy, with previous fairly old
Mandriva version (10.2?) I haven't got this.  I use legacy Ubuntu kernel: Linux
macondo 2.6.17-11-generic #2 SMP Thu Feb 1 19:52:28 UTC 2007 i686 GNU/Linux

If you need more info, just drop me a mail ( loci at crandon dot sch dot bme dot hu)
Comment 6 Lorant Nemeth 2007-05-23 04:29:42 UTC
Hi,

problem is still present in 
2.6.20-15-386 #2 Sun Apr 15 07:34:00 UTC 2007 i686 GNU/Linux with Ubuntu Feisty.

Br,
    Loci
Comment 7 Ivica Grujic 2007-06-18 10:37:46 UTC
same here for kernel 2.6.21-1.3228.fc7 (modified 2.6.21.5 vanilla).
rmmod than modprobe bttv combination solves the problem, but doing this after every restart starting to be annoying.
Comment 8 Natalie Protasevich 2007-06-21 21:55:49 UTC
Any updates on this problem?
(Jens, Ivica, I recommend to test with the latest tree (2.6.22-rc5) and see if the problem still there. It has many fixes from Mauro's tree.)
Thanks.
Comment 9 Lorant Nemeth 2007-11-07 06:50:10 UTC
If you think the data we provided is insufficient, please let me know what info you need as the problem is still present on Ubuntu Gutsy, stock kernel:2.6.22-14-386
Comment 10 Mauro Carvalho Chehab 2007-11-07 07:36:34 UTC
Since nobody answered to this since 2007, Jun, data is insufficient.

There were a lot of changes at tuner module since Jun. Could you please check  if the bug still occurs against the latest development tree, at:

http://linuxtv.org/hg/v4l-dvb
Comment 11 Lorant Nemeth 2007-11-09 10:10:00 UTC
Hi!

Problem still occurs with v4l-dvb-816f256c2973.
Procedure:
- downloaded package
- extracted package
- got kernel source, copy /boot/config... to src dir -> make oldconfig -> make
- linked srcdir to /lib/modules/`uname -r`/build
- cd v4l source dir
- make all
- make install
- reboot
- start tvtime -> only noise
- stop tvtime
-rmmod bt878 bttv tuner
 modprobe tuner
 modprobe bt878
- start tvtime -> sound ok
- stop tvtime
-rmmod bt878 bttv tuner
 modprobe bt878
 modprobe tuner
- start tvtime -> only noise
Comment 12 Lorant Nemeth 2007-12-05 07:11:25 UTC
Any news on this one?