Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 389827

Summary: sys-kernel/gentoo-sources-3* : dvb-t can't lock channels with tm6000
Product: Gentoo Linux Reporter: Thierry Norret <tnorret>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thierry Norret 2011-11-07 17:46:44 UTC
Since updating from kernel 2.6.38 to 3.0.6 channels can't be lock with DVB-T/USB Hauppauge WinTV HVR 900H (module tm6000).
Same issue with kernel 3.1.0
The modules are loaded, the firmware (xc3028L-v36.fw) is copied to /lib/firmware, the signal is good but no channels found with w_scan/vlc/mplayer
I've tried to open the channel.conf generate with kernel 2.6.38 in vlc but no results.
With kernel 2.6.38 no problem

Reproducible: Always

Steps to Reproduce:
1.Try to watch dvb-t with vlc on i386 gentoo-sources-3* using the tm6000
Module.
2.
3.
Actual Results:  
No channel can be lock


# dmesg
[   81.132653] IR NEC protocol handler initialized
[   81.158229] tm6000: module is from the staging directory, the quality is unknown, you have been warned.
[   81.158801] tm6000 v4l2 driver version 0.0.2 loaded
[   81.160885] tm6000: alt 0, interface 0, class 255
[   81.160890] tm6000: alt 0, interface 0, class 255
[   81.160895] tm6000: Bulk IN endpoint: 0x82 (max size=512 bytes)
[   81.160899] tm6000: alt 0, interface 0, class 255
[   81.160903] tm6000: alt 1, interface 0, class 255
[   81.160907] tm6000: ISOC IN endpoint: 0x81 (max size=3072 bytes)
[   81.160911] tm6000: alt 1, interface 0, class 255
[   81.160914] tm6000: alt 1, interface 0, class 255
[   81.160918] tm6000: INT IN endpoint: 0x83 (max size=4 bytes)
[   81.160922] tm6000: alt 2, interface 0, class 255
[   81.160925] tm6000: alt 2, interface 0, class 255
[   81.160929] tm6000: alt 2, interface 0, class 255
[   81.160932] tm6000: alt 3, interface 0, class 255
[   81.160936] tm6000: alt 3, interface 0, class 255
[   81.160939] tm6000: alt 3, interface 0, class 255
[   81.160943] tm6000: New video device @ 480 Mbps (2040:6600, ifnum 0)
[   81.160947] tm6000: Found Hauppauge WinTV HVR-900H / WinTV USB2-Stick
[   81.167856] Found tm6010
[   81.176973] IR RC5(x) protocol handler initialized
[   81.183409] IR RC6 protocol handler initialized
[   81.185159] IR JVC protocol handler initialized
[   81.187524] IR Sony protocol handler initialized
[   81.201304] lirc_dev: IR Remote Control driver registered, major 250 
[   81.206121] IR LIRC bridge handler initialized
[   81.964984] tm6000 #0: i2c eeprom 00: 01 59 54 45 12 01 00 02 00 00 00 40 40 20 00 66  .YTE.......@@ .f
[   82.076933] tm6000 #0: i2c eeprom 10: 69 00 10 20 40 01 02 03 48 00 79 00 62 00 72 00  i.. @...H.y.b.r.
[   82.188834] tm6000 #0: i2c eeprom 20: ff 00 64 ff ff ff ff ff ff ff ff ff ff ff ff ff  ..d.............
[   82.300725] tm6000 #0: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
[   82.412622] tm6000 #0: i2c eeprom 40: 10 03 48 00 56 00 52 00 39 00 30 00 30 00 48 00  ..H.V.R.9.0.0.H.
[   82.524561] tm6000 #0: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
[   82.636402] tm6000 #0: i2c eeprom 60: 30 ff ff ff 0f ff ff ff ff ff 0a 03 32 00 2e 00  0...........2...
[   82.748303] tm6000 #0: i2c eeprom 70: 3f 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ?...............
[   82.860197] tm6000 #0: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
[   82.972092] tm6000 #0: i2c eeprom 90: 32 ff ff ff 16 03 34 00 30 00 33 00 32 00 31 00  2.....4.0.3.2.1.
[   83.083977] tm6000 #0: i2c eeprom a0: 33 00 34 00 39 00 30 00 32 00 00 00 00 00 ff ff  3.4.9.0.2.......
[   83.195871] tm6000 #0: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
[   83.307773] tm6000 #0: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
[   83.419666] tm6000 #0: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
[   83.531535] tm6000 #0: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
[   83.643448] tm6000 #0: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff  ................
[   83.801012] i2c-core: driver [tuner] using legacy suspend method
[   83.801017] i2c-core: driver [tuner] using legacy resume method
[   83.801303] tuner 1-0061: Tuner -1 found with type(s) Radio TV.
[   83.801309] xc2028 1-0061: creating new instance
[   83.801311] xc2028 1-0061: type set to XCeive xc2028/xc3028 tuner
[   83.801313] Setting firmware parameters for xc2028
[   83.804849] xc2028 1-0061: Loading 81 firmware images from xc3028L-v36.fw, type: xc2028 firmware, ver 3.6
[   84.021087] xc2028 1-0061: Loading firmware for type=BASE (1), id 0000000000000000.
[  109.684698] xc2028 1-0061: Loading firmware for type=(0), id 000000000000b700.
[  110.118322] SCODE (20000000), id 000000000000b700:
[  110.118331] xc2028 1-0061: Loading SCODE for type=MONO SCODE HAS_IF_4320 (60008000), id 0000000000008000.
[  110.733824] tm6000 #0: registered device video1
[  110.733831] Trident TVMaster TM5600/TM6000/TM6010 USB2 board (Load status: 0)
[  110.733865] usbcore: registered new interface driver tm6000
[  110.735587] tm6000: open called (dev=video1)
[  110.812501] tm6000_dvb: module is from the staging directory, the quality is unknown, you have been warned.
[  110.876588] DVB: registering new adapter (Trident TVMaster 6000 DVB-T)
[  110.876597] DVB: registering adapter 0 frontend 0 (Zarlink ZL10353 DVB-T)...
[  110.876695] xc2028 1-0061: attaching existing instance
[  110.876701] xc2028 1-0061: type set to XCeive xc2028/xc3028 tuner
[  110.876705] tm6000: XC2028/3028 asked to be attached to frontend!
[  110.876846] tm6000 #0: Initialized (TM6000 dvb Extension) extension

# vlc log when trying to open channel.conf in kernel 3.0.6
[0xb64eb0] dvb access warning: no lock, tuning again
[0xb64eb0] dvb access debug: using inversion=2
[0xb64eb0] dvb access debug: using bandwidth=8
[0xb64eb0] dvb access debug: using fec=9
[0xb64eb0] dvb access debug: using fec=9
[0xb64eb0] dvb access debug: using transmission=0
[0xb64eb0] dvb access debug: using guard=0
[0xb64eb0] dvb access debug: using hierarchy=0
[0xb64eb0] dvb access debug: frontend has acquired carrier
[0xb64eb0] dvb access debug: frontend has acquired stable FEC
[0xb64eb0] dvb access debug: frontend has acquired sync
[0xb64eb0] dvb access debug: frontend has acquired lock
[0xb64eb0] dvb access debug: - Bit error rate: 0
[0xb64eb0] dvb access debug: - Signal strength: 40044
[0xb64eb0] dvb access debug: - SNR: 58596

# mplayer log when trying to open dvb in kernel 3.0.6
MPlayer SVN-r33094-4.5.3 (C) 2000-2011 MPlayer Team
Lecture de dvb://
dvb_tune Freq: 554000000
dvb_streaming_read, attempt N. 6 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 5 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, return 0 bytes
dvb_streaming_read, attempt N. 6 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 5 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 4 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 3 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 2 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, attempt N. 1 failed with errno 0 when reading 2048 bytes
dvb_streaming_read, return 0 bytes

# emerge --info
Portage 2.1.10.11 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.12.2-r0, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 07 Nov 2011 15:15:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo sunrise
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=9 --load-average=9.0 --with-bdeps y"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j9 -l9"
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="/usr/portage/tmp"
PORTDIR="/usr/portage/tree"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvb dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gstreamer gtk iconv ipv6 jpeg lcms libnotify lm_sensors mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb v4l vorbis x264 xcb xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="fglrx vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thierry Norret 2011-11-07 17:54:53 UTC
# w_scan kernel 2.6.38
w_scan version 20110702 (compiled for DVB API 5.2)
using settings for FRANCE
DVB aerial
DVB-T FR
frontend_type DVB-T, channellist 5
output format czap/tzap/szap/xine
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
	/dev/dvb/adapter0/frontend0 -> DVB-T "Zarlink ZL10353 DVB-T": good :-)
Using DVB-T frontend (adapter /dev/dvb/adapter0/frontend0)
-_-_-_-_ Getting frontend capabilities-_-_-_-_ 
Using DVB API 5.2
frontend 'Zarlink ZL10353 DVB-T' supports
INVERSION_AUTO
QAM_AUTO
TRANSMISSION_MODE_AUTO
GUARD_INTERVAL_AUTO
HIERARCHY_AUTO
FEC_AUTO
FREQ (174.00MHz ... 862.00MHz)
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 
Scanning 7MHz frequencies...
177500: (time: 00:00) 
184500: (time: 00:43) 
191500: (time: 00:46) 
198500: (time: 00:50) 
205500: (time: 00:53) 
212500: (time: 00:57) 
219500: (time: 01:00) 
226500: (time: 01:04) 
Scanning 8MHz frequencies...
474000: (time: 01:07) (time: 01:08) signal ok:
	QAM_AUTO f = 474000 kHz I999B8C999D999T999G999Y999
undefined coderate HP
	new transponder:
	   (QAM_64   f = 4294967 kHz I999B8C999D0T8G32Y0)
undefined coderate HP
undefined coderate HP
undefined coderate HP
undefined coderate HP
undefined coderate HP
undefined coderate HP
474167: skipped (already known transponder)
473833: skipped (already known transponder)
482000: (time: 01:22) 
.
.
.
tune to: QAM_AUTO f = 714000 kHz I999B8C999D999T999G999Y999 
(time: 11:20) undefined coderate HP
undefined coderate HP
undefined coderate HP
undefined coderate HP
undefined coderate HP
undefined coderate HP
undefined coderate HP
	service = Direct 8 (NTN)
	service = BFM TV (NTN)
	service = i>TELE (NTN)
	service = DirectStar (NTN)
	service = Gulli (NTN)
	service = France 4 (NTN)
dumping lists (32 services)
Done.

# w_scan kernel 3.0.6
w_scan version 20110702 (compiled for DVB API 5.2)
using settings for FRANCE
DVB aerial
DVB-T FR
frontend_type DVB-T, channellist 5
output format czap/tzap/szap/xine
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
	/dev/dvb/adapter0/frontend0 -> DVB-T "Zarlink ZL10353 DVB-T": good :-)
Using DVB-T frontend (adapter /dev/dvb/adapter0/frontend0)
-_-_-_-_ Getting frontend capabilities-_-_-_-_ 
Using DVB API 5.3
frontend 'Zarlink ZL10353 DVB-T' supports
INVERSION_AUTO
QAM_AUTO
TRANSMISSION_MODE_AUTO
GUARD_INTERVAL_AUTO
HIERARCHY_AUTO
FEC_AUTO
FREQ (174.00MHz ... 862.00MHz)
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ 
Scanning 7MHz frequencies...
177500: (time: 00:00) 
184500: (time: 00:29) 
191500: (time: 00:32) 
198500: (time: 00:36) 
205500: (time: 00:39) 
212500: (time: 00:43) 
219500: (time: 00:46) 
226500: (time: 00:49) 
Scanning 8MHz frequencies...
474000: (time: 00:53) (time: 00:54) signal ok:
	QAM_AUTO f = 474000 kHz I999B8C999D999T999G999Y999
Info: NIT(actual) filter timeout
474167: skipped (already known transponder)
473833: skipped (already known transponder)
482000: (time: 01:09) 
.
.
714000: (time: 06:24) (time: 06:25) signal ok:
	QAM_AUTO f = 714000 kHz I999B8C999D999T999G999Y999
Info: NIT(actual) filter timeout
714167: skipped (already known transponder)
713833: skipped (already known transponder)
722000: (time: 06:40) 
.
.
857833: (time: 09:39) 
tune to: QAM_AUTO f = 474000 kHz I999B8C999D999T999G999Y999 
(time: 09:42) Info: PAT filter timeout
Info: SDT(actual) filter timeout
Info: NIT(actual) filter timeout
tune to: QAM_AUTO f = 554000 kHz I999B8C999D999T999G999Y999 
(time: 09:57) Info: PAT filter timeout
Info: SDT(actual) filter timeout
Info: NIT(actual) filter timeout
tune to: QAM_AUTO f = 578000 kHz I999B8C999D999T999G999Y999 
(time: 10:11) Info: PAT filter timeout
Info: SDT(actual) filter timeout
Info: NIT(actual) filter timeout
tune to: QAM_AUTO f = 602000 kHz I999B8C999D999T999G999Y999 
(time: 10:26) Info: PAT filter timeout
Info: SDT(actual) filter timeout
Info: NIT(actual) filter timeout
tune to: QAM_AUTO f = 658000 kHz I999B8C999D999T999G999Y999 
(time: 10:41) Info: PAT filter timeout
Info: SDT(actual) filter timeout
Info: NIT(actual) filter timeout
tune to: QAM_AUTO f = 714000 kHz I999B8C999D999T999G999Y999 
(time: 10:55) Info: PAT filter timeout
Info: SDT(actual) filter timeout
Info: NIT(actual) filter timeout
dumping lists (0 services)
Done.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-08 21:23:16 UTC
Seems to be unrelated to bug #388553.
Comment 4 Olliver Schinagl 2011-12-26 20:00:35 UTC
Not sure if it is related to gentoo at all.

My TV box, currently having 2 partitions with 2 OSes, using gentoo and the 3.1.1 kernel, everything works as always, mythbuntu however, updated with the 3.0.0 kernel does give the same issues as mentioned above.

I'm now going to boot the gentoo kernel on the myth box and see what that does, but my guess is, that'll work just fine. So it might be an issue somewhere in the 2.6.38 - <3.1 kernels
Comment 5 Mike Pagano gentoo-dev 2012-03-04 21:08:08 UTC
Is this still a problem with later kernels.