Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285708 - Kernel 2.6.30-r4, PCMCIA TV-card AverMedia E500 (SAA7134) and tuner selection
Summary: Kernel 2.6.30-r4, PCMCIA TV-card AverMedia E500 (SAA7134) and tuner selection
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-20 14:10 UTC by Marek Kozlowski
Modified: 2010-01-19 19:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
2.6.27-r8 kernel config (.config,55.01 KB, text/plain)
2009-09-20 15:21 UTC, Marek Kozlowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Kozlowski 2009-09-20 14:10:08 UTC
I've had no problem with all kernels up to 2.6.27-r8. Then I tried to upgrade to the 2.6.30-r4. The problem is quite strange. My TV-card which is PCMCIA Avermedia E500 based on SAA7134 chipset requires custom tuner parameter (for Alps tuner):
# modprobe saa7134 card=46 tuner=12 
With 2.6.30-r4 kernel it seems that the 'tuner' parameter is ignored and for all settings the tda9887 is selected (which is a wrong one and disallows watching TV).

/var/log/messages for older kernel:

Sep 19 23:00:58 entoo saa7130/34: v4l2 driver version 0.2.14 loaded
Sep 19 23:00:58 entoo saa7134 0000:07:00.0: enabling device (0000 -> 0002)
Sep 19 23:00:58 entoo saa7134 0000:07:00.0: PCI INT A -> Link[LNKB] -> GSI 5 (level, low) -> IRQ 5
Sep 19 23:00:58 entoo saa7133[0]: found at 0000:07:00.0, rev: 209, irq: 5, latency: 0, mmio: 0xc8000000
Sep 19 23:00:58 entoo saa7134 0000:07:00.0: setting latency timer to 64
Sep 19 23:00:58 entoo saa7133[0]: subsystem: 1461:b6e8, board: AVerMedia Cardbus TV/Radio (E500) [card=46,insmod option]
Sep 19 23:00:58 entoo saa7133[0]: board init: gpio is 0
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 00: 61 14 e8 b6 ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 20: ff d1 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 23:00:59 entoo tuner' 5-0042: chip found @ 0x84 (saa7133[0])
Sep 19 23:00:59 entoo tda9887 5-0042: creating new instance
Sep 19 23:00:59 entoo tda9887 5-0042: tda988[5/6/7] found
Sep 19 23:00:59 entoo All bytes are equal. It is not a TEA5767
Sep 19 23:00:59 entoo tuner' 5-0060: chip found @ 0xc0 (saa7133[0])
Sep 19 23:00:59 entoo tuner' 5-0061: chip found @ 0xc2 (saa7133[0])
Sep 19 23:00:59 entoo tuner-simple 5-0060: creating new instance
Sep 19 23:00:59 entoo tuner-simple 5-0060: type set to 12 (Alps TSBE5)
Sep 19 23:00:59 entoo saa7133[0]: registered device video0 [v4l2]
Sep 19 23:00:59 entoo saa7133[0]: registered device vbi0
Sep 19 23:00:59 entoo saa7133[0]: registered device radio0
Sep 19 23:00:59 entoo saa7134 ALSA driver for DMA sound loaded
Sep 19 23:00:59 entoo saa7133[0]/alsa: saa7133[0] at 0xc8000000 irq 5 registered as card -1

and for the new one:

Sep 19 22:42:06 entoo saa7134 ALSA driver for DMA sound loaded
Sep 19 22:42:06 entoo IRQ 5/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
Sep 19 22:42:06 entoo saa7133[0]/alsa: saa7133[0] at 0xc8000000 irq 5 registered as card -1
Sep 19 22:42:17 entoo saa7134 ALSA driver for DMA sound unloaded
Sep 19 22:42:22 entoo saa7130/34: v4l2 driver version 0.2.15 loaded
Sep 19 22:42:22 entoo saa7133[0]: found at 0000:07:00.0, rev: 209, irq: 5, latency: 64, mmio: 0xc8000000
Sep 19 22:42:22 entoo saa7133[0]: subsystem: 1461:b6e8, board: AVerMedia Cardbus TV/Radio (E500) [card=46,insmod option]
Sep 19 22:42:22 entoo saa7133[0]: board init: gpio is effffff
Sep 19 22:42:22 entoo IRQ 5/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 00: 61 14 e8 b6 ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 20: ff d1 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:42:23 entoo TUNER: Unable to find symbol tda829x_probe()
Sep 19 22:42:23 entoo tuner 5-0042: chip found @ 0x84 (saa7133[0])
Sep 19 22:42:23 entoo DVB: Unable to find symbol tda9887_attach()
Sep 19 22:42:23 entoo saa7133[0]: registered device video0 [v4l2]
Sep 19 22:42:23 entoo saa7133[0]: registered device vbi0
Sep 19 22:42:23 entoo saa7133[0]: registered device radio0
Sep 19 22:42:23 entoo saa7134 ALSA driver for DMA sound loaded
Sep 19 22:42:23 entoo IRQ 5/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
Sep 19 22:42:23 entoo saa7133[0]/alsa: saa7133[0] at 0xc8000000 irq 5 registered as card -1

Exactly the same Multimedia configuration of the kernel. Hmmm..?

Reproducible: Always
Comment 1 Marek Kozlowski 2009-09-20 14:13:32 UTC
> and for the new one:
[...]
Sorry, wrong selection. This one is correct:

Sep 19 22:25:27 entoo saa7130/34: v4l2 driver version 0.2.15 loaded
Sep 19 22:25:27 entoo saa7133[0]: found at 0000:07:00.0, rev: 209, irq: 5, latency: 64, mmio: 0xc8000000
Sep 19 22:25:27 entoo saa7133[0]: subsystem: 1461:b6e8, board: AVerMedia Cardbus TV/Radio (E500) [card=46,insmod option]
Sep 19 22:25:27 entoo saa7133[0]: board init: gpio is effffff
Sep 19 22:25:28 entoo IRQ 5/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 00: 61 14 e8 b6 ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 20: ff d1 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Sep 19 22:25:28 entoo tuner 5-0042: chip found @ 0x84 (saa7133[0])
Sep 19 22:25:28 entoo tda9887 5-0042: creating new instance
Sep 19 22:25:28 entoo tda9887 5-0042: tda988[5/6/7] found
Sep 19 22:25:28 entoo saa7133[0]: registered device video0 [v4l2]
Sep 19 22:25:28 entoo saa7133[0]: registered device vbi0
Sep 19 22:25:28 entoo saa7133[0]: registered device radio0
Sep 19 22:25:28 entoo saa7134 ALSA driver for DMA sound loaded
Sep 19 22:25:28 entoo IRQ 5/saa7133[0]: IRQF_DISABLED is not guaranteed on shared IRQs
Sep 19 22:25:28 entoo saa7133[0]/alsa: saa7133[0] at 0xc8000000 irq 5 registered as card -1
Comment 2 Alex Legler (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2009-09-20 15:11:02 UTC
Severity "critical":
"Critical  	crashes, loss of data, severe memory leak"
Can't find "no TV" in that list.

You might also want to add emerge --info and your kernel module information. 
Comment 3 Marek Kozlowski 2009-09-20 15:21:14 UTC
Created attachment 204701 [details]
2.6.27-r8 kernel config
Comment 4 Marek Kozlowski 2009-09-20 15:21:52 UTC
(In reply to comment #2)
> Severity "critical":
> "Critical       crashes, loss of data, severe memory leak"
> Can't find "no TV" in that list.

I have no other TV set at home ;-)

> You might also want to add emerge --info and your kernel module information. 

Sure:

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Pentium-R-_M_processor_1300MHz-with-gentoo-1.12.11.1
Timestamp of tree: Sun, 20 Sep 2009 07:15:02 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gpm gstreamer gtk hal iconv isdnlog java jpeg kpathsea lame latex ldap libnotify mad mikmod mmx mp3 mp4 mpeg mudflap musepack ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3support quicktime readline reflection sdl session spell spl sse ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis wavpack win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" USERLAND="GNU" VIDEO_CARDS="radeon fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Comment 5 Mike Pagano gentoo-dev 2009-09-20 23:08:00 UTC
Looks like a flurry of commits for 2.6.32. We may want to look at the relevance of the commits and possible test a rc when they settle down.

Have you tested with 2.6.31?
Comment 6 Marek Kozlowski 2009-10-10 16:51:38 UTC
(In reply to comment #5)
> Looks like a flurry of commits for 2.6.32. We may want to look at the relevance
> of the commits and possible test a rc when they settle down.
> 
> Have you tested with 2.6.31?

I've tried 2.6.30-r6 and 2.6.31-r2. Unfortunately, the same result :-(

Comment 7 Mike Pagano gentoo-dev 2009-10-10 18:28:29 UTC
Can you please test with git-sources
Comment 8 Marek Kozlowski 2009-10-26 12:33:55 UTC
(In reply to comment #7)
> Can you please test with git-sources

I've tested the latest git-sources. The same result (I've tried almost all possible options configurations in make menuconfig) :-(

Comment 9 George Kadianakis (RETIRED) gentoo-dev 2009-10-26 14:20:21 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > Can you please test with git-sources
> 
> I've tested the latest git-sources. The same result (I've tried almost all
> possible options configurations in make menuconfig) :-(
> 

Marek, could you report this upstream (to bugzilla.kernel.org) and post the report url back here?
It would really speed things up ;)
Comment 10 Mike Pagano gentoo-dev 2009-11-22 00:38:43 UTC
Please let us know when you have filed this upstream
Comment 11 Marek Kozlowski 2009-11-22 11:36:14 UTC
(In reply to comment #10)
> Please let us know when you have filed this upstream

Do you mean:

http://bugzilla.kernel.org/show_bug.cgi?id=14486

? 

Comment 12 Marek Kozlowski 2010-01-19 19:41:38 UTC
Finally solved...

For all kernels till 2.6.29 I loaded the driver with:

    modprobe saa7134 card=46 tuner=12

and it worked OK (E500 + AlpsTSBE5)

For kerneks 2.6.30+ that command loaded card 46 and wrong tuner (E500 +
TDA9887). But I finally discovered that:

    modprobe saa7134 card=158 tuner=12

works OK (E501R + AlpsTSBE5). Seems like my card used to be detected as E500
and now it is detected as E501R and setting it to E500 results in loading wrong
parameters. Very funny... ;-(