On Sun, 2009-08-23 at 19:25 -0400, Jayme Shaffer wrote:
> Well I checked the hash and it is fine. When I do dmesg | grep v4l  I
> get:
> 
> cx18 0000:01:05.0: firmware: requesting v4l-cx23418-cpu.fw
> cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
> cx18 0000:01:05.0: firmware: requesting v4l-cx23418-apu.fw
> cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
> cx18 0000:01:05.0: firmware: requesting v4l-cx23418-cpu.fw
> cx18 0000:01:05.0: firmware: requesting v4l-cx23418-apu.fw
> ivtv 0000:01:06.0: firmware: requesting v4l-cx2341x-enc.fw
> ivtv0: Loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
> cx18 0000:01:05.0: firmware: requesting v4l-cx23418-dig.fw
> cx18-0 843: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
> cx18-0 843: verified load of v4l-cx23418-dig.fw firmware (16382 bytes)

OK good.

> I tried using the svideo input and through myth I get now sound which
> might be a config issue on my part but when I do cat /dev/video1 >
> test.mpg I get audio and video.  But when I issue the same command and
> the input is on tuner with a good channel I get video and no audio
> when using cat and still no audio in myth.  Here is a log status
> output when I'm using s-video:

> Don't know if it helps..

OK S-video works.

(BTW, I  tested my DTV set top box analog RF output into the HVR-1600
with the latest v4l-dvb drivers on Fedora 9 (2.26.27) on a 64 bit
machine.  The tuner audio came through fine for me.)


So:

1. the microcontroller firmware image is correct
2. the firmware image bytes are written to the microcontroller properly
3. line-in audio, that bypasses this audio controller, works

Yet the microcontroller is both stopped and muted.

What can be wrong:

1. The firmware image pointer the kernel provided to the driver is bad -
very unlikely

2. The register writes to start up the microcontroller are failing -
very unlikely since all the other register writes seem to be working
fine

3. Something is actively muting the tuner audio - the most likely cause.
Probably something from user space is muting the audio.


What to do:

Stop the mythbackend, then 

$ v4l2-ctl -d /dev/video0 -i 0
Video input set to 0 (Tuner 1)

$ ivtv-tune -d /dev/video0 -t us-cable -c 4       (or whatever channel)
/dev/video0: 67.250 MHz

$ v4l2-ctl -d /dev/video0 -c audio_sampling_frequency=1     ( 48 ksps )

$ v4l2-ctl -d /dev/video0 -C audio_sampling_frequency
audio_sampling_frequency: 1

$ v4l2-ctl -d /dev/video0 -c mute=1

$ v4l2-ctl -d /dev/video0 --log-status | grep microcontroller
   cx18-0 843: Audio microcontroller:     stopped

$ v4l2-ctl -d /dev/video0 -c mute=0

$ v4l2-ctl -d /dev/video0 --log-status | grep microcontroller
   cx18-0 843: Audio microcontroller:     running         (should be running!)

$ v4l2-ctl -d /dev/video0 --log-status | grep 'audio standard'
   cx18-0 843: Detected audio standard:   BTSC
   cx18-0 843: Configured audio standard: automatic detection

$ mplayer /dev/video0 -cache 8192

And you should be seeing US cable channel 4 with audio.

The critical step above is that disabling the mute starts the audio
controller running.  If that doesn't happen, we'll have to start some
serious troubleshooting.


 



> Jayme
> 
> > From: [email protected]
> > To: [email protected]
> > Date: Fri, 21 Aug 2009 22:26:26 -0400
> > Subject: Re: [ivtv-users] cx18 anlog tv tuner picture but now audio
> > 
> > On Fri, 2009-08-21 at 18:24 -0400, Jayme Shaffer wrote:
> > > Thanks for your help so far. With me juggling settings it is now
> > > video0 still no audio. I checked all of the options under the
> > > advanced volume control and no luck. Here is the output for the
> card.
> > > I see a few things that sand out that might be nothing or might be
> the
> > > issue. "no detected audio standard" is one "audio muted yes" is
> > > another ant the last is the "audio microcontroller: stopped". I
> > > looked up the mute command for v4l2-ctl and tried that as well but
> no
> > > luck.
> > .
> > It looks like the "audio standard auto-detection microcontroller
> > firmware" (whew!) didn't get loaded properly.
> > 
> > Some things to do:
> > 
> > 1. Check to make sure that /lib/frimware (or wherever) has
> > v4l-cx23418-dig.fw in it, it is readable, and has a good hash:
> > 
> > $ sha256sum /lib/firmware/v4l-cx23418-dig.fw
> >
> fd545dcb14f40e0666b95fdb3a73356e34ee282c217b96fc2740747ce1c5b0c4 
> /lib/firmware/v4l-cx23418-dig.fw
> > 
> > 
> > 2. Check for errors in dmesg or /var/log/messages related to
> > v4l-cx23418-dig.fw failing to load or initialize. Normal loading
> looks
> > somehting like this:
> > 
> > [ 16.963093] firmware: requesting v4l-cx23418-cpu.fw
> > [ 18.302494] cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332
> bytes)
> > [ 18.347998] firmware: requesting v4l-cx23418-apu.fw
> > [ 18.841280] cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000
> (141200 bytes)
> > [ 18.847667] cx18-0: FW version: 0.0.74.0 (Release 2007/03/12)
> > [ 19.055046] firmware: requesting v4l-cx23418-cpu.fw
> > [ 19.397242] firmware: requesting v4l-cx23418-apu.fw
> > [ 19.845859] firmware: requesting v4l-cx23418-dig.fw
> > [ 20.368420] cx18-0 843: loaded v4l-cx23418-dig.fw firmware (16382
> bytes)
> > [ 20.409945] cx18-0 843: verified load of v4l-cx23418-dig.fw
> firmware (16382 bytes)
> > 
> > 
> > 3. Try recording from the Composite or SVideo in and audio line in
> > eliminate any problem with the audio processing in the MPEG encoder.
> > 
> > 
> > 
> > 
> > Don't worry about the audio being muted for now; that's normal. We
> rely
> > on the microcontroller to unmute the audio when it detetcts a valid
> TV
> > audio standard. And since the microcontroller isn't running....
> > 
> > 
> > -Andy
> > 
> > > 
> > > cx18-0: ================= START STATUS CARD #0 =================
> > > cx18-0: Version: 1.2.0 Card: Hauppauge HVR-1600
> > > tveeprom 0-0050: Hauppauge model 74041, rev C6B2, serial# 937559
> > > tveeprom 0-0050: MAC address is 00-0D-FE-0E-4E-57
> > > tveeprom 0-0050: tuner model is TCL M2523_5N_E (idx 112, type 50)
> > > tveeprom 0-0050: TV standards NTSC(M) (eeprom 0x08)
> > > tveeprom 0-0050: audio processor is CX23418 (idx 38)
> > > tveeprom 0-0050: decoder processor is CX23418 (idx 31)
> > > tveeprom 0-0050: has no radio, has IR receiver, has IR transmitter
> > > 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: 32000 Hz
> > > cx18-0 843: Detected audio mode: mono
> > > cx18-0 843: Detected audio standard: no detected audio standard
> > > cx18-0 843: Audio muted: yes
> > > cx18-0 843: Audio microcontroller: stopped
> > > 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
> > > tuner 1-0061: Tuner mode: analog TV
> > > tuner 1-0061: Frequency: 61.25 MHz
> > > tuner 1-0061: Standard: 0x0000b000
> > > cs5345 0-004c: Input: 1
> > > cs5345 0-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, 4500000, Peak
> > > 6000000
> > > cx18-0: Video: GOP Size 15, 2 B-Frames, GOP Closure
> > > cx18-0: Audio: 32 kHz, MPEG-1/2 Layer II, 384 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 0x0000, 0% 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: 47030272/0 bytes
> > > cx18-0: ================== END STATUS CARD #0 ==================
> > > 


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

Reply via email to