Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pinnacle PCTV Rave tuner not working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 371

PostPosted: Fri Mar 29, 2019 1:54 pm    Post subject: Pinnacle PCTV Rave tuner not working Reply with quote

dmesg : http://dpaste.com/349KMWQ
lsmod : http://dpaste.com/2Z8S9VP
lspci : http://dpaste.com/2WFCZM2
/usr/src/linux-4.9.158-gentoo/.config : http://dpaste.com/0RXEMX2

I have a Pinnacle PCTV Rave card:
Code:
03:06.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11)
03:06.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11)


This gives the following result in dmesg:
Code:
[   13.028000] bttv: driver version 0.9.19 loaded
[   13.028019] bttv: using 8 buffers with 2080k (520 pages) each for capture
[   13.028066] bttv: Bt8xx card found (0)
[   13.028349] bttv: 0: Bt878 (rev 17) at 0000:03:06.0, irq: 18, latency: 64, mmio: 0xfbffe000
[   13.028361] bttv: 0: detected: Pinnacle PCTV [card=39], PCI subsystem ID is 11bd:ff12
[   13.028363] bttv: 0: using: Pinnacle PCTV Studio/Rave [card=39,autodetected]
[   13.028485] bttv: 0: i2c: checking for MSP34xx @ 0x80... not found
[   13.029168] bttv: 0: miro: id=25 tuner=1 radio=no stereo=no
[   13.029169] bttv: 0: tuner type=1
[   13.745422] bttv: 0: audio absent, no audio device found!
[b][   13.850098] TUNER: Unable to find symbol tea5767_autodetection()
[   13.850104] tuner 5-0060: Tuner -1 found with type(s) Radio TV.
[   13.858043] DVB: Unable to find symbol simple_tuner_attach()
[/b][   13.858049] tuner 5-0060: Tuner has no way to set tv freq
[   13.858249] bttv: 0: Setting PLL: 28636363 => 35468950 (needs up to 100ms)
[   13.883045] bttv: PLL set ok
[b][   13.883052] tuner 5-0060: Tuner has no way to set tv freq[/b]
[   13.883151] bttv: 0: registered device video0
[   13.883184] bttv: 0: registered device vbi0


As can be seen, the kernel does not find certain symbols, even though the modules have been included with the kernel 4.9.158. Is there something I should take into account when compiling the kernel ?
I don't know if these missing symbols are the cause, but I also get 'tuner 5-0060: Tuner has no way to set tv freq'

One thing I tried was
for i in $(seq 1 50); do modprobe -r btttv && modprobe bttv tuner=$i && dmesg; done
and I got the same dmesg results for all tuner values, except for value 4, where it explicitly said 'tuner absent'
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5413

PostPosted: Fri Mar 29, 2019 3:29 pm    Post subject: Reply with quote

any reason why you are using such old kernel? it isn't even the most latest stable 4.9.x (latest stable 4.9.x is 4.9.162-r1, latest stable kernel is 4.19.27-r1)
usually, such errors are corrected in newer kernel.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44171
Location: 56N 3W

PostPosted: Fri Mar 29, 2019 6:01 pm    Post subject: Reply with quote

javeree,

From grepping the kernel,
Code:
./drivers/media/tuners/tea5767.c:EXPORT_SYMBOL_GPL(tea5767_autodetection);

your symbol is enabled by
Code:
CONFIG_MEDIA_TUNER_TEA5767=m


dmesg says
Code:
[    0.000000] Linux version 4.9.158-gentoo (root@Bacchus) (gcc version 7.3.0 (Gentoo 7.3.0-r3 p1.4) ) #4 SMP Fri Mar 29 12:17:00 CET 2019
so your kernel was built today and there are no error s about missing firmware.

Code:
[   13.850098] TUNER: Unable to find symbol tea5767_autodetection()
[   13.850104] tuner 5-0060: Tuner -1 found with type(s) Radio TV.
[   13.858043] DVB: Unable to find symbol simple_tuner_attach()
suggests that your module(s) are not loaded or the kernel and modules don't match.
Code:
Fri Mar 29 12:17:00 CET 2019
is the build time of the running kernel. Does that look right?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 371

PostPosted: Fri Mar 29, 2019 7:36 pm    Post subject: Reply with quote

@Neddy
Yes the compile time is correct. I tried to compile the kernel both with and without the module.
Even when compiled without (#CONFIG_MEDIA_TUNER_TEA5767 is not set), I get the complaint about the symbol, which is even stranger: why would the kernel look for a symbol of a module that is not built in ?
I am now going to try and not compile it as a module, but build it in the kernel itself, and see what is the result.


@Daggy
I wanted to upgrade to 4.14.83 some time ago, but encountered a problem booting the new kernel, even though that kernel was purely compiled with make oldconfig and accepting all defaults. See my separate issue here:
https://forums.gentoo.org/viewtopic-t-1094938-highlight-.html
Maybe this person encountered the same issue: https://forums.gentoo.org/viewtopic-t-1094940-highlight-.html

After trying with the module built-in, I'll try an upgrade to 4.9.162-r1
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44171
Location: 56N 3W

PostPosted: Fri Mar 29, 2019 7:59 pm    Post subject: Reply with quote

javeree,

Something that is loaded needs that symbol. When that something tries to start, it looks around for the symbol and can't find it, then it complains in dmesg and won't work properly.
Code:
/usr/src/linux $ grep tea5767_autodetection -R
drivers/media/tuners/tea5767.h:extern int tea5767_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr);
drivers/media/tuners/tea5767.h:static inline int tea5767_autodetection(struct i2c_adapter* i2c_adap,
drivers/media/tuners/tea5767.c:int tea5767_autodetection(struct i2c_adapter* i2c_adap, u8 i2c_addr)
drivers/media/tuners/tea5767.c:EXPORT_SYMBOL_GPL(tea5767_autodetection);
drivers/media/v4l2-core/tuner-core.c:         if (tuner_symbol_probe(tea5767_autodetection,


The symbol is defined and EXPORTed in drivers/media/tuners/tea5767.c
Then its used in
Code:
drivers/media/v4l2-core/tuner-core.c


Turn off
Code:
CONFIG_VIDEO_ADV_DEBUG=y
some kernel debug options interfere with normal operation.

Is your clock OK?
If it ever steps backwards, make will get confused and may not build everything that's required.
Make is lazy. It looks at the timestamps on the existing output file. Then in looks at the timestamps on all the input files required to build the output file.
That saves lots of compile time as if the output file is newer than all the input files, the output file cannot have changed.
That's all well and good as long as system time always increases. If it steps back, you can modify a file and the make timestamp test won't spot it.
The check for this is to run
Code:
make clean
to throw away all the output files at the start of the kernel build. Now make is forced to rebuild everything.

The bt8xx devices have been around for a very long time. Its unlikely to be a kernel issue. Well, if you deblob your kernel it might be. Te bt8xx video capture devices are or contain a RISC CPU. The driver loads the code that runs in the bt8xx. It used to be contained in the driver, there is no firmware to find and install.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 371

PostPosted: Sun Mar 31, 2019 10:05 pm    Post subject: Reply with quote

So, next two steps both failed:
1. I recompiled (using make clean) again with the module tea5767 built in instead as a module and unsetting CONFIG_MEDIA_TUNER_TEA5767.
-> still the same issue

2. I emerged gentoo-sources-4.9.162-r1 (using oldconfig on the above configuration) and rebooted: -> still the same error (and before someone asks: I did check that I was running the newer kernel).

Meanwhile, I checked a bit more on the card I have, and it is an PCTV Rave (card=39), with a tuner that is Temic (though I don't know which one exactly), so I don't think tea5767 should be needed at all. Unfortunately, I won't have time this week to experiment, so I'll have to come back to this next week.
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 371

PostPosted: Fri May 03, 2019 11:09 am    Post subject: Reply with quote

Upgrading the kernel to 4.19.27-r2 restored driver functionality.

The drivers loaded now are:
Quote:
Module Size Used by
snd_hda_codec_realtek 118784 1
snd_hda_codec_generic 81920 1 snd_hda_codec_realtek
snd_hda_intel 45056 0
snd_hda_codec 139264 3 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core 94208 4 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
snd_pcm 114688 3 snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer 36864 1 snd_pcm
snd 90112 7 snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore 16384 1 snd
tuner_simple 24576 1
tuner_types 28672 1 tuner_simple
tea5767 16384 0
tuner 28672 1
tda7432 16384 0
tvaudio 36864 0
edac_mce_amd 28672 0
msp3400 36864 0
bttv 163840 0
tveeprom 24576 1 bttv
snd_hwdep 16384 1 snd_hda_codec
videobuf_dma_sg 20480 1 bttv
videobuf_core 32768 2 videobuf_dma_sg,bttv
tea575x 16384 1 bttv
rc_core 45056 1 bttv
v4l2_common 16384 5 tda7432,bttv,msp3400,tvaudio,tuner
videodev 200704 7 tea575x,v4l2_common,tda7432,bttv,msp3400,tvaudio,tuner
i2c_algo_bit 16384 2 bttv,nouveau
i2c_core 81920 15 tea5767,videodev,drm_kms_helper,v4l2_common,tda7432,i2c_algo_bit,bttv,tuner_simple,tveeprom,msp3400,i2c_nforce2,tvaudio,tuner,nouveau,drm
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5413

PostPosted: Fri May 03, 2019 11:37 am    Post subject: Reply with quote

I did noticed a major drivers improvement on my dual HD device between 4.18 and 4.19
maybe it is related.
that is why I tent to use the latest kernel possible on my machines.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum