Bug 87711

Summary: unable to correctly initialize Hauppauge HVR 900 on analog TV
Product: v4l-dvb Reporter: bexizuo (developer.m3)
Component: em28xxAssignee: em28xx (v4l-dvb_em28xx)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: x86-64   
OS: Linux   
Kernel Version: 3.17.2 Subsystem:
Regression: No Bisected commit-id:

Description bexizuo 2014-11-04 16:40:25 UTC
Hi all, 

my TV tuner Hauppauge normally works on wheezy's stable kernel 3.2.63 but on 3.17.2 is some strange problem, i'm unable to identify the difference, 

outputs on 3.2.63 when it's running correctly: 

kernel: 
[   65.728570] usb 2-1.3: new high-speed USB device number 6 using ehci_hcd
[   65.826435] usb 2-1.3: New USB device found, idVendor=2040, idProduct=6500
[   65.826442] usb 2-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[   65.826446] usb 2-1.3: Product: WinTV HVR-900
[   65.826449] usb 2-1.3: SerialNumber: 4026875858
[   65.939542] IR NEC protocol handler initialized
[   65.952513] IR RC5(x) protocol handler initialized
[   65.997360] em28xx: New device WinTV HVR-900 @ 480 Mbps (2040:6500, interface 0, class 0)
[   65.997571] em28xx #0: chip ID is em2882/em2883
[   66.009094] IR RC6 protocol handler initialized
[   66.010442] IR JVC protocol handler initialized
[   66.011752] IR Sony protocol handler initialized
[   66.014106] IR MCE Keyboard/mouse protocol handler initialized
[   66.016068] lirc_dev: IR Remote Control driver registered, major 250 
[   66.028445] IR LIRC bridge handler initialized
[   66.173169] em28xx #0: i2c eeprom 00: 1a eb 67 95 40 20 00 65 50 12 5c 03 82 1e 6a 18
[   66.173184] em28xx #0: i2c eeprom 10: 00 00 24 57 66 07 00 00 60 00 00 00 02 00 00 00
[   66.173197] em28xx #0: i2c eeprom 20: 46 00 01 00 f0 10 02 00 b8 00 00 00 5b 00 00 00
[   66.173209] em28xx #0: i2c eeprom 30: 00 00 20 40 20 6e 02 20 10 01 01 01 00 00 00 00
[   66.173222] em28xx #0: i2c eeprom 40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   66.173233] em28xx #0: i2c eeprom 50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   66.173245] em28xx #0: i2c eeprom 60: 00 00 00 00 00 00 00 00 00 00 18 03 34 00 30 00
[   66.173257] em28xx #0: i2c eeprom 70: 32 00 36 00 38 00 37 00 35 00 38 00 35 00 38 00
[   66.173270] em28xx #0: i2c eeprom 80: 00 00 1e 03 57 00 69 00 6e 00 54 00 56 00 20 00
[   66.173282] em28xx #0: i2c eeprom 90: 48 00 56 00 52 00 2d 00 39 00 30 00 30 00 00 00
[   66.173294] em28xx #0: i2c eeprom a0: 84 12 00 00 05 50 1a 7f d4 78 23 f0 fd d0 18 85
[   66.173306] em28xx #0: i2c eeprom b0: ff 00 00 00 04 84 0a 00 01 01 20 77 00 40 d2 3f
[   66.173318] em28xx #0: i2c eeprom c0: 05 f0 74 02 01 00 01 79 52 00 00 00 00 00 00 00
[   66.173331] em28xx #0: i2c eeprom d0: 84 12 00 00 05 50 1a 7f d4 78 23 f0 fd d0 18 85
[   66.173343] em28xx #0: i2c eeprom e0: ff 00 00 00 04 84 0a 00 01 01 20 77 00 40 d2 3f
[   66.173355] em28xx #0: i2c eeprom f0: 05 f0 74 02 01 00 01 79 52 00 00 00 00 00 00 00
[   66.173369] em28xx #0: EEPROM ID= 0x9567eb1a, EEPROM hash = 0x43a734dd
[   66.173372] em28xx #0: EEPROM info:
[   66.173374] em28xx #0:	AC97 audio (5 sample rates)
[   66.173377] em28xx #0:	500mA max power
[   66.173380] em28xx #0:	Table at 0x24, strings=0x1e82, 0x186a, 0x0000
[   66.174895] em28xx #0: Identified as Hauppauge WinTV HVR 900 (card=10)
[   66.176747] tveeprom 10-0050: Hauppauge model 65008, rev A1C0, serial# 344018
[   66.176753] tveeprom 10-0050: tuner model is Xceive XC3028 (idx 120, type 71)
[   66.176759] tveeprom 10-0050: TV standards PAL(B/G) PAL(I) PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xd4)
[   66.176763] tveeprom 10-0050: audio processor is None (idx 0)
[   66.176767] tveeprom 10-0050: has radio
[   66.182809] tvp5150 10-005c: chip found @ 0xb8 (em28xx #0)
[   66.244214] tvp5150 10-005c: tvp5150am1 detected.
[   66.259200] i2c-core: driver [tuner] using legacy suspend method
[   66.259204] i2c-core: driver [tuner] using legacy resume method
[   66.264800] tuner 10-0061: Tuner -1 found with type(s) Radio TV.
[   66.292445] xc2028 10-0061: creating new instance
[   66.292452] xc2028 10-0061: type set to XCeive xc2028/xc3028 tuner
[   66.312004] usb 2-1.3: firmware: agent loaded xc3028-v27.fw into memory
[   66.312014] xc2028 10-0061: Loading 80 firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
[   66.359326] xc2028 10-0061: Loading firmware for type=BASE MTS (5), id 0000000000000000.
[   67.527808] xc2028 10-0061: Loading firmware for type=MTS (4), id 000000000000b700.
[   67.548394] xc2028 10-0061: Loading SCODE for type=MTS LCD NOGD MONO IF SCODE HAS_IF_4500 (6002b004), id 000000000000b700.
[   67.720954] Registered IR keymap rc-hauppauge
[   67.721130] input: em28xx IR (em28xx #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/rc/rc0/input21
[   67.721329] rc0: em28xx IR (em28xx #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/rc/rc0
[   67.721703] em28xx #0: Config register raw data: 0x50
[   67.722456] em28xx #0: AC97 vendor ID = 0xffffffff
[   67.722831] em28xx #0: AC97 features = 0x6a90
[   67.722835] em28xx #0: Empia 202 AC97 audio processor detected
[   67.934038] em28xx #0: v4l2 driver version 0.1.3
[   67.980503] xc2028 10-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.

mplayer:  cmd: mplayer tv:// -tv norm=PAL-BG:freq=687.5:input=0:device=/dev/video1:alsa:amode=1:adevice=hw.2,0:audiorate=48000:forceaudio:immediatemode=0 -hardframedrop -ao alsa

output: 
MPlayer svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: Hauppauge WinTV HVR 900
 Tuner cap:
 Tuner rxs:
 Capabilities:  video capture  VBI capture device  tuner  audio  read/write  streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YUYV
v4l2: current audio mode is : STEREO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 640x480 => 640x480 Packed YUY2 
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:   7.5 V:   7.5 A-V:  0.000 ct:  0.250 187/187  0%  9%  0.0% 0 0 
v4l2: 267 frames successfully processed, 0 frames dropped.


and outputs when it's not running: 
kernel:
[   54.948450] usb 2-1.3: new high-speed USB device number 6 using ehci-pci
[   55.046419] usb 2-1.3: New USB device found, idVendor=2040, idProduct=6500
[   55.046426] usb 2-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[   55.046431] usb 2-1.3: Product: WinTV HVR-900
[   55.046435] usb 2-1.3: SerialNumber: 4026875858
[   55.169609] em28xx: New device  WinTV HVR-900 @ 480 Mbps (2040:6500, interface 0, class 0)
[   55.169613] em28xx: Video interface 0 found: isoc
[   55.169614] em28xx: DVB interface 0 found: isoc
[   55.169745] em28xx: chip ID is em2882/3
[   55.340827] em2882/3 #0: EEPROM ID = 1a eb 67 95, EEPROM hash = 0x43a734dd
[   55.340832] em2882/3 #0: EEPROM info:
[   55.340835] em2882/3 #0: 	AC97 audio (5 sample rates)
[   55.340837] em2882/3 #0: 	500mA max power
[   55.340840] em2882/3 #0: 	Table at offset 0x24, strings=0x1e82, 0x186a, 0x0000
[   55.340844] em2882/3 #0: Identified as Hauppauge WinTV HVR 900 (card=10)
[   55.342835] tveeprom 10-0050: Hauppauge model 65008, rev A1C0, serial# 344018
[   55.342841] tveeprom 10-0050: tuner model is Xceive XC3028 (idx 120, type 71)
[   55.342847] tveeprom 10-0050: TV standards PAL(B/G) PAL(I) PAL(D/D1/K) ATSC/DVB Digital (eeprom 0xd4)
[   55.342851] tveeprom 10-0050: audio processor is None (idx 0)
[   55.342854] tveeprom 10-0050: has radio
[   55.342858] em2882/3 #0: analog set to isoc mode.
[   55.342860] em2882/3 #0: dvb set to isoc mode.
[   55.342889] em28xx audio device (2040:6500): interface 1, class 1
[   55.342907] em28xx audio device (2040:6500): interface 2, class 1
[   55.342953] usbcore: registered new interface driver em28xx
[   55.371200] em2882/3 #0: Registering V4L2 extension
[   55.402851] tvp5150 10-005c: chip found @ 0xb8 (em2882/3 #0)
[   55.402856] tvp5150 10-005c: tvp5150am1 detected.
[   55.424975] tuner 10-0061: Tuner -1 found with type(s) Radio TV.
[   55.479020] xc2028 10-0061: creating new instance
[   55.479023] xc2028 10-0061: type set to XCeive xc2028/xc3028 tuner
[   55.505653] xc2028 10-0061: Loading 80 firmware images from xc3028-v27.fw, type: xc2028 firmware, ver 2.7
[   55.580177] usbcore: registered new interface driver snd-usb-audio
[   55.648495] xc2028 10-0061: Loading firmware for type=BASE F8MHZ MTS (7), id 0000000000000000.
[   56.819291] MTS (4), id 00000000000000ff:
[   56.819300] xc2028 10-0061: Loading firmware for type=MTS (4), id 0000000100000007.
[   56.970310] em2882/3 #0: V4L2 video device registered as video1
[   56.970315] em2882/3 #0: V4L2 VBI device registered as vbi0
[   56.971132] em2882/3 #0: V4L2 extension successfully initialized
[   56.971138] em28xx: Registered (Em28xx v4l2 Extension) extension
[   57.024430] em2882/3 #0: Binding DVB extension
[   57.202512] xc2028 10-0061: attaching existing instance
[   57.202519] xc2028 10-0061: type set to XCeive xc2028/xc3028 tuner
[   57.202523] em2882/3 #0: em2882/3 #0/2: xc3028 attached
[   57.202527] DVB: registering new adapter (em2882/3 #0)
[   57.202536] usb 2-1.3: DVB: registering adapter 0 frontend 0 (Zarlink ZL10353 DVB-T)...
[   57.203224] em2882/3 #0: DVB extension successfully initialized
[   57.203230] em28xx: Registered (Em28xx dvb Extension) extension
[   57.224602] em2882/3 #0: Registering input extension
[   57.257295] Registered IR keymap rc-hauppauge
[   57.257568] input: em28xx IR (em2882/3 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/rc/rc0/input22
[   57.257729] rc0: em28xx IR (em2882/3 #0) as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/rc/rc0
[   57.258108] em2882/3 #0: Input extension successfully initalized
[   57.258114] em28xx: Registered (Em28xx Input Extension) extension


mplayer: 
mplayer tv:// -tv norm=PAL-BG:freq=687.5:input=0:device=/dev/video1:alsa:amode=1:adevice=hw.2,0:audiorate=48000:forceaudio:immediatemode=0 -hardframedrop -ao alsa 
MPlayer svn r34540 (Debian), built with gcc-4.7 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: Hauppauge WinTV HVR 900
 Tuner cap:
 Tuner rxs:
 Capabilities:  video capture  VBI capture device  tuner  read/write  streaming
 supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video;
 Current input: 0
 Current format: YUYV
v4l2: current audio mode is : STEREO
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set mute failed: Invalid argument
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [vdpau] 720x576 => 720x576 Packed YUY2 
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A:   4.4 V:   3.1 A-V:  1.284 ct:  0.250 188/188  0% 17%  0.1% 50 0 


           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:  14.7 V:   7.2 A-V:  7.447 ct:  0.250 445/445  0%  7%  0.1% 307 0 
v4l2: ioctl set mute failed: Invalid argument
v4l2: 447 frames successfully processed, 0 frames dropped.

Exiting... (Quit)


please help me ...

Thanks for all replies
Comment 1 bexizuo 2014-11-05 17:22:45 UTC
better described issue: video stream stops and no sound ...