On Thu, 2008-06-19 at 12:48 +0200, [EMAIL PROTECTED] wrote:
> Hi,

> I have a server with several PCR150s in it and I am seeing a very
> similar problem. All cards are being fed from good quality RH UHF
> analogue feeds. After a day or so, one or more of that cards looses
> its audio.

Does it loose it on a channel change, an input source switch, loss of
signal, etc., or does it just happen in the middle of good audio?


> Running  v4l2-ctl --log-status -d /dev/videoX gives the following for
> one f the cards that has lost its audio. The coresponding output for a
> fully functioning card is show at the bottom:
> 
> The key I suspect is in the audio detection area, where is says:
>   cx25840 3-0044: Detected audio mode:       forced mode
>    cx25840 3-0044: Detected audio standard:   no detected audio standard
>    cx25840 3-0044: Audio muted:               no
>    cx25840 3-0044: Audio microcontroller:     detecting
> 
> Does this indicate a locked microcontroller do you think?

It indicates a microcontroller that is unsatisfied with the input SIF.

The 
        cx25840 3-0044: Detected audio mode:       forced mode

looks wrong given the settings

        cx25840 3-0044: Configured audio standard: automatic detection
        cx25840 3-0044: Configured audio system:   automatic standard and mode 
detection

but the enumeration for detected mode doesn't have an explicit "nothing
detected" value, so maybe seeing "forced mode" is OK.

This status

        cx25840 3-0044: Audio microcontroller:     detecting

Means that the microcontroller is actually running and has intentionally
set a soft mute register because it hasn't detected anything yet.

So really it looks like the mircocontroller firmware has gotten confused
or was just plain unhappy about something in the input SIF signal.  (I'm
not sure how clean the SIF signal will always be coming out of a tuner
demodulator chip that has been running for a day or so.)


> As before, a reboot fixes this.
> 
> The system is in an air-conditioned server room at 19 Celsius, so I don't 
> think this is a heat issue.
> 
> The problem is not frequency specific, but appears randomly across all the 
> cards.
> 
> Kernel 2.6.23 and v4l drivers from hg on 29/3/2008, running FC5.
> 
> This has happened with a number of different server types, so I don't think 
> it is hardware specific.
> 
> Any ideas of whet I should be looking for, or any more information I can 
> supply?

I think you hit the nail on the head the cx28543 audio microcontroller
program being stuck (but still running).

Aside from rebooting, you could try 2 things to confirm things:

1. Reset the cx25843 microcontroller program using the v4l2-dbg program.
You need to toggle bit 0 of register 0x810 (SOFT_RESET) to reset the
audio microcontroller.  Also on every input change (e.g. from tuner to
composite 1) the cx28540 module performs this soft reset.  So that's an
easier way to try it.

2. Try and reset the analog tuner to see if that improves the tuner SIF
output.  I'm not sure of the top of my head how to do this right now.  



Possible options for what to do in the long run may be:

a. monitor for the "detecting" condition (cx25840 register 0x803 bit 4 =
1 and register 0x8D3 bit 1 = 1) and take corrective action when it
happens

or
 
b. disable the audio microcontroller's auto detection and force the
particular audio standard programmatically.  Thus the audio
microcontroller never automatically mutes because it can't detect the
standard.

or

c. change to other versions of the cx25843 microcontroller firmware and
see if the problem goes away.


A side effect of option b. could be possibly unpleasant noise if the
tuner SIF somehow is actually going bad.

Regards,
Andy


> Pete
> 
> 
> BAD CARD
> ========
>    ivtv2: =================  START STATUS CARD #2  =================
>    ivtv2: Version: 1.2.0 Card: Hauppauge WinTV PVR-150
>    tveeprom 3-0050: Hauppauge model 26559, rev F189, serial# 10340299
>    tveeprom 3-0050: tuner model is TCL MFPE05 2 (idx 89, type 38)
>    tveeprom 3-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) 
> (eeprom 0x74)
>    tveeprom 3-0050: audio processor is CX25843 (idx 37)
>    tveeprom 3-0050: decoder processor is CX25843 (idx 30)
>    tveeprom 3-0050: has radio, has no IR receiver, has no IR transmitter
>    cx25840 3-0044: Video signal:              present
>    cx25840 3-0044: Detected format:           PAL-BDGHI
>    cx25840 3-0044: Specified standard:        PAL-BDGHI
>    cx25840 3-0044: Specified video input:     Composite 7
>    cx25840 3-0044: Specified audioclock freq: 48000 Hz
>    cx25840 3-0044: Detected audio mode:       forced mode
>    cx25840 3-0044: Detected audio standard:   no detected audio standard
>    cx25840 3-0044: Audio muted:               no
>    cx25840 3-0044: Audio microcontroller:     detecting
>    cx25840 3-0044: Configured audio standard: automatic detection
>    cx25840 3-0044: Configured audio system:   automatic standard and mode 
> detection
>    cx25840 3-0044: Specified audio input:     Tuner (In8)
>    cx25840 3-0044: Preferred audio mode:      stereo
>    cx25840 3-0044: Selected 65 MHz format:    autodetect
>    cx25840 3-0044: Selected 45 MHz format:    chroma
>    tda9887 3-0043: Data bytes: b=0x14 c=0x70 e=0x49
>    tuner 3-0061: Tuner mode:      analog TV
>    tuner 3-0061: Frequency:       791.25 MHz
>    tuner 3-0061: Standard:        0x0000000f
>    wm8775 3-001b: Input: 2
>    ivtv2: Video Input:  Tuner 1
>    ivtv2: Audio Input:  Tuner 1
>    ivtv2: Tuner:  TV
>    ivtv2: Stream: MPEG-2 Program Stream
>    ivtv2: VBI Format: No VBI
>    ivtv2: Video:  720x576, 25 fps
>    ivtv2: Video:  MPEG-2, 4x3, Variable Bitrate, 4000000, Peak 4000000
>    ivtv2: Video:  GOP Size 12, 2 B-Frames, GOP Closure
>    ivtv2: Audio:  48 kHz, Layer II, 224 kbps, Stereo, No Emphasis, No CRC
>    ivtv2: Spatial Filter:  Manual, Luma 1D Horizontal, Chroma 1D Horizontal, 0
>    ivtv2: Temporal Filter: Manual, 8
>    ivtv2: Median Filter:   Off, Luma [0, 255], Chroma [0, 255]
>    ivtv2: Status flags:    0x00200000
>    ivtv2: Stream encoder MPG: status 0x0118, 0% of 8192 KiB (256 buffers) in 
> use
>    ivtv2: Read MPG/VBI: 42432397310/0 bytes
>    ivtv2: ==================  END STATUS CARD #2  ==================
> 
> 
> GOOD CARD
> =========
>    ivtv0: =================  START STATUS CARD #0  =================
>    ivtv0: Version: 1.2.0 Card: Hauppauge WinTV PVR-150
>    tveeprom 1-0050: Hauppauge model 26559, rev F189, serial# 10340721
>    tveeprom 1-0050: tuner model is TCL MFPE05 2 (idx 89, type 38)
>    tveeprom 1-0050: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) 
> (eeprom 0x74)
>    tveeprom 1-0050: audio processor is CX25843 (idx 37)
>    tveeprom 1-0050: decoder processor is CX25843 (idx 30)
>    tveeprom 1-0050: has radio, has no IR receiver, has no IR transmitter
>    cx25840 1-0044: Video signal:              present
>    cx25840 1-0044: Detected format:           PAL-BDGHI
>    cx25840 1-0044: Specified standard:        PAL-BDGHI
>    cx25840 1-0044: Specified video input:     Composite 7
>    cx25840 1-0044: Specified audioclock freq: 48000 Hz
>    cx25840 1-0044: Detected audio mode:       stereo
>    cx25840 1-0044: Detected audio standard:   NICAM-I
>    cx25840 1-0044: Audio muted:               no
>    cx25840 1-0044: Audio microcontroller:     running
>    cx25840 1-0044: Configured audio standard: automatic detection
>    cx25840 1-0044: Configured audio system:   automatic standard and mode 
> detection
>    cx25840 1-0044: Specified audio input:     Tuner (In8)
>    cx25840 1-0044: Preferred audio mode:      stereo
>    cx25840 1-0044: Selected 65 MHz format:    autodetect
>    cx25840 1-0044: Selected 45 MHz format:    chroma
>    tda9887 1-0043: Data bytes: b=0x14 c=0x70 e=0x49
>    tuner 1-0061: Tuner mode:      analog TV
>    tuner 1-0061: Frequency:       767.25 MHz
>    tuner 1-0061: Standard:        0x0000000f
>    wm8775 1-001b: Input: 2
>    ivtv0: Video Input:  Tuner 1
>    ivtv0: Audio Input:  Tuner 1
>    ivtv0: Tuner:  TV
>    ivtv0: Stream: MPEG-2 Program Stream
>    ivtv0: VBI Format: No VBI
>    ivtv0: Video:  720x576, 25 fps
>    ivtv0: Video:  MPEG-2, 4x3, Variable Bitrate, 4000000, Peak 4000000
>    ivtv0: Video:  GOP Size 12, 2 B-Frames, GOP Closure
>    ivtv0: Audio:  48 kHz, Layer II, 224 kbps, Stereo, No Emphasis, No CRC
>    ivtv0: Spatial Filter:  Manual, Luma 1D Horizontal, Chroma 1D Horizontal, 0
>    ivtv0: Temporal Filter: Manual, 8
>    ivtv0: Median Filter:   Off, Luma [0, 255], Chroma [0, 255]
>    ivtv0: Status flags:    0x00200000
>    ivtv0: Stream encoder MPG: status 0x0118, 0% of 8192 KiB (256 buffers) in 
> use
>    ivtv0: Read MPG/VBI: 42968416254/0 bytes
>    ivtv0: ==================  END STATUS CARD #0  ==================
> 
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-devel
> 


_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to