[pvrusb2] bad behavior in v4l-dvb.git

Mike Isely isely at isely.net
Tue Jun 27 08:13:57 CDT 2006


Mike:

There's a lot less output in the kernel because I committed a change to 
turn off a lot of debug bits (there had been previous complaints about 
that and I had promised to reduce that before anything goes into the 
kernel).  Admittedly, the "registered device" message should still have 
been there.

As for the bad resolution, I last tested with xawtv and mplayer and didn't 
see this problem.  There was a fix I put in last week which straightened 
out all the VIDIOC_[S|G|TRY]_FORMAT brain damage that had been there all 
along - it needed to go in order to support the new cx2341x module 
properly.

This unfortunately is what happens when lots of changes are made to a 
stable driver which then doesn't get a lot of testing :-(

I will investigate the symptoms tonight.

   -Mike


On Tue, 27 Jun 2006, Michael Krufky wrote:

> Mike,
>
> Mauro has requested that Linus pull the pvrusb2 driver from his git tree.
>
> I tested the most recent version from the mercurial repository on
> linuxtv.org.  (This is the same code that was pushed to Linus)
>
> Please check out the sample capture located at
> http://linuxtv.org/~mkrufky/pvrusb2.mpeg
>
> The picture is distorted and stretched horizontally past the limits of
> the screen, (it seems to be too wide, by a factor of 2)
>
> No errors show up in the kernel log, but I have noticed that the init
> routine seems to be much less verbose than last time I had tested the
> driver:
>
> [4294701.582000] usb 3-3: new high speed USB device using ehci_hcd and
> address 3
> [4294701.721000] usb 3-3: reset high speed USB device using ehci_hcd and
> address 3
> [4294702.204000] tuner 1-0043: chip found @ 0x86 (pvrusb2_a)
> [4294702.204000] tda9887 1-0043: tda988[5/6/7] found @ 0x43 (tuner)
> [4294702.215000] tuner 1-0061: chip found @ 0xc2 (pvrusb2_a)
> [4294702.218000] cx25840 1-0044: cx25843-23 found @ 0x88 (pvrusb2_a)
> [4294702.978000] cx25840 1-0044: loaded v4l-cx25840.fw firmware (13837
> bytes)
> [4294703.010000] wm8775 1-001b: chip found @ 0x36 (pvrusb2_a)
> [4294703.021000] tveeprom 1-00a2: Hauppauge model 24012, rev C2A3,
> serial# 8537782
> [4294703.021000] tveeprom 1-00a2: tuner model is TCL MFNM05-4 (idx 103,
> type 43)
> [4294703.021000] tveeprom 1-00a2: TV standards NTSC(M) (eeprom 0x08)
> [4294703.021000] tveeprom 1-00a2: audio processor is CX25843 (idx 37)
> [4294703.021000] tveeprom 1-00a2: decoder processor is CX25843 (idx 30)
> [4294703.021000] tveeprom 1-00a2: has radio, has IR remote
> [4294703.021000] tuner 1-0061: type set to 43 (Philips NTSC MK3
> (FM1236MK3 or FM1236/F))
> [4294703.097000] tda9887 1-0043: Data bytes: b=0xd4 c=0x30 e=0x44
> [4294703.097000] tuner 1-0061: Tuner mode:      analog TV
> [4294703.097000] tuner 1-0061: Frequency:       175.25 MHz
> [4294703.097000] tuner 1-0061: Standard:        0x00001000
> [4294703.099000] cx25840 1-0044: Video signal:              not present
> [4294703.099000] cx25840 1-0044: Detected format:           NTSC-M
> [4294703.099000] cx25840 1-0044: Specified standard:        NTSC-M
> [4294703.099000] cx25840 1-0044: Specified video input:     Composite 7
> [4294703.099000] cx25840 1-0044: Specified audioclock freq: 44100 Hz
> [4294703.102000] cx25840 1-0044: Detected audio mode:       forced mode
> [4294703.102000] cx25840 1-0044: Detected audio standard:   no detected
> audio standard
> [4294703.102000] cx25840 1-0044: Audio muted:               yes
> [4294703.102000] cx25840 1-0044: Audio microcontroller:     running
> [4294703.102000] cx25840 1-0044: Configured audio standard: automatic
> detection
> [4294703.102000] cx25840 1-0044: Configured audio system:   BTSC
> [4294703.102000] cx25840 1-0044: Specified audio input:     Tuner (In8)
> [4294703.102000] cx25840 1-0044: Preferred audio mode:      stereo
> [4294703.102000] wm8775 1-001b: Input: 2
> [4294703.102000] pvrusb2: Device initialization completed successfully.
>
>
> What happened to:  pvrusb2[0]: registered device video1 [mpeg] ???
>
> VIDIOC_LOG_STATUS seems to have revealed something, though:
>
> Status Log:
>
>   [4295694.646000] pvrusb2: =================  START STATUS CARD #0
> =================
>   [4295694.646000] tda9887 1-0043: Data bytes: b=0xd4 c=0x30 e=0x44
>   [4295694.646000] tuner 1-0061: Tuner mode:      analog TV
>   [4295694.646000] tuner 1-0061: Frequency:       127.25 MHz
>   [4295694.646000] tuner 1-0061: Standard:        0x00001000
>   [4295694.647000] cx25840 1-0044: Video signal:              present
>   [4295694.647000] cx25840 1-0044: Detected format:           NTSC-M
>   [4295694.648000] cx25840 1-0044: Specified standard:        NTSC-M
>   [4295694.648000] cx25840 1-0044: Specified video input:     Composite 7
>   [4295694.648000] cx25840 1-0044: Specified audioclock freq: 44100 Hz
>   [4295694.652000] cx25840 1-0044: Detected audio mode:       stereo
> with SAP
>   [4295694.652000] cx25840 1-0044: Detected audio standard:   BTSC
>   [4295694.652000] cx25840 1-0044: Audio muted:               yes
>   [4295694.652000] cx25840 1-0044: Audio microcontroller:     stopped
>   [4295694.652000] cx25840 1-0044: Configured audio standard: automatic
> detection
>   [4295694.652000] cx25840 1-0044: Configured audio system:   BTSC
>   [4295694.652000] cx25840 1-0044: Specified audio input:     Tuner (In8)
>   [4295694.652000] cx25840 1-0044: Preferred audio mode:      stereo
>   [4295694.652000] wm8775 1-001b: Input: 2 (muted)
>   [4295694.652000] pvrusb2: cx2341x config:
>   [4295694.652000] pvrusb2: Stream: MPEG-2 Program Stream
>   [4295694.652000] pvrusb2: Video:  384x288, 30 fps
>   [4295694.652000] pvrusb2: Video:  MPEG-2, 4x3, Variable Bitrate,
> 6000000, Peak 8000000
>   [4295694.652000] pvrusb2: Video:  GOP Size 12, 2 B-Frames, GOP
> Closure, No 3:2 Pulldown
>   [4295694.652000] pvrusb2: Audio:  44.1 kHz, Layer II, 224 kbps,
> Stereo, No Emphasis, No CRC
>   [4295694.652000] pvrusb2: Spatial Filter:  Manual, Luma 1D
> Horizontal, Chroma 1D Horizontal, 0
>   [4295694.652000] pvrusb2: Temporal Filter: Manual, 0
>   [4295694.652000] pvrusb2: Median Filter:   Off, Luma [0, 255], Chroma
> [0, 255]
>   [4295694.652000] pvrusb2: ==================  END STATUS CARD #0
> ==================
>
> Notice how the encoder resolution is set to 384x288...  I am used to it
> being 720x480, 30fps by default.  Has something changed in regards to
> the default encoder settings?
>
> Cheers,
>
> Mike Krufky
> _______________________________________________
> pvrusb2 mailing list
> pvrusb2 at isely.net
> http://www.isely.net/cgi-bin/mailman/listinfo/pvrusb2
>

-- 
                         |         Mike Isely          |     PGP fingerprint
      Spammers Die!!     |                             | 03 54 43 4D 75 E5 CC 92
                         |   isely @ pobox (dot) com   | 71 16 01 E2 B5 F5 C1 E8
                         |                             |


More information about the pvrusb2 mailing list