[Bug 553616] New: em28xx-dvb work around to use my usb em2880 - xceive xc3028A usb DVB-T card without any brand but I think is a pinnacle
>>>>>>>em28xx-insert-loop.sh>>>>>>>>>>>>>>>>>>> #!/bin/bash start=0 before=$(lsmod | wc -l) #before=92 while [ `lsmod | wc -l` -gt $before ]; do after=$(lsmod | wc -l) diff=$[after-before] echo "diff=$diff" lsmod | head -$[${diff}+1] | awk '$3==0 { a="rmmod "$1; print a; system(a); }' done for i in $(seq $start 80); do echo card=$i; modprobe em28xx card=$i; modprobe em28xx-dvb; sleep 4; echo $!; ls -l /dev/dvb && /bin/bash; sync; while [ `lsmod | wc -l` -gt $before ]; do after=$(lsmod | wc -l) diff=$[after-before] echo "diff=$diff" lsmod | head -$[${diff}+1] | awk '$3==0 { a="rmmod "$1; print a; system(a); }' done done <<<<<<<<<<<<<<<<<
>>>>>>>modprobe em28xx card=10>>>>>>>>>>>>>>>>>>>>>>> [...] Nov 7 21:08:50 casaregno kernel: EEPROM ID= 0x9567eb1a, hash = 0xb8846b20 Nov 7 21:08:50 casaregno kernel: Vendor/Product ID= eb1a:2881 Nov 7 21:08:50 casaregno kernel: AC97 audio (5 sample rates) Nov 7 21:08:50 casaregno kernel: USB Remote wakeup capable Nov 7 21:08:50 casaregno kernel: 500mA max power Nov 7 21:08:50 casaregno kernel: Table at 0x04, strings=0x206a, 0x006a, 0x0000 Nov 7 21:08:50 casaregno kernel: tveeprom 6-0050: Encountered bad packet
http://bugzilla.novell.com/show_bug.cgi?id=553616
Summary: em28xx-dvb work around to use my usb em2880 - xceive
xc3028A usb DVB-T card without any brand but I think
is a pinnacle
Classification: openSUSE
Product: openSUSE 11.1
Version: Final
Platform: x86-64
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Kernel
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: diego.ercolani@gmail.com
QAContact: qa@suse.de
Found By: ---
Created an attachment (id=326149)
--> (http://bugzilla.novell.com/attachment.cgi?id=326149)
photo of the DVB-T usb card
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; it; rv:1.9.0.15)
Gecko/2009102100 SUSE/3.0.15-0.1.2 Firefox/3.0.15
To use this TV adapter, I always used the method suggested by
http://en.opensuse.org/Pinnacle_USB_PCTV, but from some months the em28xx
driver has been merged into standard linuxtv distribution. The kernel version
of linuxtv distribution drivers are finally with em28xx-dvb support.
Current kernel distribuitted by SuSE (OpenSuSE 11.1) is 2.6.27.37-0.1-default
and contains modules to support my dvb-t adapter:
modprobe -l | grep em28xx
/lib/modules/2.6.27.37-0.1-default/kernel/drivers/media/video/em28xx/em28xx.ko
/lib/modules/2.6.27.37-0.1-default/kernel/drivers/media/video/em28xx/em28xx-alsa.ko
/lib/modules/2.6.27.37-0.1-default/kernel/drivers/media/video/em28xx/em28xx-dvb.ko
I have currently installed the firmware for the xc3028 tuner and I've ever been
able to watch TV using this card under linux... sadly modifying the card number
and other parameters from time to time.
I developed a bash script that try to load em28xx module with different card
numbers (as my card isn't recognized as specific em28xx card but only generic)
and stops when a em28xx insertion make appear a /dev/dvb device.
This is the script:
the script is very simple. It suppose that currently we don't have em28xx and
related modules loaded, it begin from card=0 parameter passed to em28xx module
to 80. Every time script inserts em28xx (and related modules), test if it is
present a /dev/dvb device then remove the installed modules, increment the card
index and cycle....
With current version of the kernel distribuited by SuSE I have a strange
behaviour:
My script stop executing with card number 10 (card=10 -> Hauppauge WinTV HVR
900) and card number 11 (card=11 -> Terratec Hybrid XS).
When the script loads card number 10, in messages there are these lines:
casaregno:~ # /sbin/modprobe --ignore-install em28xx video_nr=1 vbi_nr=1
radio_nr=1 card=11 && /sbin/modprobe em28xx-dvb debug=1 && /sbin/modprobe
em28xx-alsa
header [00]. Corrupt or not a Hauppauge eeprom.
Nov 7 21:08:50 casaregno kernel: tuner-simple 6-0061: creating new instance
Nov 7 21:08:50 casaregno kernel: tuner-simple 6-0061: type set to 0 (Temic PAL
(4002 FH5))
Nov 7 21:08:50 casaregno kernel: tvp5150 6-005c: tvp5150am1 detected.
Nov 7 21:08:51 casaregno kernel: em28xx #0: V4L2 device registered as
/dev/video1 and /dev/vbi1
Nov 7 21:08:51 casaregno kernel: em28xx #0: Found Hauppauge WinTV HVR 900
Nov 7 21:08:51 casaregno kernel: em28xx audio device (eb1a:2881): interface 1,
class 1
Nov 7 21:08:51 casaregno kernel: em28xx audio device (eb1a:2881): interface 2,
class 1
Nov 7 21:08:51 casaregno kernel: usbcore: registered new interface driver
em28xx
Nov 7 21:08:51 casaregno kernel: xc2028 6-0061: creating new instance
Nov 7 21:08:51 casaregno kernel: xc2028 6-0061: type set to XCeive
xc2028/xc3028 tuner
Nov 7 21:08:51 casaregno kernel: em28xx #0/2: xc3028 attached
Nov 7 21:08:51 casaregno kernel: DVB: registering new adapter (em28xx #0)
Nov 7 21:08:51 casaregno kernel: DVB: registering frontend 0 (Zarlink ZL10353
DVB-T)...
Nov 7 21:08:51 casaregno kernel: Successfully loaded em28xx-dvb
Nov 7 21:08:51 casaregno kernel: Em28xx: Initialized (Em28xx dvb Extension)
extension
Nov 7 21:08:51 casaregno kernel: Em28xx: Initialized (Em28xx Audio Extension)
extension
Nov 7 21:08:51 casaregno kernel: usbcore: registered new interface driver
snd-usb-audio
Nov 7 21:08:51 casaregno kernel: tvp5150 6-005c: tvp5150am1 detected.
Nov 7 21:08:52 casaregno pulseaudio[9388]: alsa-util.c: Error opening PCM
device hw:3: Permission denied
Nov 7 21:08:52 casaregno pulseaudio[9388]: module.c: Failed to load module
"module-alsa-source" (argument: "device_id=3
source_name=alsa_input.usb_device_eb1a_2881_noserial_if1_sound_card_0_alsa_capture_0_0
tsched=1"): initialization failed.
<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>>>>>>>log/messages when trying to watch a dvb channel>>>>>>>>>>
Nov 7 21:09:35 casaregno kernel: xc2028 6-0061: xc2028/3028 firmware name not
set!
Nov 7 21:09:36 casaregno kernel: xc2028 6-0061: xc2028/3028 firmware name not
set!
Nov 7 21:09:37 casaregno kernel: xc2028 6-0061: xc2028/3028 firmware name not
set!
Nov 7 21:09:38 casaregno kernel: xc2028 6-0061: xc2028/3028 firmware name not
set!
<<<<<<<<<<<<<<<<<< without removing the card, I unload the em28xx and em28xx-dvb module then I
load the same module with card=11 parameter, these are the lines in messages
file:
casaregno:~ # modprobe -r snd_usb_audio em28xx_dvb dvb_core snd_usb_lib
snd_hwdep tuner_simple tuner_types tuner_xc2028 zl10353 tvp5150 >>>>>corresponding log/messages file>>>>>>>>>>>
Nov 7 21:10:42 casaregno kernel: Em28xx: Removed (Em28xx Audio Extension)
extension
Nov 7 21:11:04 casaregno kernel: usbcore: deregistering interface driver
snd-usb-audio
Nov 7 21:11:04 casaregno kernel: xc2028 6-0061: destroying instance
Nov 7 21:11:04 casaregno kernel: Em28xx: Removed (Em28xx dvb Extension)
extension
Nov 7 21:11:04 casaregno kernel: usbcore: deregistering interface driver
em28xx
Nov 7 21:11:04 casaregno kernel: em28xx #0: disconnecting em28xx #0 video
Nov 7 21:11:04 casaregno kernel: em28xx #0: V4L2 devices /dev/video1 and
/dev/vbi1 deregistered
Nov 7 21:11:04 casaregno kernel: tuner-simple 6-0061: destroying instance
<<<<<<<<<<<<<<< casaregno:~ # /sbin/modprobe --ignore-install em28xx video_nr=1 vbi_nr=1
radio_nr=1 card=11 && /sbin/modprobe em28xx-dvb debug=1 && /sbin/modprobe
em28xx-alsa >>>>>>>>>corresponding log/messages file>>>>>>>>>>>>>>>>>>>>
Nov 7 21:13:09 casaregno kernel: EEPROM ID= 0x9567eb1a, hash = 0xb8846b20
Nov 7 21:13:09 casaregno kernel: Vendor/Product ID= eb1a:2881
Nov 7 21:13:09 casaregno kernel: AC97 audio (5 sample rates)
Nov 7 21:13:09 casaregno kernel: USB Remote wakeup capable
Nov 7 21:13:09 casaregno kernel: 500mA max power
Nov 7 21:13:09 casaregno kernel: Table at 0x04, strings=0x206a, 0x006a, 0x0000
Nov 7 21:13:09 casaregno kernel: xc2028 6-0061: creating new instance
Nov 7 21:13:09 casaregno kernel: xc2028 6-0061: type set to XCeive
xc2028/xc3028 tuner
Nov 7 21:13:09 casaregno kernel: firmware: requesting xc3028-v27.fw
Nov 7 21:13:09 casaregno kernel: xc2028 6-0061: Loading 80 firmware images
from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
Nov 7 21:13:09 casaregno kernel: xc2028 6-0061: Loading firmware for type=BASE
(1), id 0000000000000000.
Nov 7 21:13:10 casaregno kernel: xc2028 6-0061: Loading firmware for type=(0),
id 000000000000b700.
Nov 7 21:13:10 casaregno kernel: SCODE (20000000), id 000000000000b700:
Nov 7 21:13:10 casaregno kernel: xc2028 6-0061: Loading SCODE for type=MONO
SCODE HAS_IF_4320 (60008000), id 0000000000008000.
Nov 7 21:13:10 casaregno kernel: tvp5150 6-005c: tvp5150am1 detected.
Nov 7 21:13:10 casaregno kernel: em28xx #0: V4L2 device registered as
/dev/video1 and /dev/vbi1
Nov 7 21:13:10 casaregno kernel: em28xx #0: Found Terratec Hybrid XS
Nov 7 21:13:10 casaregno kernel: em28xx audio device (eb1a:2881): interface 1,
class 1
Nov 7 21:13:10 casaregno kernel: em28xx audio device (eb1a:2881): interface 2,
class 1
Nov 7 21:13:10 casaregno kernel: usbcore: registered new interface driver
em28xx
Nov 7 21:13:10 casaregno kernel: usbcore: registered new interface driver
snd-usb-audio
Nov 7 21:13:10 casaregno kernel: xc2028 6-0061: attaching existing instance
Nov 7 21:13:10 casaregno kernel: xc2028 6-0061: type set to XCeive
xc2028/xc3028 tuner
Nov 7 21:13:10 casaregno kernel: em28xx #0/2: xc3028 attached
Nov 7 21:13:10 casaregno kernel: DVB: registering new adapter (em28xx #0)
Nov 7 21:13:10 casaregno kernel: DVB: registering frontend 0 (Zarlink ZL10353
DVB-T)...
Nov 7 21:13:10 casaregno kernel: Successfully loaded em28xx-dvb
Nov 7 21:13:10 casaregno kernel: Em28xx: Initialized (Em28xx dvb Extension)
extension
Nov 7 21:13:10 casaregno kernel: Em28xx: Initialized (Em28xx Audio Extension)
extension
Nov 7 21:13:11 casaregno kernel: tvp5150 6-005c: tvp5150am1 detected.
Nov 7 21:13:11 casaregno pulseaudio[9388]: alsa-util.c: Cannot find fallback
mixer control "Mic".
<<<<<<<<<<<<<<<<< and I can see dvb channel, in the messages file I see the firmware loading: >>>>>>>>>>>log/messages while I start to see a DVB channel>>>>>>>>>>>>>>
Nov 7 21:13:55 casaregno kernel: xc2028 6-0061: Loading firmware for type=BASE
F8MHZ (3), id 0000000000000000.
Nov 7 21:13:56 casaregno kernel: xc2028 6-0061: Loading firmware for
type=D2620 DTV8 (208), id 0000000000000000.
Nov 7 21:13:56 casaregno kernel: xc2028 6-0061: Loading SCODE for type=DTV6
QAM DTV7 DTV78 DTV8 ZARLINK456 SCODE HAS_IF_4760 (620003e0), id
0000000000000000.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Now here it comes the problem:
It seem that my card is working when invoking
/sbin/modprobe --ignore-install em28xx video_nr=1 vbi_nr=1 radio_nr=1 card=11
&& /sbin/modprobe em28xx-dvb debug=1 && /sbin/modprobe em28xx-alsa
but If I remove all the modules:
casaregno:~ # modprobe -r em28xx_alsa snd_usb_audio snd_usb_lib em28xx_dvb
dvb_core snd_hwdep tvp5150 em28xx videobuf_vmalloc tuner_xc2028 zl10353
Then I unplug the usb card, I replug the card.
I remove the modules autoloaded by my kernel (that try to configure my card as
generic em28xx card): >>>>>>>>>>>>>>>>>authomatic recognized card>>>>>>>>>>>>>>>>>>>>>>>>>
Nov 7 21:18:17 casaregno kernel: tvp5150 6-005c: tvp0150am1 detected.
Nov 7 21:18:17 casaregno kernel: em28xx #0: V4L2 device registered as
/dev/video1 and /dev/vbi1
Nov 7 21:18:17 casaregno kernel: em28xx #0: Found Unknown EM2750/28xx video
grabber
Nov 7 21:18:17 casaregno kernel: em28xx audio device (eb1a:2881): interface 1,
class 1
Nov 7 21:18:17 casaregno kernel: em28xx audio device (eb1a:2881): interface 2,
class 1
Nov 7 21:18:18 casaregno kernel: usbcore: registered new interface driver
em28xx
Nov 7 21:18:18 casaregno kernel: usbcore: registered new interface driver
snd-usb-audio
Nov 7 21:18:18 casaregno kernel: tvp5150 6-005c: tvp5150am1 detected.
<<<<<<<<<<<<<<<<<<<<< Then I remove the modules autoloaded by my kernel:
casaregno:~ # modprobe -r snd_usb_audio snd_usb_lib snd_hwdep tvp5150 em28xx
videobuf_vmalloc >>>>>>>>>>>>>>modules remove>>>>>>>>>>>>>>>>>>>>
Nov 7 21:18:40 casaregno kernel: usbcore: deregistering interface driver
snd-usb-audio
Nov 7 21:18:40 casaregno kernel: usbcore: deregistering interface driver
em28xx
Nov 7 21:18:40 casaregno kernel: em28xx #0: disconnecting em28xx #0 video
Nov 7 21:18:40 casaregno kernel: em28xx #0: V4L2 devices /dev/video1 and
/dev/vbi1 deregistered
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Load the modules with the parameters I found to be correct:
casaregno:~ # /sbin/modprobe --ignore-install em28xx video_nr=1 vbi_nr=1
radio_nr=1 card=11 && /sbin/modprobe em28xx-dvb debug=1 && /sbin/modprobe
em28xx-alsa >>>>>>>>>>>>>>>>>>corresponding log/messages>>>>>>>>>>>>>>>>>>>>
Nov 7 21:23:04 casaregno kernel: EEPROM ID= 0x9567eb1a, hash = 0xb8846b20
Nov 7 21:23:04 casaregno kernel: Vendor/Product ID= eb1a:2881
Nov 7 21:23:04 casaregno kernel: AC97 audio (5 sample rates)
Nov 7 21:23:04 casaregno kernel: USB Remote wakeup capable
Nov 7 21:23:04 casaregno kernel: 500mA max power
Nov 7 21:23:04 casaregno kernel: Table at 0x04, strings=0x206a, 0x006a, 0x0000
Nov 7 21:23:05 casaregno kernel: xc2028 6-0061: creating new instance
Nov 7 21:23:05 casaregno kernel: xc2028 6-0061: type set to XCeive
xc2028/xc3028 tuner
Nov 7 21:23:05 casaregno kernel: firmware: requesting xc3028-v27.fw
Nov 7 21:23:05 casaregno kernel: xc2028 6-0061: Loading 80 firmware images
from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
Nov 7 21:23:05 casaregno kernel: xc2028 6-0061: Loading firmware for type=BASE
(1), id 0000000000000000.
Nov 7 21:23:06 casaregno kernel: xc2028 6-0061: Loading firmware for type=(0),
id 000000000000b700.
Nov 7 21:23:06 casaregno kernel: SCODE (20000000), id 000000000000b700:
Nov 7 21:23:06 casaregno kernel: xc2028 6-0061: Loading SCODE for type=MONO
SCODE HAS_IF_4320 (60008000), id 0000000000008000.
Nov 7 21:23:06 casaregno kernel: tvp5150 6-005c: tvp5150am1 detected.
Nov 7 21:23:06 casaregno kernel: em28xx #0: V4L2 device registered as
/dev/video1 and /dev/vbi1
Nov 7 21:23:06 casaregno kernel: em28xx #0: Found Terratec Hybrid XS
Nov 7 21:23:06 casaregno kernel: em28xx audio device (eb1a:2881): interface 1,
class 1
Nov 7 21:23:06 casaregno kernel: em28xx audio device (eb1a:2881): interface 2,
class 1
Nov 7 21:23:06 casaregno kernel: usbcore: registered new interface driver
em28xx
Nov 7 21:23:06 casaregno kernel: zl10353_read_register: readreg error
(reg=127, ret==-19)
Nov 7 21:23:06 casaregno kernel: em28xx #0/2: dvb frontend not attached. Can't
attach xc3028
Nov 7 21:23:06 casaregno kernel: Em28xx: Initialized (Em28xx dvb Extension)
extension
Nov 7 21:23:06 casaregno kernel: Em28xx: Initialized (Em28xx Audio Extension)
extension
Nov 7 21:23:06 casaregno kernel: usbcore: registered new interface driver
snd-usb-audio
Nov 7 21:23:06 casaregno kernel: tvp5150 6-005c: tvp5150am1 detected.
Nov 7 21:23:07 casaregno pulseaudio[9388]: alsa-util.c: Cannot find fallback
mixer control "Mic".
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< It's possible to notice there are many errors in the last log... and of course,
card doesn't work, but before, the same module loading was correctly executed
and card was usable.
Of course, if I remove the modules, load em28xx module with card=10, unload,
then reload with card=11, dvb card return working.
Reproducible: Always
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=553616
User diego.ercolani@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=553616#c1
--- Comment #1 from Diego Ercolani
http://bugzilla.novell.com/show_bug.cgi?id=553616
zhu rensheng
http://bugzilla.novell.com/show_bug.cgi?id=553616
--- Comment #2 from Diego Ercolani
http://bugzilla.novell.com/show_bug.cgi?id=553616
--- Comment #3 from Diego Ercolani
Nov 15 21:34:27 linux-r93y kernel: [ 3497.014593] xc2028 1-0061: Loading firmware for type=D2633 DTV8 (210), id 0000000000000000. Nov 15 21:34:27 linux-r93y kernel: [ 3497.027365] xc2028 1-0061: Loading SCODE for type=DTV6 QAM DTV7 DTV78 DTV8 ZARLINK456 SCODE HAS_IF_4760 (620003e0), id 0000000000000000. Nov 15 21:34:27 linux-r93y kernel: [ 3497.331035] submit of urb 0 failed (error=-90)
while on standard error is printed this: Playing dvb://Italia 1. dvb_tune Freq: 794000000 ERROR IN SETTING DMX_FILTER 720 for fd 5: ERRNO: 90ERROR, COULDN'T SET CHANNEL 60: Failed to open dvb://Italia 1.
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=553616
--- Comment #4 from Diego Ercolani
http://bugzilla.novell.com/show_bug.cgi?id=553616
http://bugzilla.novell.com/show_bug.cgi?id=553616#c
Jeff Mahoney
http://bugzilla.novell.com/show_bug.cgi?id=553616
http://bugzilla.novell.com/show_bug.cgi?id=553616#c5
Brandon Philips
http://bugzilla.novell.com/show_bug.cgi?id=553616
http://bugzilla.novell.com/show_bug.cgi?id=553616#c6
Diego Ercolani
http://bugzilla.novell.com/show_bug.cgi?id=553616
http://bugzilla.novell.com/show_bug.cgi?id=553616#c7
--- Comment #7 from Diego Ercolani
http://bugzilla.novell.com/show_bug.cgi?id=553616
http://bugzilla.novell.com/show_bug.cgi?id=553616#c8
Brandon Philips
Created an attachment (id=331585) --> (http://bugzilla.novell.com/attachment.cgi?id=331585) [details] dmesg file after booting to runlevel 3 (before reconfiguring X11 with vesa) without any option added to modprobe.d, tv cards are recognized by the kernel
I did the test with your kernel of the day "2.6.32-3.99.27.fa0eb53-desktop #1 SMP PREEMPT 2009-12-07 16:49:00 +0100 x86_64"
Ok. Thanks for testing that out. Since this is happening under 2.6.32 the upstream maintainer would be much more able to help you out. Could you report the bug with http://bugzilla.kernel.org and CC brandon@ifup.org? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=553616
https://bugzilla.novell.com/show_bug.cgi?id=553616#c9
Brandon Philips
participants (1)
-
bugzilla_noreply@novell.com