[ivtv-users] PVR 150 no audio on line 1

Andy Walls awalls at md.metrocast.net
Wed Nov 9 02:18:54 CET 2011


Hi Stephan,

I've been very busy lately and haven't had time to answer.

It is true that the firmware has bugs. The ivtv driver tries to work around the known ones though.

Are you continuously capturing for long periods of time before the audio quits? The reason I ask is that I recall the CX23418 (and likely the CX23416) has a finite number of bits for its firmware PTS counter. I am *speculating* that it may not behave well if it rolls over. 2^32 / 90kHz ~= 13 hours, I think.

The audio unit inside the CX23416 is separate from the video unit, so it can be the case that one stops working properly while the other keeps working.

Have you turned on the debug flags in the ivtv module to see what is differnt in the logs between proper audio encoding and broken audio encoding?

What does the PCM audio from /dev/video24 sound like or what does the PCM data look like when the MPEG audio isn't working?

Regards,
Andy 
Has the ever been a kernel version


-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Stephan <skt at v-lab.tv> wrote:

Hi,

as the previous email complained about a symptom, that apparently was none for line 1, let me ask this question again, and this time more accurately.  If there is anything I can do short of replacing hardware altogether, I'd appreciate any advice:

We have a system with two Hauppauge PVR 150 cards in there, which are supposed to be used to capture MPEG2 video and audio.  This worked fine at first, but then failed to capture audio.  We assumed the card was hung or broken, so we switched to the other card, which also worked fine for a while. Then it also stopped working.

If both fail after a while and no warm or cold reboot helps, we suspect firmware, so we tried a few firmware versions including the one from the ivtv website.  Sadly nothing helped.  We tested the audio input on a TV and it works fine there.

lspci -v for these cards is:

07:0c.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. Device 8801
        Flags: bus master, medium devsel, latency 128, IRQ 16
        Memory at f8000000 (32-bit, prefetchable) [size=64M]
        Capabilities: <access denied>
        Kernel driver in use: ivtv
        Kernel modules: ivtv

07:0d.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. Device 8801
        Flags: bus master, medium devsel, latency 128, IRQ 19
        Memory at f4000000 (32-bit, prefetchable) [size=64M]
        Capabilities: <access denied>
        Kernel driver in use: ivtv
        Kernel modules: ivtv

we use Ubuntu lucid with recommended upgrades, and 3.1 rc8, but we had the same problem on 2.6.38 and 2.6.32.

v4l2-ctl --log-status -d 1 output:

   [112423.181094] ivtv1: =================  START STATUS CARD #1  =================
   [112423.181097] ivtv1: Version: 1.4.3 Card: Hauppauge WinTV PVR-150
   [112423.237361] tveeprom 15-0050: Hauppauge model 26709, rev F0C1, serial# 10167533
   [112423.237364] tveeprom 15-0050: tuner model is Philips FQ1216LME MK5 (idx 121, type 80)
   [112423.237366] tveeprom 15-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) (eeprom 0x74)
   [112423.237369] tveeprom 15-0050: audio processor is CX25843 (idx 37)
   [112423.237370] tveeprom 15-0050: decoder processor is CX25843 (idx 30)
   [112423.237372] tveeprom 15-0050: has no radio
   [112423.237378] ivtv1: GPIO status: DIR=0xdf01 OUT=0x26f3 IN=0x37f1
   [112423.237380] ivtv1-gpio: Mute: false
   [112423.240759] cx25840 15-0044: Video signal:              present
   [112423.240761] cx25840 15-0044: Detected format:           PAL-BDGHI
   [112423.240762] cx25840 15-0044: Specified standard:        PAL-BDGHI
   [112423.240764] cx25840 15-0044: Specified video input:     Composite 3
   [112423.240766] cx25840 15-0044: Specified audioclock freq: 48000 Hz
   [112423.248596] cx25840 15-0044: Detected audio mode:       forced mode
   [112423.248598] cx25840 15-0044: Detected audio standard:   no detected audio standard
   [112423.248599] cx25840 15-0044: Audio microcontroller:     stopped
   [112423.248601] cx25840 15-0044: Configured audio standard: automatic detection
   [112423.248603] cx25840 15-0044: Configured audio system:   automatic standard and mode detection
   [112423.248605] cx25840 15-0044: Specified audio input:     External
   [112423.248606] cx25840 15-0044: Preferred audio mode:      stereo
   [112423.248608] cx25840 15-0044: Selected 65 MHz format:    system DK
   [112423.248610] cx25840 15-0044: Selected 45 MHz format:    chroma
   [112423.261005] cx25840 15-0044: IR Receiver:
   [112423.261007] cx25840 15-0044:     Enabled:                           no
   [112423.261009] cx25840 15-0044:     Demodulation from a carrier:       disabled
   [112423.261010] cx25840 15-0044:     FIFO:                              disabled
   [112423.261012] cx25840 15-0044:     Pulse timers' start/stop trigger:  disabled
   [112423.261014] cx25840 15-0044:     FIFO data on pulse timer overflow: overflow marker
   [112423.261015] cx25840 15-0044:     FIFO interrupt watermark:          half full or greater
   [112423.261017] cx25840 15-0044:     Loopback mode:                     normal receive
   [112423.261019] cx25840 15-0044:     Max measurable pulse width:        318144512 us, 318144512000 ns
   [112423.261021] cx25840 15-0044:     Low pass filter:                   disabled
   [112423.261022] cx25840 15-0044:     Pulse width timer timed-out:       no
   [112423.261024] cx25840 15-0044:     Pulse width timer time-out intr:   enabled
   [112423.261025] cx25840 15-0044:     FIFO overrun:                      no
   [112423.261027] cx25840 15-0044:     FIFO overrun interrupt:            enabled
   [112423.261028] cx25840 15-0044:     Busy:                              no
   [112423.261030] cx25840 15-0044:     FIFO service requested:            no
   [112423.261031] cx25840 15-0044:     FIFO service request interrupt:    enabled
   [112423.261032] cx25840 15-0044: IR Transmitter:
   [112423.261034] cx25840 15-0044:     Enabled:                           no
   [112423.261035] cx25840 15-0044:     Modulation onto a carrier:         disabled
   [112423.261037] cx25840 15-0044:     FIFO:                              disabled
   [112423.261038] cx25840 15-0044:     FIFO interrupt watermark:          half full or less
   [112423.261040] cx25840 15-0044:     Carrier polarity:                  space:noburst mark:burst
   [112423.261042] cx25840 15-0044:     Max pulse width:                   318144512 us, 318144512000 ns
   [112423.261043] cx25840 15-0044:     Busy:                              no
   [112423.261045] cx25840 15-0044:     FIFO service requested:            yes
   [112423.261046] cx25840 15-0044:     FIFO service request interrupt:    enabled
   [112423.261048] cx25840 15-0044: Brightness: 128
   [112423.261050] cx25840 15-0044: Contrast: 64
   [112423.261052] cx25840 15-0044: Saturation: 64
   [112423.261054] cx25840 15-0044: Hue: 0
   [112423.261056] cx25840 15-0044: Volume: 33405
   [112423.261058] cx25840 15-0044: Mute: false
   [112423.261060] cx25840 15-0044: Balance: 32750
   [112423.261062] cx25840 15-0044: Bass: 32750
   [112423.261064] cx25840 15-0044: Treble: 32750
   [112423.261067] wm8775 15-001b: Input: 2
   [112423.261069] wm8775 15-001b: Mute: false
   [112423.261071] wm8775 15-001b: Volume: 52992
   [112423.261073] wm8775 15-001b: Balance: 32768
   [112423.261075] wm8775 15-001b: Loudness: true
   [112423.261078] ivtv1: Video Input:  Composite 1
   [112423.261079] ivtv1: Audio Input:  Line In 1
   [112423.261080] ivtv1: Tuner:  TV
   [112423.261082] ivtv1: Stream Type: MPEG-2 Program Stream (grabbed)
   [112423.261084] ivtv1: Stream VBI Format: No VBI (grabbed)
   [112423.261087] ivtv1: Audio Sampling Frequency: 48 kHz (grabbed)
   [112423.261089] ivtv1: Audio Encoding: MPEG-1/2 Layer II (grabbed)
   [112423.261091] ivtv1: Audio Layer II Bitrate: 224 kbps (grabbed)
   [112423.261093] ivtv1: Audio Stereo Mode: Stereo
   [112423.261095] ivtv1: Audio Stereo Mode Extension: Bound 4 (inactive)
   [112423.261098] ivtv1: Audio Emphasis: No Emphasis
   [112423.261100] ivtv1: Audio CRC: No CRC
   [112423.261101] ivtv1: Audio Mute: false
   [112423.261103] ivtv1: Video Encoding: MPEG-2
   [112423.261105] ivtv1: Video Aspect: 4x3
   [112423.261107] ivtv1: Video B Frames: 2
   [112423.261109] ivtv1: Video GOP Size: 15
   [112423.261111] ivtv1: Video GOP Closure: true
   [112423.261113] ivtv1: Video Bitrate Mode: Constant Bitrate (grabbed)
   [112423.261115] ivtv1: Video Bitrate: 4000000 (grabbed)
   [112423.261117] ivtv1: Video Peak Bitrate: 8000000 (inactive, grabbed)
   [112423.261120] ivtv1: Video Temporal Decimation: 0
   [112423.261122] ivtv1: Video Mute: false
   [112423.261123] ivtv1: Video Mute YUV: 32896
   [112423.261125] ivtv1: Spatial Filter Mode: Manual
   [112423.261128] ivtv1: Spatial Filter: 0
   [112423.261130] ivtv1: Spatial Luma Filter Type: 1D Horizontal
   [112423.261132] ivtv1: Spatial Chroma Filter Type: 1D Horizontal
   [112423.261134] ivtv1: Temporal Filter Mode: Manual
   [112423.261136] ivtv1: Temporal Filter: 8
   [112423.261138] ivtv1: Median Filter Type: Off
   [112423.261140] ivtv1: Median Luma Filter Minimum: 0 (inactive)
   [112423.261142] ivtv1: Median Luma Filter Maximum: 255 (inactive)
   [112423.261144] ivtv1: Median Chroma Filter Minimum: 0 (inactive)
   [112423.261146] ivtv1: Median Chroma Filter Maximum: 255 (inactive)
   [112423.261148] ivtv1: Insert Navigation Packets: false
   [112423.261150] ivtv1: Status flags:    0x00200000
   [112423.261153] ivtv1: Stream encoder MPG: status 0x0118, 3% of 4096 KiB (128 buffers) in use
   [112423.261155] ivtv1: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (64 buffers) in use
   [112423.261157] ivtv1: Stream encoder VBI: status 0x0000, 0% of 1049 KiB (41 buffers) in use
   [112423.261160] ivtv1: Stream encoder PCM: status 0x0000, 0% of 324 KiB (72 buffers) in use
   [112423.261162] ivtv1: Read MPG/VBI: 62922099232/0 bytes
   [112423.261163] ivtv1: ==================  END STATUS CARD #1  ==================

firmware md5sums:

305dba74bbe5905447add8883f3ecb68  /lib/firmware/v4l-cx2341x-dec.fw
9b39b3d3bba1ce2da40f82ef0c50ef48  /lib/firmware/v4l-cx2341x-enc.fw
0661f8b2693fe3123e6234557353eacc  /lib/firmware/v4l-cx2341x-init.mpg
b3704908fd058485f3ef136941b2e513  /lib/firmware/v4l-cx25840.fw
dadb79e9904fc8af96e8111d9cb59320  /lib/firmware/v4l-cx25840.fw.ubuntu

Stephan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ivtvdriver.org/pipermail/ivtv-users/attachments/20111108/dcd14bf3/attachment-0001.html>


More information about the ivtv-users mailing list