Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254265 - [2.6.26 regression] Hauppage PVR-150 (ivtv) does not switch channels
Summary: [2.6.26 regression] Hauppage PVR-150 (ivtv) does not switch channels
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: linux-2.6.26-regression
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-08 20:51 UTC by Nick Soveiko
Modified: 2009-08-12 17:40 UTC (History)
0 users

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


Attachments
dmesg output under 2.6.25-gentoo-r9 (working setup) (dmesg.2.6.25,24.58 KB, text/plain)
2009-01-08 20:53 UTC, Nick Soveiko
Details
kernel config for 2.6.25-gentoo-r9 (working setup) (config-2.6.25-gentoo-r9-ns,56.25 KB, text/plain)
2009-01-08 20:54 UTC, Nick Soveiko
Details
kernel config for 2.6.28 (not working) (config-2.6.28-gentoo-ns,61.82 KB, text/plain)
2009-01-08 20:55 UTC, Nick Soveiko
Details
dmesg output under 2.6.28-gentoo (tuner not working) (dmesg.2.6.28,27.66 KB, text/plain)
2009-01-08 20:56 UTC, Nick Soveiko
Details
Greg's 2.6.28 Media .config settings (KERNEL_DIFF.diff,6.39 KB, text/plain)
2009-01-22 13:43 UTC, Greg
Details
dmesg output under 2.6.28-gentoo (tuners compiled as modules) (dmesg.2.6.28-1,27.98 KB, text/plain)
2009-01-23 06:25 UTC, Nick Soveiko
Details
kernel config for 2.6.28-gentoo-r1 (working) (.config.working,62.04 KB, text/plain)
2009-01-23 11:20 UTC, Nick Soveiko
Details
IVTV - This only works on 2.6.25 kernels (current 2.6.28-gentoo-r1) (tv.txt,779 bytes, text/plain)
2009-02-23 15:49 UTC, peter Koegel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Soveiko 2009-01-08 20:51:00 UTC
Analog video capture card Hauppage PVR-150 (ivtv driver) does not switch RF tuner channels when used with kernels newer than 2.6.25 (tested with gentoo-sources 2.6.26-r4, 2.6.27-r7 and 2.6.28).

Reproducible: Always

Steps to Reproduce:
1. emerge >=gentoo-sources-2.6.26-*
2. make oldconfig && make install modules_install
3. reboot

Actual Results:  
Mythtv keeps recording on the same channel. Can not switch channels when viewing live TV either (mythfrontend reports new channel number, but receiption is stuck on the same channel that was last used under 2.6.25).
Observed with media-tv/mythtv-0.21_p18314-r1.

Expected Results:  
Successfully switching channels ;)

This bug looks related to 250609 and 245106, however my hardware is slightly different and none of the remedies suggested there actually helped me.
==============================================================================
emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r9-ns i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r9-ns-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.0
Timestamp of tree: Mon, 05 Jan 2009 13:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 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.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /usr/share/X11/xkb"
CXXFLAGS="-O2 -march=k8 -pipe -fomit-frame-pointer"
DISTDIR="/var/lib/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tera-byte.com/ http://gentoo.arcticnetwork.ca/source/"
LANG="en_CA.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amarok amr apache2 arts artswrappersuid asf audiofile bash-completion berkdb blas bluetooth branding bzip2 cairo caps cddb cdparanoia cdr cdrom chardet cli colordiff cracklib crypt css cups curl dbus device-mapper dga directfb divx divx4linux djvu dri dts dv dvb dvd dvdnav dvdr dvdread eds emboss emovix enca encode exif exiv2 fam fbcon ffmpeg fftw firefox flac foomaticdb fortran ftp gd gdbm geoip gif gimp gimpprint ginac glibc-compat20 glut gnokii gphoto2 gpm gs gstreamer gtk gtk2 hal iconv id3 id3tag idn ieee1394 imagemagick imap imlib isdnlog ivtv java javascript jfs jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kipi lapack lash latex lcms lesstif libcaca libedit libnotify libwww lm_sensors logrotate logwatch lzo mad math matroska mbox md5sum memlimit midi mikmod mime mjpeg mmap mmx mmxext mng mozilla mozsvg mp2 mp3 mp4 mpeg mpeg2 mplayer mpm-prefork mudflap musepack musicbrainz mysql na_dd na_icons nas ncurses network nls nocd npp nptl nsplugin nvidia offensive ofx ogg openal opengl openmp osc pam pch pcre pdf perl png pnm posix ppds pppd print python qt3 qt3support qt4 quicktime radio rar readline reflection reiserfs rle rrdcgi scanner sdl session sharedmem shorten slang sndfile sockets sox speex spell spl srt sse sse2 ssl startup-notification svg svga sysfs tcpd tetex theora threads threadsafe tiff truetype tv_check unicode usb v4l v4l2 vcd vdr vidix vim vim-pager vim-syntax vim-with-x visualization vorbis win32codecs wma wmf wmp wordperfect x264 x86 xanim xcomposite xine xml xorg xosd xprint xscreensaver xulrunner xv xvid xvmc 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nick Soveiko 2009-01-08 20:53:01 UTC
Created attachment 177811 [details]
dmesg output under 2.6.25-gentoo-r9 (working setup)
Comment 2 Nick Soveiko 2009-01-08 20:54:09 UTC
Created attachment 177812 [details]
kernel config for 2.6.25-gentoo-r9 (working setup)
Comment 3 Nick Soveiko 2009-01-08 20:55:15 UTC
Created attachment 177813 [details]
kernel config for 2.6.28 (not working)
Comment 4 Nick Soveiko 2009-01-08 20:56:35 UTC
Created attachment 177814 [details]
dmesg output under 2.6.28-gentoo (tuner not working)
Comment 5 Nick Soveiko 2009-01-08 20:59:10 UTC
# lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] Device 0756 (rev 02)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS965 [MuTIOL Media IO] (rev 48)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 0f)
00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:05.0 RAID bus controller: Silicon Integrated Systems [SiS] 182 SATA/RAID Controller (rev 01)
00:06.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:07.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
00:09.0 RAID bus controller: Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller (rev 02)
00:0a.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
00:0b.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
03:00.0 VGA compatible controller: nVidia Corporation NV44 [GeForce 6200 TurboCache(TM)] (rev a1)
Comment 6 Nick Soveiko 2009-01-08 21:00:08 UTC
# lspci -vv -s 00:0a.0
00:0a.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR 150
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 64 (32000ns min, 2000ns max), Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 18
        Region 0: Memory at bc000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: ivtv
        Kernel modules: ivtv
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-08 23:07:27 UTC

*** This bug has been marked as a duplicate of bug 245106 ***
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2009-01-09 16:35:35 UTC
Not a duplicate.
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2009-01-10 21:10:38 UTC
Could you please attach a /var/log/messages output , just after you try to switch channel? 
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2009-01-11 10:40:58 UTC
Please try enabling CONFIG_MEDIA_ATTACH in 2.6.28. If that doesn't help, then please post lsmod output from after you have been unable to tune channels.
Comment 11 Daniel Drake (RETIRED) gentoo-dev 2009-01-11 10:41:18 UTC
lsmod output from 2.6.25 would also be interesting
Comment 12 Atanas Kamburov 2009-01-12 10:30:34 UTC
I also had problems with my cx88-based TV card, when the driver was built-in the kernel. No problem when it was built as a module. However, the problem is completely gone in gentoo-sources-2.6.28, so maybe you should try this one.

See Bug 250609 that I submitte before for more details.
Comment 13 Nick Soveiko 2009-01-14 04:44:41 UTC
(In reply to comment #11)

> lsmod output from 2.6.25 would also be interesting

it87                   19408  0
hwmon_vid               2880  1 it87
eeprom                  5584  0
af_packet              16448  4
wm8775                  5420  0
cx25840                27212  0
tuner                  34848  0
tea5767                 5956  1 tuner
tda8290                12356  1 tuner
tuner_xc2028           19088  1 tuner
tda9887                 8964  1 tuner
tuner_simple            8200  1 tuner
mt20xx                 11720  1 tuner
tea5761                 4548  1 tuner
ivtv                  133888  2
cx2341x                11204  1 ivtv
nvidia               6900980  36
k8temp                  4160  0
tveeprom               14160  1 ivtv

i've skipped a bunch of iptables modules. i'll reinstall 2.6.28 tomorrow and report back.
Comment 14 Nick Soveiko 2009-01-14 20:42:19 UTC
this is lsmod on 2.6.28 configured from 2.6.25 via 'make oldconfig' and accepting all defaults:

it87                   19920  0
hwmon_vid               2944  1 it87
eeprom                  5520  0
af_packet              16640  4
tuner                  24708  0
wm8775                  5612  0
cx25840                27376  0
nvidia               6900052  26
k8temp                  4160  0
ivtv                  136836  0
i2c_algo_bit            5636  1 ivtv
cx2341x                11460  1 ivtv
tveeprom               11908  1 ivtv

channels don't switch, there is absolutely nothing in syslog.
Comment 15 Nick Soveiko 2009-01-14 21:15:53 UTC
(In reply to comment #10)
> Please try enabling CONFIG_MEDIA_ATTACH in 2.6.28. If that doesn't help, then
> please post lsmod output from after you have been unable to tune channels.

still cannot switch channels:

/etc # uname -a
Linux alerik 2.6.28-gentoo-ns #2 SMP PREEMPT Wed Jan 14 15:55:12 EST 2009 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux
/etc # zgrep ATTACH /proc/config.gz
CONFIG_MEDIA_ATTACH=y
/etc # lsmod
Module                  Size  Used by
iptable_raw             2176  0
xt_owner                2560  0
xt_iprange              2432  0
ipt_ULOG                7204  0
ipt_TTL                 1920  0
ipt_ttl                 1600  0
ipt_REJECT              3008  4
ipt_REDIRECT            1920  0
ipt_NETMAP              1728  0
ipt_MASQUERADE          2752  1
ipt_LOG                 5764  12
ipt_ECN                 2496  0
ipt_ecn                 1920  0
ipt_CLUSTERIP           6596  0
ipt_ah                  1664  0
ipt_addrtype            2432  0
nf_nat_tftp             1536  0
nf_nat_snmp_basic       9288  0
nf_nat_sip              6528  0
nf_nat_pptp             3136  0
nf_nat_proto_gre        2180  1 nf_nat_pptp
nf_nat_irc              2176  0
nf_nat_h323             6336  0
nf_nat_ftp              2752  0
nf_nat_amanda           1856  0
ts_kmp                  2240  5
nf_conntrack_amanda     3776  1 nf_nat_amanda
nf_conntrack_tftp       4180  1 nf_nat_tftp
nf_conntrack_sip       16788  1 nf_nat_sip
nf_conntrack_proto_sctp     7496  0
nf_conntrack_pptp       5764  1 nf_nat_pptp
nf_conntrack_proto_gre     5380  1 nf_conntrack_pptp
nf_conntrack_netlink    16000  0
nf_conntrack_netbios_ns     2560  0
nf_conntrack_irc        5284  1 nf_nat_irc
nf_conntrack_h323      46536  1 nf_nat_h323
nf_conntrack_ftp        7332  1 nf_nat_ftp
xt_tcpmss               1984  0
xt_helper               2048  0
xt_conntrack            3712  0
xt_CONNMARK             2816  0
xt_connmark             2240  0
xt_CLASSIFY             1536  0
xt_state                2048  20
iptable_nat             5380  1
nf_nat                 16532  12 ipt_REDIRECT,ipt_NETMAP,ipt_MASQUERADE,nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat_proto_gre,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,iptable_nat
nf_conntrack_ipv4      13068  23 iptable_nat,nf_nat
nf_defrag_ipv4          1792  1 nf_conntrack_ipv4
nf_conntrack           56200  29 ipt_MASQUERADE,ipt_CLUSTERIP,nf_nat_tftp,nf_nat_snmp_basic,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,nf_conntrack_amanda,nf_conntrack_tftp,nf_conntrack_sip,nf_conntrack_proto_sctp,nf_conntrack_pptp,nf_conntrack_proto_gre,nf_conntrack_netlink,nf_conntrack_netbios_ns,nf_conntrack_irc,nf_conntrack_h323,nf_conntrack_ftp,xt_helper,xt_conntrack,xt_CONNMARK,xt_connmark,xt_state,iptable_nat,nf_nat,nf_conntrack_ipv4
iptable_mangle          2752  1
nfnetlink               3864  1 nf_conntrack_netlink
iptable_filter          2688  1
ip_tables              10768  4 iptable_raw,iptable_nat,iptable_mangle,iptable_filter
pppoe                   9472  2
pppox                   2956  1 pppoe
it87                   19920  0
hwmon_vid               2944  1 it87
eeprom                  5520  0
af_packet              16640  4
tuner                  26372  0
wm8775                  5612  0
cx25840                27376  0
nvidia               6900052  26
ivtv                  136836  0
k8temp                  4160  0
i2c_algo_bit            5636  1 ivtv
cx2341x                11460  1 ivtv
tveeprom               11908  1 ivtv
Comment 16 Axel Dyks 2009-01-20 13:19:30 UTC
(In reply to comment #15)

Assuming that your problem still isn't solved and it's NOT
a duplicate of bug #245106 ...

Can you try with tuner(s) compiled as module which is what
you had in your working 2.6.25 config?
Comment 17 Nick Soveiko 2009-01-20 21:08:09 UTC
(In reply to comment #16)

> Assuming that your problem still isn't solved and it's NOT
> a duplicate of bug #245106 ...

so far the only way to solve it is to roll back to 2.6.25.

> Can you try with tuner(s) compiled as module which is what
> you had in your working 2.6.25 config?

=================================== from .config =============================
CONFIG_MEDIA_ATTACH=y
CONFIG_MEDIA_TUNER=y
CONFIG_MEDIA_TUNER_CUSTOMIZE=y
CONFIG_MEDIA_TUNER_SIMPLE=m
CONFIG_MEDIA_TUNER_TDA8290=m
CONFIG_MEDIA_TUNER_TDA827X=m
CONFIG_MEDIA_TUNER_TDA18271=m
CONFIG_MEDIA_TUNER_TDA9887=m
CONFIG_MEDIA_TUNER_TEA5761=m
CONFIG_MEDIA_TUNER_TEA5767=m
CONFIG_MEDIA_TUNER_MT20XX=m
CONFIG_MEDIA_TUNER_MT2060=m
CONFIG_MEDIA_TUNER_MT2266=m
CONFIG_MEDIA_TUNER_MT2131=m
CONFIG_MEDIA_TUNER_QT1010=m
CONFIG_MEDIA_TUNER_XC2028=m
CONFIG_MEDIA_TUNER_XC5000=m
CONFIG_MEDIA_TUNER_MXL5005S=m
CONFIG_MEDIA_TUNER_MXL5007T=m
==============================================================================

doesn't help. in addition, attempt to switch channels brings machine to a hard lockup with ~50% probability. that's with 2.6.28.

=================================== from dmesg ===============================
ivtv:  Start initialization, version 1.4.0
ivtv0: Initializing card #0
ivtv0: Autodetected Hauppauge card (cx23416 based)
ivtv 0000:00:0a.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
tveeprom 0-0050: Hauppauge model 26552, rev F168, serial# 9900936
tveeprom 0-0050: tuner model is LG TAPE H001F MK3 (idx 68, type 47)
tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 0-0050: audio processor is CX25843 (idx 37)
tveeprom 0-0050: decoder processor is CX25843 (idx 30)
tveeprom 0-0050: has radio
ivtv0: Autodetected Hauppauge WinTV PVR-150
cx25840 0-0044: cx25843-24 found @ 0x88 (ivtv i2c driver #0)
wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0)
ivtv0: Registered device video0 for encoder MPG (4096 kB)
ivtv0: Registered device video32 for encoder YUV (2048 kB)
ivtv0: Registered device vbi0 for encoder VBI (1024 kB)
ivtv0: Registered device video24 for encoder PCM (320 kB)
ivtv0: Registered device radio0 for encoder radio
ivtv0: Initialized card #0: Hauppauge WinTV PVR-150
ivtv:  End initialization
ivtv 0000:00:0a.0: firmware: requesting v4l-cx2341x-enc.fw
ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv0: Encoder revision: 0x02060039
cx25840 0-0044: firmware: requesting v4l-cx25840.fw
cx25840 0-0044: loaded v4l-cx25840.fw firmware (16382 bytes)
==============================================================================

=================================== from lsmod ===============================
eeprom                  5520  0
tuner                  26372  0
wm8775                  5612  0
cx25840                27376  0
ivtv                  136836  0
nvidia               6900052  26
k8temp                  4160  0
i2c_algo_bit            5636  1 ivtv
cx2341x                11460  1 ivtv
tveeprom               11908  1 ivtv
==============================================================================
Comment 18 Axel Dyks 2009-01-21 08:59:16 UTC
Seems that no tuner is loaded at all, i. e. something like this
(taken from dmesg of 2.6.25) is missing
----------
tuner 0-0043: chip found @ 0x86 (ivtv i2c driver #0)
tda9887 0-0043: tda988[5/6/7] found
tuner 0-0061: chip found @ 0xc2 (ivtv i2c driver #0)
wm8775 0-001b: chip found @ 0x36 (ivtv i2c driver #0)
tuner-simple 0-0061: type set to 47 (LG NTSC (TAPE series))

Anyway, can you please attach a complete dmesg from
your 2.6.28 kernel?

Another thing that I find rather strange is that your kernel
config shows
------------------------
CONFIG_MEDIA_TUNER=y
CONFIG_MEDIA_TUNER_CUSTOMIZE=y
CONFIG_MEDIA_TUNER_SIMPLE=m
CONFIG_MEDIA_TUNER_...=m

How did you produce this config (CONFIG_MEDIA_TUNER=Y, but
actual tuners compiled as module)?
Comment 19 Greg 2009-01-21 13:44:52 UTC
Ok do you want to test this on vanilla sources? Because I have a PVR-150 and I'm about to test it out with vanilla-sources myself.
Comment 20 Greg 2009-01-21 16:20:56 UTC
Question. What IVTV version do you have? When I do eix -Ss ivtv the latest version I see is 1.2.0, which does not work past kernel 2.6.25. You need version 1.3.0 for 2.6.26 and up (you should have re-emerged ivtv anyhow).
Comment 21 Nick Soveiko 2009-01-21 20:23:26 UTC
(In reply to comment #18)

> Anyway, can you please attach a complete dmesg from
> your 2.6.28 kernel?

it was attached in the beginning

> Another thing that I find rather strange is that your kernel
> config shows
> ------------------------
> CONFIG_MEDIA_TUNER=y
> CONFIG_MEDIA_TUNER_CUSTOMIZE=y
> CONFIG_MEDIA_TUNER_SIMPLE=m
> CONFIG_MEDIA_TUNER_...=m
> 
> How did you produce this config (CONFIG_MEDIA_TUNER=Y, but
> actual tuners compiled as module)?

with make menuconfig:

  │ │        *** Multimedia core support ***                              │ │
  │ │    <*> Video For Linux                                              │ │
  │ │    [*]   Enable Video For Linux API 1 (DEPRECATED)                  │ │
  │ │    < > DVB for Linux                                                │ │
  │ │        *** Multimedia drivers ***                                   │ │
  │ │    [*] Load and attach frontend and tuner driver modules as needed  │ │
  │ │    [*] Customize analog and hybrid tuner modules to build  --->     │ │
  │ │    [*] Video capture adapters  --->                                 │ │
  │ │    [ ] Radio Adapters  --->                                         │ │
  │ │    [ ] DAB adapters                                                 │ │

  │ │    --- Customize analog and hybrid tuner modules to build           │ │
  │ │    <M>   Simple tuner support                                       │ │
  │ │    <M>   TDA 8290/8295 + 8275(a)/18271 tuner combo                  │ │
  │ │    {M}   Philips TDA827X silicon tuner                              │ │
  │ │    {M}   NXP TDA18271 silicon tuner                                 │ │
  │ │    {M}   TDA 9885/6/7 analog IF demodulator                         │ │
  │ │    <M>   TEA 5761 radio tuner (EXPERIMENTAL)                        │ │
  │ │    <M>   TEA 5767 radio tuner                                       │ │
  │ │    <M>   Microtune 2032 / 2050 tuners                               │ │
  │ │    <M>   Microtune MT2060 silicon IF tuner                          │ │
  │ │    <M>   Microtune MT2266 silicon tuner                             │ │
  │ │    <M>   Microtune MT2131 silicon tuner                             │ │
  │ │    <M>   Quantek QT1010 silicon tuner                               │ │
  │ │    <M>   XCeive xc2028/xc3028 tuners                                │ │
  │ │    <M>   Xceive XC5000 silicon tuner                                │ │
  │ │    <M>   MaxLinear MSL5005S silicon tuner                           │ │
  │ │    <M>   MaxLinear MxL5007T silicon tuner                           │ │
Comment 22 Nick Soveiko 2009-01-21 20:31:14 UTC
(In reply to comment #20)
> Question. What IVTV version do you have? When I do eix -Ss ivtv the latest
> version I see is 1.2.0, which does not work past kernel 2.6.25. You need
> version 1.3.0 for 2.6.26 and up (you should have re-emerged ivtv anyhow).

ivtv 1.4.0, it had been merged into the kernel around 2.6.25. media-tv/ivtv 1.2.0 already only contains ctl tools and was renamed media-tv/ivtv-utils in 1.3.0.

(In reply to comment #19)
> Ok do you want to test this on vanilla sources? Because I have a PVR-150 and
> I'm about to test it out with vanilla-sources myself.

as soon as gentoo devs give up and decide to send it upstream ;^)
Comment 23 Axel Dyks 2009-01-22 09:25:26 UTC
(In reply to comment #21)
> (In reply to comment #18)
> 
> > Anyway, can you please attach a complete dmesg from
> > your 2.6.28 kernel?
> 
> it was attached in the beginning
> 
You've compiled a 2.6.28 kernel using a *different* config,
so the originally attached dmesg is most likely not identical
with what you are getting now.
Comment 24 Greg 2009-01-22 13:43:21 UTC
Created attachment 179332 [details]
Greg's 2.6.28 Media .config settings
Comment 25 Greg 2009-01-22 13:45:46 UTC
Please do get the most recent version of your .config. My PVR-150 works fine on 2.6.28.1 #1 SMP PREEMPT. As you can see from my current diff of our .configs, you have some things set to y that I have set to m, and I believe they previously mentioned the fact that you needed to set somethings to modules.

For the record, I am currently using vanilla so I have not tested this on gentoo-sources.
Comment 26 Nick Soveiko 2009-01-23 06:25:35 UTC
Created attachment 179407 [details]
dmesg output under 2.6.28-gentoo (tuners compiled as modules)

CONFIG_MEDIA_ATTACH=y
CONFIG_MEDIA_TUNER=y
CONFIG_MEDIA_TUNER_CUSTOMIZE=y
CONFIG_MEDIA_TUNER_SIMPLE=m
CONFIG_MEDIA_TUNER_TDA8290=m
CONFIG_MEDIA_TUNER_TDA827X=m
CONFIG_MEDIA_TUNER_TDA18271=m
CONFIG_MEDIA_TUNER_TDA9887=m
CONFIG_MEDIA_TUNER_TEA5761=m
CONFIG_MEDIA_TUNER_TEA5767=m
CONFIG_MEDIA_TUNER_MT20XX=m
CONFIG_MEDIA_TUNER_MT2060=m
CONFIG_MEDIA_TUNER_MT2266=m
CONFIG_MEDIA_TUNER_MT2131=m
CONFIG_MEDIA_TUNER_QT1010=m
CONFIG_MEDIA_TUNER_XC2028=m
CONFIG_MEDIA_TUNER_XC5000=m
CONFIG_MEDIA_TUNER_MXL5005S=m
CONFIG_MEDIA_TUNER_MXL5007T=m
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_V4L1=y
CONFIG_VIDEOBUF_GEN=m
CONFIG_VIDEOBUF_VMALLOC=m
CONFIG_VIDEO_IR=m
CONFIG_VIDEO_TVEEPROM=m
CONFIG_VIDEO_TUNER=m
CONFIG_VIDEO_CAPTURE_DRIVERS=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
# CONFIG_VIDEO_HELPER_CHIPS_AUTO is not set
CONFIG_VIDEO_IR_I2C=m
Comment 27 Nick Soveiko 2009-01-23 06:27:06 UTC
(In reply to comment #23)
> (In reply to comment #21)
> > (In reply to comment #18)
> > 
> > > Anyway, can you please attach a complete dmesg from
> > > your 2.6.28 kernel?
> > 
> > it was attached in the beginning
> > 
> You've compiled a 2.6.28 kernel using a *different* config,
> so the originally attached dmesg is most likely not identical
> with what you are getting now.

attached here: https://bugs.gentoo.org/attachment.cgi?id=179407
Comment 28 Nick Soveiko 2009-01-23 11:18:16 UTC
(In reply to comment #25)

> Please do get the most recent version of your .config. My PVR-150 works fine on
> 2.6.28.1 #1 SMP PREEMPT. As you can see from my current diff of our .configs,
> you have some things set to y that I have set to m, and I believe they
> previously mentioned the fact that you needed to set somethings to modules.

bingo! compiling v4l into the kernel vs. as a module appears to be the culprit.
thank you!

i still think it's a bug, albeit a tad less severe one.

> For the record, I am currently using vanilla so I have not tested this on
> gentoo-sources.

tested on gentoo-sources-2.6.28 and 2.6.28-r1
Comment 29 Nick Soveiko 2009-01-23 11:20:49 UTC
Created attachment 179436 [details]
kernel config for 2.6.28-gentoo-r1 (working)
Comment 30 Axel Dyks 2009-01-23 13:38:14 UTC
I don't think it's v4l being compiled into the kernel which solved it.

Look at your config now

  CONFIG_MEDIA_TUNER=m
  CONFIG_MEDIA_TUNER_CUSTOMIZE=y
  CONFIG_MEDIA_TUNER_SIMPLE=m
  CONFIG_MEDIA_TUNER_...=m

... and then compare with

  CONFIG_MEDIA_TUNER=y
  CONFIG_MEDIA_TUNER_CUSTOMIZE=y
  CONFIG_MEDIA_TUNER_SIMPLE=m
  CONFIG_MEDIA_TUNER_...=m

which is what you had before (on 2.6.28). See comment #18.
Comment 31 Greg 2009-01-23 15:27:02 UTC
Yeah, thats what I was trying to point out with my .config. I had certain parts labeled m that you had built-in.

At any rate do we mark this bug as resolved now?
Comment 32 Greg 2009-01-23 15:42:22 UTC
(In reply to comment #28)

CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_HELPER_AUTO=y
CONFIG_I2C_ALGOBIT=m

#
# I2C Hardware Bus support
#

#
# PC SMBus host controller drivers
#
CONFIG_I2C_ALI1535=m
CONFIG_I2C_ALI1563=m

You appear to have built your I2C drivers as modules. From doing some reasearch, it appears that if V4L is built-in, I2C must be too.
See: http://lkml.indiana.edu/hypermail/linux/kernel/0001.3/0544.html

Comment 33 Nick Soveiko 2009-01-24 01:59:41 UTC
(In reply to comment #32)

> You appear to have built your I2C drivers as modules. From doing some
> reasearch, it appears that if V4L is built-in, I2C must be too.
> See: http://lkml.indiana.edu/hypermail/linux/kernel/0001.3/0544.html

this is a very old post that refers to kernel 2.3. i had v4l built into the kernel and i2c as modules in 2.6.25 and it worked just fine. so it is now with 2.6.28.
Comment 34 Nick Soveiko 2009-01-24 02:04:13 UTC
(In reply to comment #30)

> I don't think it's v4l being compiled into the kernel which solved it.
>   CONFIG_MEDIA_TUNER=m
>   CONFIG_MEDIA_TUNER=y

i will try to switch it later tonight.

my question is which option in menuconfig 2.6.28 flips this one? i had to go and manually edit .config to put it as a module, which, i understand, is strongly discouraged.
Comment 35 Nick Soveiko 2009-01-24 02:09:33 UTC
(In reply to comment #33)
> so it is now with 2.6.28.

correction: with 2.6.28 it's the other way around: v4l as a module and i2c built in. the only i2c-related module that lsmod shows now is i2c_algo_bit.
Comment 36 Nick Soveiko 2009-01-24 04:35:38 UTC
(In reply to comment #34)

> >   CONFIG_MEDIA_TUNER=m
> >   CONFIG_MEDIA_TUNER=y
> 
> my question is which option in menuconfig 2.6.28 flips this one? i had to go
> and manually edit .config to put it as a module, which, i understand, is
> strongly discouraged.

and now i can't put it back to 'y'. if i edit .config manually, make resets it back to module:

/usr/src/linux # grep CONFIG_MEDIA_TUNER= .config
CONFIG_MEDIA_TUNER=y
/usr/src/linux # make -j3 && grep CONFIG_MEDIA_TUNER= .config
scripts/kconfig/conf -s arch/x86/Kconfig
#
# configuration written to .config
#
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-x86
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  GZIP    kernel/config_data.gz
  IKCFG   kernel/config_data.h
  CC      kernel/configs.o
  LD      kernel/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  Building modules, stage 2.
  CC      arch/x86/boot/version.o
  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  RELOCS  arch/x86/boot/compressed/vmlinux.relocs
  BUILD   arch/x86/boot/compressed/vmlinux.bin.all
  GZIP    arch/x86/boot/compressed/vmlinux.bin.gz
  MODPOST 342 modules
  LD      arch/x86/boot/compressed/piggy.o
  LD      arch/x86/boot/compressed/vmlinux
  OBJCOPY arch/x86/boot/vmlinux.bin
  OFFSETS arch/x86/boot/offsets.h
  AS      arch/x86/boot/header.o
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  BUILD   arch/x86/boot/bzImage
Root device is (9, 0)
Setup is 11480 bytes (padded to 11776 bytes).
System is 2850 kB
CRC d9c148cf
Kernel: arch/x86/boot/bzImage is ready  (#9)
CONFIG_MEDIA_TUNER=m
Comment 37 Axel Dyks 2009-01-24 07:25:38 UTC
(In reply to comment #36)
> (In reply to comment #34)
> 
> > >   CONFIG_MEDIA_TUNER=m
> > >   CONFIG_MEDIA_TUNER=y
> > 
> > my question is which option in menuconfig 2.6.28 flips this one? i had to go
> > and manually edit .config to put it as a module, which, i understand, is
> > strongly discouraged.

This is all strange.
I've tried to reproduce your kernel config (on some older 2.6.28-rc sources)
and wasn't able to produce

  CONFIG_MEDIA_TUNER=Y

with

  CONFIG_MEDIA_TUNER_SIMPLE=m

at the same time using "make menuconfig"

Normally you should not (need to) manuallay edit .config and
"make menuconfig" should not create inconsistent .config files,
i. e. required components should be automatically selected
and if dependent components need either be all builtin or
all compiled as module, menuconfig should take care of
this.

As soon as I'm back to my highspeed internet connection I'll
do some further tests using the exact same sources you used
(it's gentoo-sources-2.6.28, right?)
Comment 38 Nick Soveiko 2009-01-25 17:50:04 UTC
(In reply to comment #37)
> (it's gentoo-sources-2.6.28, right?)

right.
Comment 39 peter Koegel 2009-02-23 15:49:08 UTC
Created attachment 182905 [details]
IVTV - This only works on 2.6.25 kernels (current 2.6.28-gentoo-r1)

Determining the location of the kernel source code
 Found kernel source directory:
     /usr/src/linux
 Found kernel object directory:
     /lib/modules/2.6.28-gentoo-r1/build
 Found sources for kernel version:
     2.6.28-gentoo-r1
 Each IVTV driver branch will only work with a specific
 linux kernel branch.
 
 You will need to either:
 a) emerge a different kernel
 b) emerge a different ivtv driver
 
 See http://ivtvdriver.org/ for more information
 
 ERROR: media-tv/ivtv-1.2.0-r1 failed.
 Call stack:
               ebuild.sh, line   49:  Called pkg_setup
    ivtv-1.2.0-r1.ebuild, line   41:  Called die
 The specific snippet of code:
              die "This only works on 2.6.25 kernels"
  The die message:
   This only works on 2.6.25 kernels
Comment 40 Greg 2009-02-23 19:17:30 UTC
I'm sorry, why are you posting this? IVTV is now built into the kernel.
Comment 41 Olliver Schinagl 2009-03-29 00:08:48 UTC
I'm guessing he is posting this because that's how the ivtv howto says it should work;

setup your kernel, emerge ivtv.

Problem is, ivtv cries for needing the 2.6.25 kernel, where as we'd only want the userland +firmware from portage anyway. No need for kernel modules.

I noticed there is an ivtv-utils package. I haven't tried yet but I'm assuming that this does exactly what would be expected.

I would say at the very least, that nother if would be added to the ebuild, stating that if the version is greater then <ivtv kernel supplied version> please emerge ivtv-utils. Or just rename ivtv to ivtv-old and rename ivtv-utils to ivtv, though that may be even more confusing.
Comment 42 George Kadianakis (RETIRED) gentoo-dev 2009-05-19 11:35:50 UTC
Hello,

I'd suggest you to use the kernel ivtv driver which is supported in kernels >=2.6.22 
(http://ivtvdriver.org/index.phpowto:Gentoo#Newer_Kernels_.28.3E.3D2.6.22.29)

From what I see, all the ivtv ebuilds are keyworded and in the Changelog of ivtv's ebuilds I found:
"  
  We're officially only supporting the in-kernel ivtv module which started
  with 2.6.22.
"

Also, since you mentioned ivtv-utils, from what I see ivtv-utils had a similar problem which was fixed in bug #244584.

Anyway, please do try the inkernel ivtv driver!
Comment 43 Mike Pagano gentoo-dev 2009-07-24 00:13:29 UTC
Have you tried the in kernel ivtv driver as suggested in comment #42?
Comment 44 Stratos Psomadakis (RETIRED) gentoo-dev 2009-08-12 17:40:04 UTC
feel free to reopen when you've tried the in-kernel ivtv driver( comment #42 )