On Wed, 2009-04-15 at 18:21 -0400, faginbagin wrote:
> Hi Andy,
> 
> Andy Walls wrote:
> 
> > First try:
> > 
> > 1. (killing the mythbackend)
> > 2. modprobe -r cx18
> > 3. modprobe cx18
> > 4. (restart the mythbackend)
> > 
> > at see if that helps with the audio from the tuner.
> 
> It did not help.

Hmmm.  That was my litmus test for conclusively blaming the CX23418.
Now I'm not sure.  (It could be an analog tuner driver problem too.)

Go to the directory where you ran the make for v4l-dvb and do this:

0. Configure MythTV to use 48 kbps audio for the analog tuner channels
1. kill the mythbackend
2. make unload
3. make unload
4. modprobe cx18 debug=15
5. restart the mythbackend


See if that helps the audio.

The "make unload" unloads all the v4l-dvb modules including the tuner
drivers.  That way the "modprobe cx18" will load only the modules
needed.


> > If it does, could you then try the cx18 driver from this repo:
> > 
> > http://linuxtv.org/hg/~awalls/cx18-init-debug/
> > 
> > and set things up so that
> > 
> >     options cx18 debug=15
> > 
> > is set in /etc/modprobe.conf (or whatever you distro uses).  I'd like to
> > see the messages from the initialization of the cx18 driver at boot.
> > 
> > I'm especially looking for any occurrance of the error messages in this
> > patch:
> > 
> > http://linuxtv.org/hg/~awalls/cx18-init-debug/rev/93828c207b80
> > 
> > when the driver is loaded automatically at boot-up.
> 
> Should I still try the cx18-init-debug driver?

Yes, you can.  I suspect your symtpoms will persist, but am not
extremely confident in that prediction.

First though, I'd like you to try and use the Audio Line-In (from a DVD
player or something) or FM radio (if your board has FM radio).  The
latest v4l-dvb repo (from about yesterday) has a patch to make sure
Audio Line-In gets switched to properly in the cx18 driver.


You will probably want to use the following utilities as they make
troubleshooting easier than using MythTV:

1. mplayer

   $ mplayer /dev/video0 -cache 8192
        (plays the MPEG stream to window)


2. v4l2-ctl

   $ v4l2-ctl -d /dev/video0 --log-status
   $ v4l2-ctl -d /dev/video0 --list-inputs
   $ v4l2-ctl -d /dev/video0 --set-input=2

3. ivtv-tune

   $ ivtv-tune --help
   $ ivtv-tune --list-freqtable
   $ ivtv-tune -d /dev/video0 -t us-bcast --channel=9

4. ivtv-radio

   $ ivtv-radio --help
   $ ivtv-radio -d /dev/radio0 -i /dev/video24 -f 88.5




>  Or could this indicate a 
> problem with the board?

I doubt it.


>  I don't have WinXP on this computer, but I do on 
> the old computer. Perhaps I should see if the board can tune and record 
> channel 29 in WinXP on the old computer?

I suspect it will, if you try.



> FWIW, when I verified that modprobe -r cx18 did indeed remove the cx18 
> modules via lsmod, I was surprised to see some cx88 modules. I didn't 
> think the HVR-1600 needed them. Maybe for the IR device?

The HVR-1600, which uses the CX23418, does not need them, nor does the
Zilog Z8F0811 IR chip on the HVR-1600.

The Conexant CX2388[0-3] chips used on other TV/video boards use the
cx88 modules.  lspci -nnvv may show you what device (14f1:8800) needs
those modules.  The cx88-alsa module also hooks into the ALSA sound
system drivers.  It would be best to prevent those cx88 modules from
loading to eliminate them as a variable. (The /etc/modprobe.d/blacklist
file is how Fedora 10 prevents certain modules from loading.)


For reference, here are the driver initialization messages for my
HVR-1600MCE (FM radio and no IR), the list of relevant modules, and what
a 'v4l2-ctl --log-status' looks like for a tuned in NTSC UHF station
during a capture:

cx18:  Start initialization, version 1.1.0
cx18-0: Initializing card 0
cx18-0: Autodetected Hauppauge card
cx18-0: cx23418 revision 01010000 (B)
tveeprom 1-0050: Hauppauge model 74551, rev C1A3, serial# 1845764
tveeprom 1-0050: MAC address is 00-0D-FE-1C-2A-04
tveeprom 1-0050: tuner model is TCL MFNM05-4 (idx 103, type 43)
tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 1-0050: audio processor is CX23418 (idx 38)
tveeprom 1-0050: decoder processor is CX23418 (idx 31)
tveeprom 1-0050: has radio
cx18-0: Autodetected Hauppauge HVR-1600
cx18-0: Simultaneous Digital and Analog TV capture supported
tuner 2-0043: chip found @ 0x86 (cx18 i2c driver #0-1)
tda9887 2-0043: creating new instance
tda9887 2-0043: tda988[5/6/7] found
tuner 2-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
cs5345 1-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
tuner-simple 2-0061: creating new instance
tuner-simple 2-0061: type set to 43 (Philips NTSC MK3 (FM1236MK3 or FM1236/F))
cx18-0: Registered device video0 for encoder MPEG (64 x 32 kB)
DVB: registering new adapter (cx18)
firmware: requesting v4l-cx23418-cpu.fw
MXL5005S: Attached at address 0x63
DVB: registering adapter 0 frontend 0 (Samsung S5H1409 QAM/8VSB Frontend)...
cx18-0: DVB Frontend registered
cx18-0: Registered DVB adapter0 for TS (32 x 32 kB)
cx18-0: Registered device video32 for encoder YUV (16 x 128 kB)
cx18-0: Registered device vbi0 for encoder VBI (20 x 51984 bytes)
cx18-0: Registered device video24 for encoder PCM audio (256 x 4 kB)
cx18-0: Registered device radio0 for encoder radio
cx18-0: Initialized card: Hauppauge HVR-1600
cx18:  End initialization


Module                  Size  Used by
cx18                  112660  0 
dvb_core               94108  1 cx18
i2c_algo_bit           13956  1 cx18
cx2341x                20100  1 cx18
tveeprom               21764  1 cx18
mxl5005s               40324  1 
s5h1409                17284  1 
tuner_simple           21012  1 
tuner_types            25984  1 tuner_simple
cs5345                 12764  1 
tda9887                18564  1 
tda8290                19336  0 
tuner                  28660  2 
v4l2_common            22656  4 cx18,cx2341x,cs5345,tuner
videodev               43040  4 cx18,cs5345,tuner,v4l2_common
v4l1_compat            20996  1 videodev
v4l2_compat_ioctl32    17792  1 videodev
i2c_core               29216  12 
cx18,i2c_algo_bit,tveeprom,mxl5005s,s5h1409,tuner_simple,cs5345,tda9887,tda8290,tuner,v4l2_common,i2c_piix4

(You may have different tuner chip drivers than the tda9887 and tda8290.)


Status Log:

   cx18-0: =================  START STATUS CARD #0  =================
   cx18-0: Version: 1.1.0  Card: Hauppauge HVR-1600
   tveeprom 1-0050: Hauppauge model 74551, rev C1A3, serial# 1845764
   tveeprom 1-0050: MAC address is 00-0D-FE-1C-2A-04
   tveeprom 1-0050: tuner model is TCL MFNM05-4 (idx 103, type 43)
   tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
   tveeprom 1-0050: audio processor is CX23418 (idx 38)
   tveeprom 1-0050: decoder processor is CX23418 (idx 31)
   tveeprom 1-0050: has radio
   cx18-0 843: Video signal:              present
   cx18-0 843: Detected format:           NTSC-M
   cx18-0 843: Specified standard:        NTSC-M
   cx18-0 843: Specified video input:     Composite 7
   cx18-0 843: Specified audioclock freq: 48000 Hz
   cx18-0 843: Detected audio mode:       stereo
   cx18-0 843: Detected audio standard:   BTSC
   cx18-0 843: Audio muted:               no
   cx18-0 843: Audio microcontroller:     running
   cx18-0 843: Configured audio standard: automatic detection
   cx18-0 843: Configured audio system:   BTSC
   cx18-0 843: Specified audio input:     Tuner (In8)
   cx18-0 843: Preferred audio mode:      stereo
   cx18-0 gpio-reset-ctrl: GPIO:  direction 0x00003001, value 0x00003001
   tda9887 2-0043: Data bytes: b=0x14 c=0x30 e=0x44
   tuner 2-0061: Tuner mode:      analog TV
   tuner 2-0061: Frequency:       507.25 MHz
   tuner 2-0061: Standard:        0x00001000
   cs5345 1-004c: Input:  0
   cs5345 1-004c: Volume: 0 dB
   cx18-0: Video Input: Tuner 1
   cx18-0: Audio Input: Tuner 1
   cx18-0: GPIO:  direction 0x00003001, value 0x00003001
   cx18-0: Tuner: TV
   cx18-0: Stream: MPEG-2 Program Stream
   cx18-0: VBI Format: No VBI
   cx18-0: Video:  720x480, 30 fps
   cx18-0: Video:  MPEG-2, 4x3, Variable Bitrate, 6000000, Peak 8000000
   cx18-0: Video:  GOP Size 15, 2 B-Frames, GOP Closure
   cx18-0: Audio:  48 kHz, MPEG-1/2 Layer II, 224 kbps, Stereo, No Emphasis, No 
CRC
   cx18-0: Spatial Filter:  Manual, Luma 1D Horizontal, Chroma 1D Horizontal, 0
   cx18-0: Temporal Filter: Manual, 8
   cx18-0: Median Filter:   Off, Luma [0, 255], Chroma [0, 255]
   cx18-0: Status flags: 0x00200001
   cx18-0: Stream encoder MPEG: status 0x0118, 4% of 2048 KiB (64 buffers) in 
use
   cx18-0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (16 buffers) in use
   cx18-0: Stream encoder VBI: status 0x0000, 0% of 1015 KiB (20 buffers) in use
   cx18-0: Stream encoder PCM audio: status 0x0000, 0% of 1024 KiB (256 
buffers) in use
   cx18-0: Read MPEG/VBI: 15415296/0 bytes
   cx18-0: ==================  END STATUS CARD #0  ==================


Does your --log-status for a "staticy" sounding channel look different?


Regards,
Andy


> Thanks,
> Helen



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

Reply via email to