Mailing List Archive

cx18 Have 2 installed HVR-1600s, 1 never records audio
I used to have:
Card 0: HVR-1600 (Model 1199) with ATSC/QAM/NTSC/IR as DVB1 & /dev/video0
Card 1: PVR-150 (Model 1042) with NTSC/FM as /dev/video1

and wouldn't get audio with NTSC recordings on /dev/video0 until the 2nd time it started recorded after boot-up.

I replaced Card 1 with a:
HVR-1600 (Model 1101) with ATSC/QAM/NTSC/FM as DVB2 & /dev/video1

and now /dev/video1 on it's 2nd recording after boot-up will record audio, but no matter what I do, I can't get audio with /dev/video0.

I verified /dev/video1 is associated with Card 1 by removing the antenna while recording.

Any advice or help is appreciated.

Thanks & Cheers!

cx18: Start initialization, version 1.0.2
cx18-0: Initializing card #0
cx18-0: Autodetected Hauppauge card
cx18-0: Unreasonably low latency timer, setting to 64 (was 32)
cx18-0: cx23418 revision 01010000 (B)
tveeprom 0-0050: Hauppauge model 74041, rev C6B2, serial# XXXXXXX
tveeprom 0-0050: MAC address is XX-XX-XX-XX-XX-XX
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: Autodetected Hauppauge HVR-1600
cx18-0: VBI is not yet supported
tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
tuner-simple 1-0061: creating new instance
tuner-simple 1-0061: type set to 50 (TCL 2002N)
cx18-0: Disabled encoder IDX device
cx18-0: Registered device video0 for encoder MPEG (2 MB)
DVB: registering new adapter (cx18)
MXL5005S: Attached at address 0x63
DVB: registering adapter 0 frontend 0 (Samsung S5H1409 QAM/8VSB Frontend)...
cx18-0: DVB Frontend registered
cx18-0: Registered device video32 for encoder YUV (2 MB)
cx18-0: Registered device video24 for encoder PCM audio (1 MB)
cx18-0: Initialized card #0: Hauppauge HVR-1600
cx18-1: Initializing card #1
cx18-1: Autodetected Hauppauge card
cx18-1: Unreasonably low latency timer, setting to 64 (was 32)
cx18-1: cx23418 revision 01010000 (B)
tveeprom 3-0050: Hauppauge model 74541, rev C6B6, serial# XXXXXXX
tveeprom 3-0050: MAC address is XX-XX-XX-XX-XX-XX
tveeprom 3-0050: tuner model is Philips FM1236 MK5 (idx 116, type 43)
tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 3-0050: audio processor is CX23418 (idx 38)
tveeprom 3-0050: decoder processor is CX23418 (idx 31)
tveeprom 3-0050: has radio
cx18-1: Autodetected Hauppauge HVR-1600
cx18-1: VBI is not yet supported
tuner 4-0043: chip found @ 0x86 (cx18 i2c driver #1-1)
tda9887 4-0043: creating new instance
tda9887 4-0043: tda988[5/6/7] found
tuner 4-0061: chip found @ 0xc2 (cx18 i2c driver #1-1)
cs5345 3-004c: chip found @ 0x98 (cx18 i2c driver #1-0)
tuner-simple 4-0061: creating new instance
tuner-simple 4-0061: type set to 43 (Philips NTSC MK3 (FM1236MK3 or FM1236/F))
cx18-1: Disabled encoder IDX device
cx18-1: Registered device video1 for encoder MPEG (2 MB)
DVB: registering new adapter (cx18)
MXL5005S: Attached at address 0x63
DVB: registering adapter 1 frontend 0 (Samsung S5H1409 QAM/8VSB Frontend)...
cx18-1: DVB Frontend registered
cx18-1: Registered device video33 for encoder YUV (2 MB)
cx18-1: Registered device video25 for encoder PCM audio (1 MB)
cx18-1: Registered device radio1 for encoder radio
cx18-1: Initialized card #1: Hauppauge HVR-1600
cx18: End initialization
cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
cx18-0: FW version: 0.0.74.0 (Release 2007/03/12)
cx18-0: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
cx18-1: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
cx18-1: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
cx18-1: FW version: 0.0.74.0 (Release 2007/03/12)
cx18-1: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
bttv: driver version 0.9.17 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
ivtv: Start initialization, version 1.4.0
ivtv: End initialization
cx88/0: cx2388x v4l2 driver version 0.0.6 loaded

--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Wed, 2008-11-26 at 23:37 +0100, . . wrote:
> I used to have:
> Card 0: HVR-1600 (Model 1199) with ATSC/QAM/NTSC/IR as DVB1
> & /dev/video0
> Card 1: PVR-150 (Model 1042) with NTSC/FM as /dev/video1
>
> and wouldn't get audio with NTSC recordings on /dev/video0 until the
> 2nd time it started recorded after boot-up.

Yes, you either get no audio, or audio with PTS that's far removed from
the Video PTS so playback is terrible. Every analog capture after the
first should be OK.


The reason this occurs is that the driver loads the firmware twice and
it apparently confuses the audio processing unit firmware for the first
capture. We load the firmware twice because every odd time you load the
CPU firmware, after the first time, the Digital TS (ATSC or QAM)
wouldn't work. Loading the firmware twice makes sure digital reception
always works after a modprobe. I can confirm that it still exists in
the hardware/firmware. :(


> I replaced Card 1 with a:
> HVR-1600 (Model 1101) with ATSC/QAM/NTSC/FM as DVB2 & /dev/video1
>
> and now /dev/video1 on it's 2nd recording after boot-up will record
> audio, but no matter what I do, I can't get audio with /dev/video0.
>
> I verified /dev/video1 is associated with Card 1 by removing the
> antenna while recording.
>
> Any advice or help is appreciated.

Could you please provide the output of v4l2-ctl -d /dev/videoN
--log-status for when you have a capture going on with no sound?

If using mplayer, is the "A:" time stamp increasing and staying in sync
with the "V:" timestamp?


Also, could you try saving recordings with

$ cat /dev/videoN > fooN.mpg

And then playback the files to confirm that one has audio and one
doesn't.


Thanks.
Andy

> Thanks & Cheers!
>
> cx18: Start initialization, version 1.0.2
> cx18-0: Initializing card #0
> cx18-0: Autodetected Hauppauge card
> cx18-0: Unreasonably low latency timer, setting to 64 (was 32)
> cx18-0: cx23418 revision 01010000 (B)
> tveeprom 0-0050: Hauppauge model 74041, rev C6B2, serial# XXXXXXX
> tveeprom 0-0050: MAC address is XX-XX-XX-XX-XX-XX
> 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: Autodetected Hauppauge HVR-1600
> cx18-0: VBI is not yet supported
> tuner 1-0061: chip found @ 0xc2 (cx18 i2c driver #0-1)
> cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
> tuner-simple 1-0061: creating new instance
> tuner-simple 1-0061: type set to 50 (TCL 2002N)
> cx18-0: Disabled encoder IDX device
> cx18-0: Registered device video0 for encoder MPEG (2 MB)
> DVB: registering new adapter (cx18)
> MXL5005S: Attached at address 0x63
> DVB: registering adapter 0 frontend 0 (Samsung S5H1409 QAM/8VSB Frontend)...
> cx18-0: DVB Frontend registered
> cx18-0: Registered device video32 for encoder YUV (2 MB)
> cx18-0: Registered device video24 for encoder PCM audio (1 MB)
> cx18-0: Initialized card #0: Hauppauge HVR-1600
> cx18-1: Initializing card #1
> cx18-1: Autodetected Hauppauge card
> cx18-1: Unreasonably low latency timer, setting to 64 (was 32)
> cx18-1: cx23418 revision 01010000 (B)
> tveeprom 3-0050: Hauppauge model 74541, rev C6B6, serial# XXXXXXX
> tveeprom 3-0050: MAC address is XX-XX-XX-XX-XX-XX
> tveeprom 3-0050: tuner model is Philips FM1236 MK5 (idx 116, type 43)
> tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
> tveeprom 3-0050: audio processor is CX23418 (idx 38)
> tveeprom 3-0050: decoder processor is CX23418 (idx 31)
> tveeprom 3-0050: has radio
> cx18-1: Autodetected Hauppauge HVR-1600
> cx18-1: VBI is not yet supported
> tuner 4-0043: chip found @ 0x86 (cx18 i2c driver #1-1)
> tda9887 4-0043: creating new instance
> tda9887 4-0043: tda988[5/6/7] found
> tuner 4-0061: chip found @ 0xc2 (cx18 i2c driver #1-1)
> cs5345 3-004c: chip found @ 0x98 (cx18 i2c driver #1-0)
> tuner-simple 4-0061: creating new instance
> tuner-simple 4-0061: type set to 43 (Philips NTSC MK3 (FM1236MK3 or FM1236/F))
> cx18-1: Disabled encoder IDX device
> cx18-1: Registered device video1 for encoder MPEG (2 MB)
> DVB: registering new adapter (cx18)
> MXL5005S: Attached at address 0x63
> DVB: registering adapter 1 frontend 0 (Samsung S5H1409 QAM/8VSB Frontend)...
> cx18-1: DVB Frontend registered
> cx18-1: Registered device video33 for encoder YUV (2 MB)
> cx18-1: Registered device video25 for encoder PCM audio (1 MB)
> cx18-1: Registered device radio1 for encoder radio
> cx18-1: Initialized card #1: Hauppauge HVR-1600
> cx18: End initialization
> cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
> cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
> cx18-0: FW version: 0.0.74.0 (Release 2007/03/12)
> cx18-0: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
> cx18-1: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
> cx18-1: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
> cx18-1: FW version: 0.0.74.0 (Release 2007/03/12)
> cx18-1: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
> bttv: driver version 0.9.17 loaded
> bttv: using 8 buffers with 2080k (520 pages) each for capture
> ivtv: Start initialization, version 1.4.0
> ivtv: End initialization
> cx88/0: cx2388x v4l2 driver version 0.0.6 loaded



_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
Andy,

Thanks for replying. First off, I'm pretty sure I'm using revision 9755 of cx18-bugfix.

I tested mplayer on /dev/video0 for ~90 seconds and the "A:" time stamp stayed in sync with the "V:" time stamp.

I run 'cat /dev/video0 > foo0.mpg' at boot init to get around the 1st recording with no audio issue and since adding the 2nd HVR-1600 I also do 'cat /dev/video1 > foo1.mpg'. I checked out these recordings and the /dev/video0 recording has no sound and the /dev/video1 has corrupted fast sound (I think this is expected). In case you forgot /dev/video1 eventually has sound and in my old config with just 1 HVR-1600 /dev/video0 eventually had sound.

After boot init and after X is loaded I also verified /dev/video0 records no audio by doing another 'cat /dev/video0 > foo0.mpg' and there wasn't any audio when played back.

The output (see below) says the audio is muted, am I doing something wrong? While waiting for your reply, I'll be looking to see if there is a way to manually unmute the audio. However, please reply if you can because I may not be successful in finding a way to manually unmute in a persistent (but not across a power-off/power-on cycle) & reliable way.

---

v4l2-ctl -d /dev/video0 --log-status

Status Log:

cx18-0: ================= START STATUS CARD #0 =================
tveeprom 0-0050: Hauppauge model 74041, rev C6B2, serial# XXXXXXX
tveeprom 0-0050: MAC address is XX-XX-XX-XX-XX-XX
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: Video signal: present
cx18-0: Detected format: NTSC-M
cx18-0: Specified standard: NTSC-M
cx18-0: Specified video input: Composite 7
cx18-0: Specified audioclock freq: 48000 Hz
cx18-0: Detected audio mode: mono
cx18-0: Detected audio standard: no detected audio standard
cx18-0: Audio muted: yes
cx18-0: Audio microcontroller: running
cx18-0: Configured audio standard: automatic detection
cx18-0: Configured audio system: BTSC
cx18-0: Specified audio input: Tuner (In8)
cx18-0: Preferred audio mode: stereo
cs5345 0-004c: Input: 1
cs5345 0-004c: Volume: 0 dB
tuner 1-0061: Tuner mode: analog TV
tuner 1-0061: Frequency: 289.25 MHz
tuner 1-0061: Standard: 0x0000b000
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: 48 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 0x0118, 28% of 2016 KiB (63 buffers) in use
cx18-0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (16 buffers) in use
cx18-0: Stream encoder PCM audio: status 0x0000, 0% of 1008 KiB (63 buffers) in use
cx18-0: Read MPEG/VBI: 52838400/0 bytes
cx18-0: ================== END STATUS CARD #0 ==================

--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Thu, 2008-11-27 at 06:44 +0100, . . wrote:
> Andy,
>
> Thanks for replying. First off, I'm pretty sure I'm using revision
> 9755 of cx18-bugfix.
>
> I tested mplayer on /dev/video0 for ~90 seconds and the "A:" time
> stamp stayed in sync with the "V:" time stamp.
>
> I run 'cat /dev/video0 > foo0.mpg' at boot init to get around the 1st
> recording with no audio issue and since adding the 2nd HVR-1600 I also
> do 'cat /dev/video1 > foo1.mpg'. I checked out these recordings and
> the /dev/video0 recording has no sound and the /dev/video1 has
> corrupted fast sound (I think this is expected).

Yes.

> In case you forgot /dev/video1 eventually has sound and in my old
> config with just 1 HVR-1600 /dev/video0 eventually had sound.

OK.

> After boot init and after X is loaded I also verified /dev/video0
> records no audio by doing another 'cat /dev/video0 > foo0.mpg' and
> there wasn't any audio when played back.

Not good.


> The output (see below) says the audio is muted, am I doing something
> wrong? While waiting for your reply, I'll be looking to see if there
> is a way to manually unmute the audio. However, please reply if you
> can because I may not be successful in finding a way to manually
> unmute in a persistent (but not across a power-off/power-on cycle) &
> reliable way.


The audio microcontroller firmware that performs audio standard
autodetection will automatically mute when it looses the audio standard
and automatically unmute when it detects one. Trying to fight against
that manually won't be useful.

1. A simple way to reset that microcontroller is to switch over to line
in (Composite or SVideo) and then back to the tuner. See if that helps.

2. Also make sure you haven't degraded the signal strength somehow with
new splitters or cables. I've had a brand new 1 to 4 splitter have a
defective output port out of the package. I've also had a short run of
coaxial cable that was bad. Try a test where you keep all the cards in
the machine as configured now, but hook up the signal feed before all
the splits directly into the card in question. That should eliminate a
signal strength problem.


What concerns me is why is this cropping up for you now. Hans figured
out a while ago that if the microcontroller firmware
(v4l-cx23418-dig.fw) upload had errors, then the audio microcontroller
wouldn't work. There is code in cx18-av-firmware.c to check that the
bytes get written properly; so I'm not sure what's going on.


Could you provide the output of

# v4l2-dbg -d /dev/videoN -R type=host

for both cards when both have an analog capture ongoing while tuned to
the same channel? A little differential analysis might be use to see if
some register is misconfigured due to a PCI bus error that went
undetected by the driver.

Regards,
Andy

> ---
>
> v4l2-ctl -d /dev/video0 --log-status
>
> Status Log:
>
> cx18-0: ================= START STATUS CARD #0 =================
> tveeprom 0-0050: Hauppauge model 74041, rev C6B2, serial# XXXXXXX
> tveeprom 0-0050: MAC address is XX-XX-XX-XX-XX-XX
> 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: Video signal: present
> cx18-0: Detected format: NTSC-M
> cx18-0: Specified standard: NTSC-M
> cx18-0: Specified video input: Composite 7
> cx18-0: Specified audioclock freq: 48000 Hz
> cx18-0: Detected audio mode: mono
> cx18-0: Detected audio standard: no detected audio standard
> cx18-0: Audio muted: yes
> cx18-0: Audio microcontroller: running
> cx18-0: Configured audio standard: automatic detection
> cx18-0: Configured audio system: BTSC
> cx18-0: Specified audio input: Tuner (In8)
> cx18-0: Preferred audio mode: stereo
> cs5345 0-004c: Input: 1
> cs5345 0-004c: Volume: 0 dB
> tuner 1-0061: Tuner mode: analog TV
> tuner 1-0061: Frequency: 289.25 MHz
> tuner 1-0061: Standard: 0x0000b000
> 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: 48 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 0x0118, 28% of 2016 KiB (63 buffers) in use
> cx18-0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (16 buffers) in use
> cx18-0: Stream encoder PCM audio: status 0x0000, 0% of 1008 KiB (63 buffers) in use
> cx18-0: Read MPEG/VBI: 52838400/0 bytes
> cx18-0: ================== END STATUS CARD #0 ==================
>


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
Andy,

I tried this and still got no audio:
v4l2-ctl --device=/dev/video0 --set-input=1
sleep 5
v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0
sleep 5
v4l2-ctl --device=/dev/video0 --set-input=0
sleep 5
v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0

I am splitting my signal 5 ways with the aid of a signal booster, but when I directly plug in the originating source feed coax cable I still get no audio.

The only 2 things that have changed are:
1) Switched the PVR-150 with a new HVR-1600 both had FM and no IR
2) Ran another coax cable from an empty terminal on my splitter to the HVR-1600, one was already run because of the PVR-150 that was removed

I kind of thought if something turned out to not work it would be with the new HVR-1600 (/dev/video1) not the HVR-1600 that was already in the system that was already working well (/dev/video0).

These logs were made with 2 instances of mplayer running and both tuners tuned to the same
channel.

Thanks!

---

v4l2-dbg -d /dev/video0 -R type=host --log-status
ioctl: VIDIOC_DBG_G_REGISTER

00 04 08 0C 10 14 18 1C
02000000: 00000000 00000000 0001ec00 000a03fe 00000000 00080000 00000000 00000010
02000020: fffcdc66 000a0000 000a0000 00000000 fffcff0d 00000000 00000000 00000000
02000040: 00000000 00000010 00000000 00000000 00138241 00000000 000c0201 0015edff
02000060: 00000010 00000010 00000000 00000000 000e0a02 000bf600 00080000 00000000
02000080: 00000000 00000ad0 00000010 00000000 000a0000 000bfdfe 000fffff 00000010
020000a0: 00120200 000a0000 000e0000 000c0000 00000000 0000b200 00000000 00000010
020000c0: 00000890 0000b200 00000000 00000000 0001f9ee 0001f7f1 00000000 00000ac8
020000e0: 00000000 0001e7f1 0001e7f1 00080088 00000010 0001e3ef 0001e1e8 00000000

Status Log:

cx18-0: ================= START STATUS CARD #0 =================
tveeprom 1-0050: Hauppauge model 74041, rev C6B2, serial# XXXXXXX
tveeprom 1-0050: MAC address is XX-XX-XX-XX-XX-XX
tveeprom 1-0050: tuner model is TCL M2523_5N_E (idx 112, type 50)
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 no radio, has IR receiver, has IR transmitter
cx18-0: Video signal: present
cx18-0: Detected format: NTSC-M
cx18-0: Specified standard: NTSC-M
cx18-0: Specified video input: Composite 7
cx18-0: Specified audioclock freq: 48000 Hz
cx18-0: Detected audio mode: mono
cx18-0: Detected audio standard: no detected audio standard
cx18-0: Audio muted: yes
cx18-0: Audio microcontroller: running
cx18-0: Configured audio standard: automatic detection
cx18-0: Configured audio system: BTSC
cx18-0: Specified audio input: Tuner (In8)
cx18-0: Preferred audio mode: stereo
cs5345 1-004c: Input: 1
cs5345 1-004c: Volume: 0 dB
tuner 2-0061: Tuner mode: analog TV
tuner 2-0061: Frequency: 475.25 MHz
tuner 2-0061: Standard: 0x0000b000
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 2016 KiB (63 buffers) in use
cx18-0: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (16 buffers) in use
cx18-0: Stream encoder PCM audio: status 0x0000, 0% of 1008 KiB (63 buffers) in use
cx18-0: Read MPEG/VBI: 25866240/0 bytes
cx18-0: ================== END STATUS CARD #0 ==================

---

v4l2-dbg -d /dev/video1 -R type=host --log-status
ioctl: VIDIOC_DBG_G_REGISTER

00 04 08 0C 10 14 18 1C
02000000: 0000b200 000019c8 00000000 00000000 00000000 0009fc00 000603fa 0003e1f0
02000020: 0001e1f0 00000000 00000010 00080000 00000000 00000000 00020000 00020001
02000040: 00003c68 00000000 00008e01 0003fe00 00000000 00000000 00000000 00000000
02000060: 00000000 00004050 00000000 00000000 0013032a 00080bf4 0009fff5 00000000
02000080: 00003f08 00000000 001303b1 000e0001 00000000 00000000 000a01f0 0007ffff
020000a0: 00000000 00003590 00000000 00000000 00000000 00000000 d4001700 00000010
020000c0: 00000010 00000010 00000010 00000010 0000b200 0001f200 00000000 00000000
020000e0: 001a1001 00000010 00000000 001a0001 002c0001 0023f202 00000000 8d043441

Status Log:

cx18-1: ================= START STATUS CARD #1 =================
tveeprom 3-0050: Hauppauge model 74541, rev C6B6, serial# XXXXXXX
tveeprom 3-0050: MAC address is XX-XX-XX-XX-XX-XX
tveeprom 3-0050: tuner model is Philips FM1236 MK5 (idx 116, type 43)
tveeprom 3-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 3-0050: audio processor is CX23418 (idx 38)
tveeprom 3-0050: decoder processor is CX23418 (idx 31)
tveeprom 3-0050: has radio
cx18-1: Video signal: present
cx18-1: Detected format: NTSC-M
cx18-1: Specified standard: NTSC-M
cx18-1: Specified video input: Composite 7
cx18-1: Specified audioclock freq: 48000 Hz
cx18-1: Detected audio mode: stereo with SAP
cx18-1: Detected audio standard: BTSC
cx18-1: Audio muted: no
cx18-1: Audio microcontroller: running
cx18-1: Configured audio standard: automatic detection
cx18-1: Configured audio system: BTSC
cx18-1: Specified audio input: Tuner (In8)
cx18-1: Preferred audio mode: stereo
cs5345 3-004c: Input: 1
cs5345 3-004c: Volume: 0 dB
tda9887 4-0043: Data bytes: b=0x14 c=0x30 e=0x44
tuner 4-0061: Tuner mode: analog TV
tuner 4-0061: Frequency: 475.25 MHz
tuner 4-0061: Standard: 0x0000b000
cx18-1: Video Input: Tuner 1
cx18-1: Audio Input: Tuner 1
cx18-1: GPIO: direction 0x00003001, value 0x00003001
cx18-1: Tuner: TV
cx18-1: Stream: MPEG-2 Program Stream
cx18-1: VBI Format: No VBI
cx18-1: Video: 720x480, 30 fps
cx18-1: Video: MPEG-2, 4x3, Variable Bitrate, 6000000, Peak 8000000
cx18-1: Video: GOP Size 15, 2 B-Frames, GOP Closure
cx18-1: Audio: 48 kHz, MPEG-1/2 Layer II, 224 kbps, Stereo, No Emphasis, No CRC
cx18-1: Spatial Filter: Manual, Luma 1D Horizontal, Chroma 1D Horizontal, 0
cx18-1: Temporal Filter: Manual, 8
cx18-1: Median Filter: Off, Luma [0, 255], Chroma [0, 255]
cx18-1: Status flags: 0x00200001
cx18-1: Stream encoder MPEG: status 0x0118, 3% of 2016 KiB (63 buffers) in use
cx18-1: Stream encoder YUV: status 0x0000, 0% of 2048 KiB (16 buffers) in use
cx18-1: Stream encoder PCM audio: status 0x0000, 0% of 1008 KiB (63 buffers) in use
cx18-1: Read MPEG/VBI: 16779264/0 bytes
cx18-1: ================== END STATUS CARD #1 ==================


--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Fri, 2008-11-28 at 04:36 +0100, . . wrote:
> Andy,
>
> I tried this and still got no audio:
> v4l2-ctl --device=/dev/video0 --set-input=1
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-input=0
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0


> I am splitting my signal 5 ways with the aid of a signal booster, but
> when I directly plug in the originating source feed coax cable I still
> get no audio.


OK, so there's something going other than the audio standard detection
microcontroller being picky and signal strength problems.


> The only 2 things that have changed are:
> 1) Switched the PVR-150 with a new HVR-1600 both had FM and no IR
> 2) Ran another coax cable from an empty terminal on my splitter to the
> HVR-1600, one was already run because of the PVR-150 that was removed
>
> I kind of thought if something turned out to not work it would be with
> the new HVR-1600 (/dev/video1) not the HVR-1600 that was already in
> the system that was already working well (/dev/video0).

My suspicion is PCI bus errors that are going undetected by the driver.
My recent changes to the driver did 2 things WRT this: eliminated PCI
read retries for simple reads (they never helped fix things AFACIT) and
added functions named cx18_write_*expect() which does retries
conditioned on a mask. I think that those *expect() functions may be
missing PCI readback errors if the value they are expecting is all 1's.
I need to inspect these and fix them if that is going on.

In the meantime could you leave both cards in the machine and check for
audio using one card at a time:

# modprobe -r cx18
# modprobe cx18 cards=0,-1
(test card)
# modprobe -r cx18
# modprobe cx18 cards=-1,0
(test card)

If they both work individually, this would be further indication of PCI
bus errors being the problem.


My only other guess would be something changed with the tuner driver. My
HVR-1600 unit with the TCL M2523_5N_E tuner is on my other computer
downstairs - I'll try to do some testing with that.



> These logs were made with 2 instances of mplayer running and both tuners tuned to the same
> channel.
>
> Thanks!

Ah, rats. I'm sorry, we have different versions of v4l2-dbg. Can you
repeat your data collection with explicit register ranges this time?

# v4l2-dbg -d /dev/video0 -R type=host,min=0x2c40000,max=0x2c409c7
# v4l2-dbg -d /dev/video1 -R type=host,min=0x2c40000,max=0x2c409c7




Regards,
Andy


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Fri, 2008-11-28 at 15:54 -0500, Andy Walls wrote:
> On Fri, 2008-11-28 at 04:36 +0100, . . wrote:
> > Andy,
> >
> > I tried this and still got no audio:
> > v4l2-ctl --device=/dev/video0 --set-input=1
> > sleep 5
> > v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0
> > sleep 5
> > v4l2-ctl --device=/dev/video0 --set-input=0
> > sleep 5
> > v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0
>
>
> > I am splitting my signal 5 ways with the aid of a signal booster, but
> > when I directly plug in the originating source feed coax cable I still
> > get no audio.
>
>
> OK, so there's something going other than the audio standard detection
> microcontroller being picky and signal strength problems.
>
>
> > The only 2 things that have changed are:
> > 1) Switched the PVR-150 with a new HVR-1600 both had FM and no IR
> > 2) Ran another coax cable from an empty terminal on my splitter to the
> > HVR-1600, one was already run because of the PVR-150 that was removed
> >
> > I kind of thought if something turned out to not work it would be with
> > the new HVR-1600 (/dev/video1) not the HVR-1600 that was already in
> > the system that was already working well (/dev/video0).
>
> My suspicion is PCI bus errors that are going undetected by the driver.
> My recent changes to the driver did 2 things WRT this: eliminated PCI
> read retries for simple reads (they never helped fix things AFACIT) and
> added functions named cx18_write_*expect() which does retries
> conditioned on a mask. I think that those *expect() functions may be
> missing PCI readback errors if the value they are expecting is all 1's.
> I need to inspect these and fix them if that is going on.
>
> In the meantime could you leave both cards in the machine and check for
> audio using one card at a time:
>
> # modprobe -r cx18
> # modprobe cx18 cards=0,-1
> (test card)
> # modprobe -r cx18
> # modprobe cx18 cards=-1,0
> (test card)

Oops. That's "cardtype=" not "cards="

Regards,
Andy

> If they both work individually, this would be further indication of PCI
> bus errors being the problem.
>
>
> My only other guess would be something changed with the tuner driver. My
> HVR-1600 unit with the TCL M2523_5N_E tuner is on my other computer
> downstairs - I'll try to do some testing with that.
>
>
>
> > These logs were made with 2 instances of mplayer running and both tuners tuned to the same
> > channel.
> >
> > Thanks!
>
> Ah, rats. I'm sorry, we have different versions of v4l2-dbg. Can you
> repeat your data collection with explicit register ranges this time?
>
> # v4l2-dbg -d /dev/video0 -R type=host,min=0x2c40000,max=0x2c409c7
> # v4l2-dbg -d /dev/video1 -R type=host,min=0x2c40000,max=0x2c409c7
>
>
>
>
> Regards,
> Andy


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
I tried the --set-tuner=stereo, seems to work for me.

ivtv has a problem sharing /dev/dsp with other applications, so it is a bit retarted in that way, it is making me look into my old kernel device drivers book...man I hate to think.

Thank you,





Mark F. Kaufman



----- Original Message ----
From: Andy Walls <awalls@radix.net>
To: User discussion about IVTV <ivtv-users@ivtvdriver.org>
Sent: Friday, November 28, 2008 3:53:05 PM
Subject: Re: [ivtv-users] cx18 Have 2 installed HVR-1600s, 1 never records audio

On Fri, 2008-11-28 at 04:36 +0100, . . wrote:
> Andy,
>
> I tried this and still got no audio:
> v4l2-ctl --device=/dev/video0 --set-input=1
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-input=0
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0


> I am splitting my signal 5 ways with the aid of a signal booster, but
> when I directly plug in the originating source feed coax cable I still
> get no audio.


OK, so there's something going other than the audio standard detection
microcontroller being picky and signal strength problems.


> The only 2 things that have changed are:
> 1) Switched the PVR-150 with a new HVR-1600 both had FM and no IR
> 2) Ran another coax cable from an empty terminal on my splitter to the
> HVR-1600, one was already run because of the PVR-150 that was removed
>
> I kind of thought if something turned out to not work it would be with
> the new HVR-1600 (/dev/video1) not the HVR-1600 that was already in
> the system that was already working well (/dev/video0).

My suspicion is PCI bus errors that are going undetected by the driver.
My recent changes to the driver did 2 things WRT this: eliminated PCI
read retries for simple reads (they never helped fix things AFACIT) and
added functions named cx18_write_*expect() which does retries
conditioned on a mask. I think that those *expect() functions may be
missing PCI readback errors if the value they are expecting is all 1's.
I need to inspect these and fix them if that is going on.

In the meantime could you leave both cards in the machine and check for
audio using one card at a time:

# modprobe -r cx18
# modprobe cx18 cards=0,-1
(test card)
# modprobe -r cx18
# modprobe cx18 cards=-1,0
(test card)

If they both work individually, this would be further indication of PCI
bus errors being the problem.


My only other guess would be something changed with the tuner driver. My
HVR-1600 unit with the TCL M2523_5N_E tuner is on my other computer
downstairs - I'll try to do some testing with that.



> These logs were made with 2 instances of mplayer running and both tuners tuned to the same
> channel.
>
> Thanks!

Ah, rats. I'm sorry, we have different versions of v4l2-dbg. Can you
repeat your data collection with explicit register ranges this time?

# v4l2-dbg -d /dev/video0 -R type=host,min=0x2c40000,max=0x2c409c7
# v4l2-dbg -d /dev/video1 -R type=host,min=0x2c40000,max=0x2c409c7




Regards,
Andy


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users





_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
Andy,

I tried:
rmmod -f cx18
and nothing happened and wasn't returned back to the console, perhaps because I had myth configured to do 'Active EIT Scanning' and something became stuck.

I rebooted, turned off 'Active EIT Scanning' on both DVB cards, rebooted again and tried:
rmmod -f cx18
modprobe cx18 cards=0,-1
--->
FATAL: Error inserting cx18
Unknown symbol in module, or unknown parameter (see dmesg)
root@mythtv:/home/user# dmesg
cx18: Unknown parameter `cards'

I rebooted again and got the register values you asked for, however, now NTSC audio for both tuners seems to work. I guess blame it on user error for now. I have a feeling it may stop working again. Below are register values when NTSC audio is working for both cards, I'm not sure how usefull it will be. I can do more tests if you would like, but I'm not sure how to get the audio to stop working again, maybe a full power off will do it. I'll try that soon.

---

v4l2-dbg -d /dev/video0 -R type=host,min=0x2c40000,max=0x2c409c7
ioctl: VIDIOC_DBG_G_REGISTER

00 04 08 0C 10 14
18 1C
02c40000: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40020: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40040: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40060: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40080: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c400a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c400c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c400e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40100: 76028430 071b5c00 100a040f 002be2fe 0098d6dd 00078c00
00000002 00000000
02c40120: 10010000 5000b687 a11193f8 11205fff 00000000 000a1802
00000000 00370000
02c40140: 00007004 76543210 00000000 00000000 00000000 00000000
10e72100 06e72100
02c40160: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40180: 0000003f 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c401a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c401c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c401e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40200: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
00000000 00000000
02c40220: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40240: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
00000000 00000000
02c40260: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40280: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
00000000 00000000
02c402a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c402c0: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
00000000 00000000
02c402e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40300: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40320: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40340: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40360: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40380: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c403a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c403c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c403e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
00 04 08 0C 10 14
18 1C
02c40400: 0004e821 4010253f 00008000 007f8100 ffff05bf 00007e00
00000000 00080000
02c40420: 20007e7e 00000000 00000000 00000000 00000000 00000000
00000000 fff00006
02c40440: 00000cba 00000000 00000000 2c109970 03000001 2608c40d
54008877 00000000
02c40460: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a
6650021f 00087c1f
02c40480: 00000127 42600000 f824af22 001020dc cd3f028a 161f0300
00502040 14500014
02c404a0: 005c020f 00000000 00000000 00000000 00000000 00000004
0014140a 00000000
02c404c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c404e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40500: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40520: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40540: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40560: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40580: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c405a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c405c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c405e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40600: 0004e821 4010253f 00008000 007f8100 ffff05bf 00007e00
00000000 00080000
02c40620: 20007e7e 00000000 00000000 00000000 00000000 00000000
00000000 fff00006
02c40640: 00000cba 00000000 00000000 2c109970 03000001 2608c40d
54008877 00000000
02c40660: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a
6650021f 00087c1f
02c40680: 00000127 42600000 f824af22 001020dc cd3f028a 161f0300
00502040 14500014
02c406a0: 005c020f 00000000 00000000 00000000 00000000 00000004
0014140a 00000000
02c406c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c406e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40700: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40720: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40740: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40760: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40780: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c407a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c407c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c407e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
00 04 08 0C 10 14
18 1C
02c40800: 13903f00 00000f11 010104f6 200c0000 8aff0200 20140905
000031c0 478005d1
02c40820: 80002800 e544e544 007e54a8 240107f2 0186a021 c0005b30
24010800 0186a021
02c40840: c01021e8 01001d00 00000031 80001241 01424f72 00000031
800001bb 00007800
02c40860: 18041b55 07000400 46330001 00053010 00041828 00000604
08070807 078745ec
02c40880: 0c800a71 417183bd a423a423 0004005b 40039ba9 ae59ae59
002b02d5 0351001c
02c408a0: 12d60678 00005187 000353de 000001b1 0000f3d0 00000000
0fff00c8 000f001f
02c408c0: 00000000 00000000 0001a71f 000a0022 01063870 7fff002c
18181800 7fff33a3
02c408e0: 01063870 7fff0024 18181800 7fff33a3 bb520afc 55558888
0801867c 0801867c
02c40900: 08014faa 08014faa 08010453 08014faa 12b000c9 000000a0
000001a0 00000000
02c40920: 00000000 05050505 05050505 00000000 00000000 00000000
00000000 00000000
02c40940: 00000000 00000000 00000000 2e2e2e2e 33333333 00000000
10101010 00000000
02c40960: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40980: 00000000 00000000 3f003f00 3f003f00 00000000 80000000
00000000 00000000
02c409a0: 00000000 00000000 00000011 80000bf1 00000011 00007a4e
03000000 000002b3
02c409c0: e46cfb24 00000000

---

v4l2-dbg -d /dev/video1 -R type=host,min=0x2c40000,max=0x2c409c7
ioctl: VIDIOC_DBG_G_REGISTER

00 04 08 0C 10 14
18 1C
02c40000: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40020: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40040: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40060: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40080: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c400a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c400c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c400e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40100: 76028430 071b5c00 100a040f 002be2fe 0098d6dd 00078c00
00000002 00000000
02c40120: 10010000 5000b687 a11193f8 11205fff 00000000 000a1802
00000000 00370000
02c40140: 00007004 76543210 00000000 00000000 00000000 00000000
10e72100 06e72100
02c40160: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40180: 0000003f 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c401a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c401c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c401e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40200: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
00000000 00000000
02c40220: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40240: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
00000000 00000000
02c40260: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40280: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
00000000 00000000
02c402a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c402c0: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
00000000 00000000
02c402e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40300: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40320: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40340: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40360: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40380: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c403a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c403c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c403e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
00 04 08 0C 10 14
18 1C
02c40400: 0004e821 4010253f 00008000 007f9100 ffff07ff 00007e00
00000000 00080000
02c40420: 20007e7e 00000000 00000000 00000000 00000000 00000000
00000000 fff00006
02c40440: 00000cba 00000000 00000000 2c109970 03000001 2608c40d
54008877 00000000
02c40460: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a
6650021f 00087c1f
02c40480: 00000282 42600000 f8256b1e 001020dc cd3f028a 161f0300
00502040 14500014
02c404a0: 005c020f 00000000 00000000 00000000 00000000 00000004
0014140a 00000000
02c404c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c404e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40500: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40520: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40540: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40560: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40580: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c405a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c405c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c405e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40600: 0004e821 4010253f 00008000 007f8100 ffff07ff 00007e00
00000000 00080000
02c40620: 20007e7e 00000000 00000000 00000000 00000000 00000000
00000000 fff00006
02c40640: 00000cba 00000000 00000000 2c109970 03000001 2608c40d
54008877 00000000
02c40660: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a
6650021f 00087c1f
02c40680: 00000283 42600000 f8256a1e 001020dc cd3f028a 161f0300
00502040 14500014
02c406a0: 005c020f 00000000 00000000 00000000 00000000 00000004
0014140a 00000000
02c406c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c406e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40700: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40720: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40740: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40760: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40780: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c407a0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c407c0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c407e0: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
00 04 08 0C 10 14
18 1C
02c40800: 13f93f00 00000f11 010104f6 200c0000 8aff0200 20140905
000031c0 478005d1
02c40820: 80002800 e544e544 007e54a8 240107f2 0186a021 c0006621
24010800 0186a021
02c40840: c0117804 01001900 00000031 800006b2 01424ddb 00000031
80000ecf 00007800
02c40860: 18041b55 07000400 46330001 00053010 00041828 00000604
08070807 078745ec
02c40880: 0c800a71 417183bd a423a423 00000008 40039ba9 ae59ae59
002201a8 02e00002
02c408a0: 12d60678 00005187 000353de 000001b1 0000f3d0 00000000
0fff00c8 000f001f
02c408c0: 00000000 00000000 000d821b 000a0022 01063870 7fff002c
18181800 7fff33a3
02c408e0: 01063870 7fff0024 18181800 7fff33a3 bb520afc 55558888
0801867c 0801867c
02c40900: 08014faa 08014faa 08010453 08014faa 12b000c9 000000a0
000001a0 00000000
02c40920: 00000000 05050505 05050505 00000000 00000000 00000000
00000000 00000000
02c40940: 00000000 00000000 00000000 2e2e2e2e 33333333 00000000
10101010 00000000
02c40960: 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000
02c40980: 00000000 00000000 3f003f00 3f003f00 00000000 80000000
00000000 00000000
02c409a0: 00000000 00000000 00000011 80007297 00000011 0000c5c7
03020000 000002cc
02c409c0: 1ab4d9a0 00000000




--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
I mainly use mplayer for ivtv input. but since you have two video cards, you may have two /dev/video devices active.


#! /bin/bash


ivtv-tune -c 3 -d /dev/video0
mplayer -vo xv -ao alsa -autosync 30 /dev/video0

It's a chicken's way out but it works well.


Thank you,





Mark F. Kaufman



----- Original Message ----
From: Mark Kaufman <markfkaufman@yahoo.com>
To: User discussion about IVTV <ivtv-users@ivtvdriver.org>
Sent: Saturday, November 29, 2008 5:38:01 AM
Subject: Re: [ivtv-users] cx18 Have 2 installed HVR-1600s, 1 never records audio

I tried the --set-tuner=stereo, seems to work for me.

ivtv has a problem sharing /dev/dsp with other applications, so it is a bit retarted in that way, it is making me look into my old kernel device drivers book...man I hate to think.

Thank you,





Mark F. Kaufman



----- Original Message ----
From: Andy Walls <awalls@radix.net>
To: User discussion about IVTV <ivtv-users@ivtvdriver.org>
Sent: Friday, November 28, 2008 3:53:05 PM
Subject: Re: [ivtv-users] cx18 Have 2 installed HVR-1600s, 1 never records audio

On Fri, 2008-11-28 at 04:36 +0100, . . wrote:
> Andy,
>
> I tried this and still got no audio:
> v4l2-ctl --device=/dev/video0 --set-input=1
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-input=0
> sleep 5
> v4l2-ctl --device=/dev/video0 --set-ctrl=audio_mute=0


> I am splitting my signal 5 ways with the aid of a signal booster, but
> when I directly plug in the originating source feed coax cable I still
> get no audio.


OK, so there's something going other than the audio standard detection
microcontroller being picky and signal strength problems.


> The only 2 things that have changed are:
> 1) Switched the PVR-150 with a new HVR-1600 both had FM and no IR
> 2) Ran another coax cable from an empty terminal on my splitter to the
> HVR-1600, one was already run because of the PVR-150 that was removed
>
> I kind of thought if something turned out to not work it would be with
> the new HVR-1600 (/dev/video1) not the HVR-1600 that was already in
> the system that was already working well (/dev/video0).

My suspicion is PCI bus errors that are going undetected by the driver.
My recent changes to the driver did 2 things WRT this: eliminated PCI
read retries for simple reads (they never helped fix things AFACIT) and
added functions named cx18_write_*expect() which does retries
conditioned on a mask. I think that those *expect() functions may be
missing PCI readback errors if the value they are expecting is all 1's.
I need to inspect these and fix them if that is going on.

In the meantime could you leave both cards in the machine and check for
audio using one card at a time:

# modprobe -r cx18
# modprobe cx18 cards=0,-1
(test card)
# modprobe -r cx18
# modprobe cx18 cards=-1,0
(test card)

If they both work individually, this would be further indication of PCI
bus errors being the problem.


My only other guess would be something changed with the tuner driver. My
HVR-1600 unit with the TCL M2523_5N_E tuner is on my other computer
downstairs - I'll try to do some testing with that.



> These logs were made with 2 instances of mplayer running and both tuners tuned to the same
> channel.
>
> Thanks!

Ah, rats. I'm sorry, we have different versions of v4l2-dbg. Can you
repeat your data collection with explicit register ranges this time?

# v4l2-dbg -d /dev/video0 -R type=host,min=0x2c40000,max=0x2c409c7
# v4l2-dbg -d /dev/video1 -R type=host,min=0x2c40000,max=0x2c409c7




Regards,
Andy


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users





_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users





_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Sat, 2008-11-29 at 19:01 +0100, . . wrote:
> Andy,
>
> I tried:
> rmmod -f cx18
> and nothing happened and wasn't returned back to the console, perhaps because I had myth configured to do 'Active EIT Scanning' and something became stuck.
>
> I rebooted, turned off 'Active EIT Scanning' on both DVB cards, rebooted again and tried:
> rmmod -f cx18
> modprobe cx18 cards=0,-1
> --->
> FATAL: Error inserting cx18
> Unknown symbol in module, or unknown parameter (see dmesg)
> root@mythtv:/home/user# dmesg
> cx18: Unknown parameter `cards'

Yeah, mea culpa. "cardtype=" not "cards=". Check the output of

$ /sbin/modinfo cx18

to see all the options.


As far as rmmod not working, yes MythTV will hold the digital side open.
I usually do

# service mythbackend stop

as root, before removing the module. (I start-up the backend via init
scripts and have it running as user "mythtv". How you stop your
machine's mythbackend may vary from me.)






> I rebooted again and got the register values you asked for, however,
> now NTSC audio for both tuners seems to work. I guess blame it on user
> error for now. I have a feeling it may stop working again. Below are
> register values when NTSC audio is working for both cards, I'm not
> sure how usefull it will be. I can do more tests if you would like,
> but I'm not sure how to get the audio to stop working again, maybe a
> full power off will do it. I'll try that soon.


I had the tuner audio no work for me once or twice in recent weeks on my
single HVR-1600 card machine. Unloading and reloading the module fixed
it.

You may want to apply the attached patch, and see if the problem goes
away "forever" or some statistical approximation thereof.

I think the function the patch fixes up was the critical change that
allows a PCI MMIO write error to go undetected if the readback was a PCI
MMIO read error and we were expecting all 1's, conditioned by a mask,
coming back.

Regards,
Andy


>
> ---
>
> v4l2-dbg -d /dev/video0 -R type=host,min=0x2c40000,max=0x2c409c7
> ioctl: VIDIOC_DBG_G_REGISTER
>
> 00 04 08 0C 10 14
> 18 1C
> 02c40000: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40020: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40040: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40060: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40080: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c400a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c400c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c400e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40100: 76028430 071b5c00 100a040f 002be2fe 0098d6dd 00078c00
> 00000002 00000000
> 02c40120: 10010000 5000b687 a11193f8 11205fff 00000000 000a1802
> 00000000 00370000
> 02c40140: 00007004 76543210 00000000 00000000 00000000 00000000
> 10e72100 06e72100
> 02c40160: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40180: 0000003f 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c401a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c401c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c401e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40200: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
> 00000000 00000000
> 02c40220: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40240: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
> 00000000 00000000
> 02c40260: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40280: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
> 00000000 00000000
> 02c402a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c402c0: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
> 00000000 00000000
> 02c402e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40300: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40320: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40340: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40360: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40380: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c403a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c403c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c403e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 00 04 08 0C 10 14
> 18 1C
> 02c40400: 0004e821 4010253f 00008000 007f8100 ffff05bf 00007e00
> 00000000 00080000
> 02c40420: 20007e7e 00000000 00000000 00000000 00000000 00000000
> 00000000 fff00006
> 02c40440: 00000cba 00000000 00000000 2c109970 03000001 2608c40d
> 54008877 00000000
> 02c40460: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a
> 6650021f 00087c1f
> 02c40480: 00000127 42600000 f824af22 001020dc cd3f028a 161f0300
> 00502040 14500014
> 02c404a0: 005c020f 00000000 00000000 00000000 00000000 00000004
> 0014140a 00000000
> 02c404c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c404e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40500: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40520: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40540: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40560: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40580: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c405a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c405c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c405e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40600: 0004e821 4010253f 00008000 007f8100 ffff05bf 00007e00
> 00000000 00080000
> 02c40620: 20007e7e 00000000 00000000 00000000 00000000 00000000
> 00000000 fff00006
> 02c40640: 00000cba 00000000 00000000 2c109970 03000001 2608c40d
> 54008877 00000000
> 02c40660: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a
> 6650021f 00087c1f
> 02c40680: 00000127 42600000 f824af22 001020dc cd3f028a 161f0300
> 00502040 14500014
> 02c406a0: 005c020f 00000000 00000000 00000000 00000000 00000004
> 0014140a 00000000
> 02c406c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c406e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40700: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40720: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40740: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40760: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40780: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c407a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c407c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c407e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 00 04 08 0C 10 14
> 18 1C
> 02c40800: 13903f00 00000f11 010104f6 200c0000 8aff0200 20140905
> 000031c0 478005d1
> 02c40820: 80002800 e544e544 007e54a8 240107f2 0186a021 c0005b30
> 24010800 0186a021
> 02c40840: c01021e8 01001d00 00000031 80001241 01424f72 00000031
> 800001bb 00007800
> 02c40860: 18041b55 07000400 46330001 00053010 00041828 00000604
> 08070807 078745ec
> 02c40880: 0c800a71 417183bd a423a423 0004005b 40039ba9 ae59ae59
> 002b02d5 0351001c
> 02c408a0: 12d60678 00005187 000353de 000001b1 0000f3d0 00000000
> 0fff00c8 000f001f
> 02c408c0: 00000000 00000000 0001a71f 000a0022 01063870 7fff002c
> 18181800 7fff33a3
> 02c408e0: 01063870 7fff0024 18181800 7fff33a3 bb520afc 55558888
> 0801867c 0801867c
> 02c40900: 08014faa 08014faa 08010453 08014faa 12b000c9 000000a0
> 000001a0 00000000
> 02c40920: 00000000 05050505 05050505 00000000 00000000 00000000
> 00000000 00000000
> 02c40940: 00000000 00000000 00000000 2e2e2e2e 33333333 00000000
> 10101010 00000000
> 02c40960: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40980: 00000000 00000000 3f003f00 3f003f00 00000000 80000000
> 00000000 00000000
> 02c409a0: 00000000 00000000 00000011 80000bf1 00000011 00007a4e
> 03000000 000002b3
> 02c409c0: e46cfb24 00000000
>
> ---
>
> v4l2-dbg -d /dev/video1 -R type=host,min=0x2c40000,max=0x2c409c7
> ioctl: VIDIOC_DBG_G_REGISTER
>
> 00 04 08 0C 10 14
> 18 1C
> 02c40000: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40020: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40040: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40060: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40080: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c400a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c400c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c400e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40100: 76028430 071b5c00 100a040f 002be2fe 0098d6dd 00078c00
> 00000002 00000000
> 02c40120: 10010000 5000b687 a11193f8 11205fff 00000000 000a1802
> 00000000 00370000
> 02c40140: 00007004 76543210 00000000 00000000 00000000 00000000
> 10e72100 06e72100
> 02c40160: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40180: 0000003f 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c401a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c401c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c401e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40200: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
> 00000000 00000000
> 02c40220: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40240: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
> 00000000 00000000
> 02c40260: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40280: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
> 00000000 00000000
> 02c402a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c402c0: 00000000 0000ffff 0000ffff 00000000 00000020 00000033
> 00000000 00000000
> 02c402e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40300: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40320: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40340: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40360: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40380: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c403a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c403c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c403e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 00 04 08 0C 10 14
> 18 1C
> 02c40400: 0004e821 4010253f 00008000 007f9100 ffff07ff 00007e00
> 00000000 00080000
> 02c40420: 20007e7e 00000000 00000000 00000000 00000000 00000000
> 00000000 fff00006
> 02c40440: 00000cba 00000000 00000000 2c109970 03000001 2608c40d
> 54008877 00000000
> 02c40460: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a
> 6650021f 00087c1f
> 02c40480: 00000282 42600000 f8256b1e 001020dc cd3f028a 161f0300
> 00502040 14500014
> 02c404a0: 005c020f 00000000 00000000 00000000 00000000 00000004
> 0014140a 00000000
> 02c404c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c404e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40500: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40520: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40540: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40560: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40580: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c405a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c405c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c405e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40600: 0004e821 4010253f 00008000 007f8100 ffff07ff 00007e00
> 00000000 00080000
> 02c40620: 20007e7e 00000000 00000000 00000000 00000000 00000000
> 00000000 fff00006
> 02c40640: 00000cba 00000000 00000000 2c109970 03000001 2608c40d
> 54008877 00000000
> 02c40660: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a
> 6650021f 00087c1f
> 02c40680: 00000283 42600000 f8256a1e 001020dc cd3f028a 161f0300
> 00502040 14500014
> 02c406a0: 005c020f 00000000 00000000 00000000 00000000 00000004
> 0014140a 00000000
> 02c406c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c406e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40700: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40720: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40740: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40760: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40780: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c407a0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c407c0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c407e0: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 00 04 08 0C 10 14
> 18 1C
> 02c40800: 13f93f00 00000f11 010104f6 200c0000 8aff0200 20140905
> 000031c0 478005d1
> 02c40820: 80002800 e544e544 007e54a8 240107f2 0186a021 c0006621
> 24010800 0186a021
> 02c40840: c0117804 01001900 00000031 800006b2 01424ddb 00000031
> 80000ecf 00007800
> 02c40860: 18041b55 07000400 46330001 00053010 00041828 00000604
> 08070807 078745ec
> 02c40880: 0c800a71 417183bd a423a423 00000008 40039ba9 ae59ae59
> 002201a8 02e00002
> 02c408a0: 12d60678 00005187 000353de 000001b1 0000f3d0 00000000
> 0fff00c8 000f001f
> 02c408c0: 00000000 00000000 000d821b 000a0022 01063870 7fff002c
> 18181800 7fff33a3
> 02c408e0: 01063870 7fff0024 18181800 7fff33a3 bb520afc 55558888
> 0801867c 0801867c
> 02c40900: 08014faa 08014faa 08010453 08014faa 12b000c9 000000a0
> 000001a0 00000000
> 02c40920: 00000000 05050505 05050505 00000000 00000000 00000000
> 00000000 00000000
> 02c40940: 00000000 00000000 00000000 2e2e2e2e 33333333 00000000
> 10101010 00000000
> 02c40960: 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000 00000000
> 02c40980: 00000000 00000000 3f003f00 3f003f00 00000000 80000000
> 00000000 00000000
> 02c409a0: 00000000 00000000 00000011 80007297 00000011 0000c5c7
> 03020000 000002cc
> 02c409c0: 1ab4d9a0 00000000
>
>
>
>
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
Andy,

After I had NTSC audio for both cards for a few hours I rebooted and got
/dev/video0 ---> red screen no audio on NTSC
/dev/video1 ---> no audio

Rebooted a couple of more times and now I'm back to the original issue
/dev/video0 ---> no NTSC audio
/dev/video1 ---> NTSC audio

I also tried:
rmmod -f cx18
modprobe cx18 cardtype=0,-1
mplayer /dev/video0 ---> NTSC audio on 2nd recording (No NTSC audio on 1st recording)

rmmod -f cx18
modprobe cx18 cardtype=-1,0
mplayer /dev/video1 ---> NTSC audio on 2nd recording (No NTSC audio on 1st recording)

For both mplayer tries above, on the 1st recording, after a while, perhaps 10-30 seconds, very short
bursts of audio came through, and the V: and A: became desyched.

I'll try the patch soon or upgrade to the latest cx18-bugfix if it's added.

Now that the issue is back here are the registers: (see below)

---

v4l2-dbg -d /dev/video0 -R type=host,min=0x2c40000,max=0x2c409c7
ioctl: VIDIOC_DBG_G_REGISTER

00 04 08 0C 10 14 18 1C
02c40000: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c400a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c400c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c400e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40100: 76028430 071b5c00 100a040f 002be2fe 0098d6dd 00078c00 00000002 00000000
02c40120: 10010000 5000b687 a11193f8 11205fff 00000000 000a1802 00000000 00360000
02c40140: 00007004 76543210 00000000 00000000 00000000 00000000 10e72100 06e72100
02c40160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40180: 0000003f 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c401a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c401c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c401e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40200: 00000000 0000ffff 0000ffff 00000000 00000020 00000033 00000000 00000000
02c40220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40240: 00000000 0000ffff 0000ffff 00000000 00000020 00000033 00000000 00000000
02c40260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40280: 00000000 0000ffff 0000ffff 00000000 00000020 00000033 00000000 00000000
02c402a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c402c0: 00000000 0000ffff 0000ffff 00000000 00000020 00000033 00000000 00000000
02c402e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40300: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c403a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c403c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c403e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00 04 08 0C 10 14 18 1C
02c40400: 0004e821 4010253f 00008000 007f8100 ffff05bf 00007e00 00000000 00080000
02c40420: 20007e7e 00000000 00000000 00000000 00000000 00000000 00000000 fff00006
02c40440: 00000cba 00000000 00000000 2c109970 03000001 2608c40d 54008877 00000000
02c40460: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a 6650021f 00087c1f
02c40480: 000003c5 42600000 f8257f1f 001020dc cd3f028a 161f0300 00502040 14500014
02c404a0: 005c020f 00000000 00000000 00000000 00000000 00000004 0014140a 00000000
02c404c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c404e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40500: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40580: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c405a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c405c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c405e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40600: 0004e821 4010253f 00008000 007f8100 ffff05bf 00007e00 00000000 00080000
02c40620: 20007e7e 00000000 00000000 00000000 00000000 00000000 00000000 fff00006
02c40640: 00000cba 00000000 00000000 2c109970 03000001 2608c40d 54008877 00000000
02c40660: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a 6650021f 00087c1f
02c40680: 000003c5 42600000 f8257f1f 001020dc cd3f028a 161f0300 00502040 14500014
02c406a0: 005c020f 00000000 00000000 00000000 00000000 00000004 0014140a 00000000
02c406c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c406e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40700: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40720: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40740: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40760: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40780: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c407a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c407c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c407e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00 04 08 0C 10 14 18 1C
02c40800: 13003f00 3003ff00 010104f6 20000000 80ff0200 20140905 000031c0 47800050
02c40820: 1bce4aad e005e085 000001a0 03ed01e9 030d4010 00000000 03ed0476 030d4010
02c40840: 00000000 03ed0000 1e848010 00000000 00a15f55 00000030 00000000 8000703e
02c40860: 00ca01b8 00000000 00000000 00000000 00000000 00000000 0b600b60 06a24588
02c40880: 0b3c07da 417183bd a423a423 01d60861 40039ba9 ae59ae59 00cf0f34 0d4206e0
02c408a0: 12d60678 00005187 000353de 000001b1 0000f3d0 00000000 0fff00c8 000f001f
02c408c0: 00000000 00000000 00059d91 00000000 1f063870 7fff002c 18181800 7fff33a3
02c408e0: 01063870 7fff0024 18181800 7fff33a3 bbd20afc 55558888 0801867c 0801867c
02c40900: 08014faa 08014faa 08010453 08014faa 12b000c9 000000a0 000001a0 00000000
02c40920: 00000000 05050505 05050505 00000000 00000000 00000000 00000000 00000000
02c40940: 00000000 00000000 00000000 2e2e2e2e 33333333 00000000 10101010 00000000
02c40960: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40980: 00000000 00000000 3f003f00 3f003f00 00000000 00000000 00000000 00000000
02c409a0: 00000000 00000000 00000000 00006bfa 00000000 00004d25 02020000 000002af
02c409c0: fe1002c8 0000000a

---

v4l2-dbg -d /dev/video1 -R type=host,min=0x2c40000,max=0x2c409c7
ioctl: VIDIOC_DBG_G_REGISTER

00 04 08 0C 10 14 18 1C
02c40000: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40020: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40040: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c400a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c400c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c400e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40100: 76028430 071b5c00 100a040f 002be2fe 0098d6dd 00078c00 00000002 00000000
02c40120: 10010000 5000b687 a11193f8 11205fff 00000000 000a1802 00000000 00370000
02c40140: 00007004 76543210 00000000 00000000 00000000 00000000 10e72100 06e72100
02c40160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40180: 0000003f 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c401a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c401c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c401e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40200: 00000000 0000ffff 0000ffff 00000000 00000020 00000033 00000000 00000000
02c40220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40240: 00000000 0000ffff 0000ffff 00000000 00000020 00000033 00000000 00000000
02c40260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40280: 00000000 0000ffff 0000ffff 00000000 00000020 00000033 00000000 00000000
02c402a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c402c0: 00000000 0000ffff 0000ffff 00000000 00000020 00000033 00000000 00000000
02c402e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40300: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c403a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c403c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c403e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00 04 08 0C 10 14 18 1C
02c40400: 0004e821 4010253f 00008000 007f8100 ffff05bf 00007e00 00000000 00080000
02c40420: 20007e7e 00000000 00000000 00000000 00000000 00000000 00000000 fff00006
02c40440: 00000cba 00000000 00000000 2c109970 03000001 2608c40d 54008877 00000000
02c40460: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a 6650021f 00087c1f
02c40480: 000000ca 42600000 f824fe20 001020dc cd3f028a 161f0300 00502040 14500014
02c404a0: 005c020f 00000000 00000000 00000000 00000000 00000004 0014140a 00000000
02c404c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c404e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40500: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40580: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c405a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c405c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c405e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40600: 0004e821 4010253f 00008000 007f8100 ffff05bf 00007e00 00000000 00080000
02c40620: 20007e7e 00000000 00000000 00000000 00000000 00000000 00000000 fff00006
02c40640: 00000cba 00000000 00000000 2c109970 03000001 2608c40d 54008877 00000000
02c40660: 340a1402 0636ca6e 080000e7 0284f620 5b2d007a 1a1e701a 6650021f 00087c1f
02c40680: 000000ca 42600000 f824fe20 001020dc cd3f028a 161f0300 00502040 14500014
02c406a0: 005c020f 00000000 00000000 00000000 00000000 00000004 0014140a 00000000
02c406c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c406e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40700: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40720: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40740: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40760: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40780: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c407a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c407c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c407e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00 04 08 0C 10 14 18 1C
02c40800: 13f93f00 00000f11 010104f6 200c0000 8aff0200 20140905 000031c0 478005d1
02c40820: 80002800 e544e544 007e54a8 240107f2 0186a021 c0006a9a 24010800 0186a021
02c40840: c0112cb6 01001900 00000031 80000755 01424f72 00000031 80000fef 00007800
02c40860: 18041b55 07000400 46330001 00053010 00041828 00000604 08070807 078745ec
02c40880: 0c800a71 417183bd a423a423 00000007 40039ba9 ae59ae59 002201c1 05010003
02c408a0: 12d60678 00005187 000353de 000001b1 0000f3d0 00000000 0fff00c8 000f001f
02c408c0: 00000000 00000000 000d821e 000a0022 01063870 7fff002c 18181800 7fff33a3
02c408e0: 01063870 7fff0024 18181800 7fff33a3 bb520afc 55558888 0801867c 0801867c
02c40900: 08014faa 08014faa 08010453 08014faa 12b000c9 000000a0 000001a0 00000000
02c40920: 00000000 05050505 05050505 00000000 00000000 00000000 00000000 00000000
02c40940: 00000000 00000000 00000000 2e2e2e2e 33333333 00000000 10101010 00000000
02c40960: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02c40980: 00000000 00000000 3f003f00 3f003f00 00000000 80000000 00000000 00000000
02c409a0: 00000000 00000000 00000011 80007c36 00000011 0000c4de 03030000 000002a5
02c409c0: cec8fc50 00000000




--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
Andy,

I used the patch against cx18-bugfix rev 9766.

My scripts usually record for 5 seconds on each NTSC tuner to get around the no audio on 1st recording issue. But upon 1st reboot, if those scripts ran correctly, I got NTSC audio on both tuners on the 3rd recording. This seemed odd, so I disabled the deletion of these test recordings to verify the script was running, rebooted, and it's back to normal. The scripts run on both tuners and I get NTSC audio on the 2nd recording on both tuners. I haven't rebooted yet, and will reply if other related issues arise.

Thanks & Cheers!


--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Sun, 2008-11-30 at 07:56 +0100, . . wrote:
> Andy,
>
> After I had NTSC audio for both cards for a few hours I rebooted and got
> /dev/video0 ---> red screen no audio on NTSC
> /dev/video1 ---> no audio
>
> Rebooted a couple of more times and now I'm back to the original issue
> /dev/video0 ---> no NTSC audio
> /dev/video1 ---> NTSC audio
>
> I also tried:
> rmmod -f cx18
> modprobe cx18 cardtype=0,-1
> mplayer /dev/video0 ---> NTSC audio on 2nd recording (No NTSC audio on 1st recording)
>
> rmmod -f cx18
> modprobe cx18 cardtype=-1,0
> mplayer /dev/video1 ---> NTSC audio on 2nd recording (No NTSC audio on 1st recording)
>
> For both mplayer tries above, on the 1st recording, after a while, perhaps 10-30 seconds, very short
> bursts of audio came through, and the V: and A: became desyched.

So to summarize:

When setting up only one card at a time with the "cardtype=" settings,
the one card always produces audio on captures after the first. (you
may want to use the -cache 8192 parameter with mplayer by the way)

Did I get that right?


> I'll try the patch soon or upgrade to the latest cx18-bugfix if it's added.

I doubt I'll add the patch to the cx18-bugfix repo since everything
there is in the main repo (except for 1 q_io experiment). I'm waiting
for changes to be pulled from my v4l-dvb repo, which has the patch, for
the main repo.


> Now that the issue is back here are the registers: (see below)

I've taken a look, and many of the audio related registers that the
audio microcontroller are different. It also looks like something may
have gone wrong with the audio microcontroller firmware download and it
went undetected. You didn't get any "unable to load firmware
v4l-cx23418-dig.fw" messages in you logs I assume.


Coupled with the red screen symptom you mention and that fact audio
works with one card at a time, I'm really going to blame PCI bus errors
that my recent changes let inadvertently let slide by. Try the patch I
sent or use my v4l-dvb repo.


If that doesn't work, we'll have to add some debugging to
cx18-av-firmware.c to debug the audio microcontroller firmware download.
The nice thing is that the problem seems to be moderately reproducable
on your system, so we can hunt this down.

Regards,
Andy



_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Sun, 2008-11-30 at 21:42 +0100, . . wrote:
> Andy,
>
> I used the patch against cx18-bugfix rev 9766.
>
> My scripts usually record for 5 seconds on each NTSC tuner to get
> around the no audio on 1st recording issue. But upon 1st reboot, if
> those scripts ran correctly, I got NTSC audio on both tuners on the
> 3rd recording. This seemed odd, so I disabled the deletion of these
> test recordings to verify the script was running, rebooted, and it's
> back to normal. The scripts run on both tuners and I get NTSC audio on
> the 2nd recording on both tuners. I haven't rebooted yet, and will
> reply if other related issues arise.

e-mails that pass in the night...

OK so what you're saying is, that for the moment, the patch appears to
fix your problem?

Regards,
Andy


> Thanks & Cheers!
>
>


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
Yes, it's (still) working.

My system has been up for 4 days and I just rebooted and still have NTSC audio on both of my HVR-1600s.

Thanks & Cheers!

--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
The issue is occurring again with the same symptoms in v4l-dvb changeset 10227.

I also tried awalls/v4l-dvb, but it doesn't compile:
v4l-dvb-84bd3ab2c567/v4l/radio-tea5764.c:597: error: initializer element is not computable at load time

--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
I was able to compile ~awalls/v4l-dvb/ revision 10252 and the same issue is occurring again. Thanks!

--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Wed, 2009-01-21 at 06:52 +0100, . . wrote:
> I was able to compile ~awalls/v4l-dvb/ revision 10252 and the same issue is occurring again. Thanks!
>


Try this patch.

Regards,
Andy



diff -r db4a95792cf6 linux/drivers/media/video/cx18/cx18-audio.c
--- a/linux/drivers/media/video/cx18/cx18-audio.c Mon Jan 19 16:31:22 2009 -0500
+++ b/linux/drivers/media/video/cx18/cx18-audio.c Wed Jan 21 20:32:53 2009 -0500
@@ -64,8 +64,7 @@
val = cx18_read_reg(cx, CX18_AUDIO_ENABLE) & ~0x30;
val |= (audio_input > CX18_AV_AUDIO_SERIAL2) ? 0x20 :
(audio_input << 4);
- cx18_write_reg(cx, val | 0xb00, CX18_AUDIO_ENABLE);
- cx18_vapi(cx, CX18_APU_RESETAI, 1, 0);
+ cx18_write_reg_expect(cx, val | 0xb00, CX18_AUDIO_ENABLE, val, 0x30);
return 0;
}

diff -r db4a95792cf6 linux/drivers/media/video/cx18/cx18-av-firmware.c
--- a/linux/drivers/media/video/cx18/cx18-av-firmware.c Mon Jan 19 16:31:22 2009 -0500
+++ b/linux/drivers/media/video/cx18/cx18-av-firmware.c Wed Jan 21 20:32:53 2009 -0500
@@ -131,7 +131,8 @@
v = cx18_read_reg(cx, CX18_AUDIO_ENABLE);
/* If bit 11 is 1, clear bit 10 */
if (v & 0x800)
- cx18_write_reg(cx, v & 0xFFFFFBFF, CX18_AUDIO_ENABLE);
+ cx18_write_reg_expect(cx, v & 0xFFFFFBFF, CX18_AUDIO_ENABLE,
+ 0, 0x400);

/* Enable WW auto audio standard detection */
v = cx18_av_read4(cx, CXADEC_STD_DET_CTL);
diff -r db4a95792cf6 linux/drivers/media/video/cx18/cx18-driver.c
--- a/linux/drivers/media/video/cx18/cx18-driver.c Mon Jan 19 16:31:22 2009 -0500
+++ b/linux/drivers/media/video/cx18/cx18-driver.c Wed Jan 21 20:32:53 2009 -0500
@@ -1058,19 +1058,7 @@
/*
* Init the firmware twice to work around a silicon bug
* with the digital TS.
- *
- * The second firmware load requires us to normalize the APU state,
- * or the audio for the first analog capture will be badly incorrect.
- *
- * I can't seem to call APU_RESETAI and have it succeed without the
- * APU capturing audio, so we start and stop it here to do the reset
*/
-
- /* MPEG Encoding, 224 kbps, MPEG Layer II, 48 ksps */
- cx18_vapi(cx, CX18_APU_START, 2, CX18_APU_ENCODING_METHOD_MPEG|0xb9, 0);
- cx18_vapi(cx, CX18_APU_RESETAI, 0);
- cx18_vapi(cx, CX18_APU_STOP, 1, CX18_APU_ENCODING_METHOD_MPEG);
-
fw_retry_count = 3;
while (--fw_retry_count > 0) {
/* load firmware */
@@ -1084,6 +1072,19 @@
set_bit(CX18_F_I_FAILED, &cx->i_flags);
return -ENXIO;
}
+
+ /*
+ * The second firmware load requires us to normalize the APU state,
+ * or the audio for the first analog capture will be badly incorrect.
+ *
+ * I can't seem to call APU_RESETAI and have it succeed without the
+ * APU capturing audio, so we start and stop it here to do the reset
+ */
+
+ /* MPEG Encoding, 224 kbps, MPEG Layer II, 48 ksps */
+ cx18_vapi(cx, CX18_APU_START, 2, CX18_APU_ENCODING_METHOD_MPEG|0xb9, 0);
+ cx18_vapi(cx, CX18_APU_RESETAI, 0);
+ cx18_vapi(cx, CX18_APU_STOP, 1, CX18_APU_ENCODING_METHOD_MPEG);

vf.tuner = 0;
vf.type = V4L2_TUNER_ANALOG_TV;



_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
Hi,

I have NTSC audio on both cards again.

The patches worked against ~awalls/v4l-dvb rev 10252.

I had to implement the patches manually because patching with
.patch files that I created by copying and pasting didn't work (*I
think*) because of white-space and formatting issues. Perhaps I'm
using incorrect 'patch' command-line switches or something.

Thanks!


--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Sat, 2009-01-24 at 19:05 +0100, . . wrote:
> Hi,
>
> I have NTSC audio on both cards again.
>
> The patches worked against ~awalls/v4l-dvb rev 10252.

Good to hear it worked. That patch should be in my ~awalls/v4l-dvb repo
now. I'll ask for it to be pulled to the main repo when I'm done
mucking with things (Sliced VBI - fun, fun, fun) on Sunday night.

Regards,
Andy

> I had to implement the patches manually because patching with
> .patch files that I created by copying and pasting didn't work (*I
> think*) because of white-space and formatting issues. Perhaps I'm
> using incorrect 'patch' command-line switches or something.
>
> Thanks!
>
>


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
In v4l-dvb revision 10516 this issue is still intermittently occurring.

--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
Because this issue is occurring again in v4l-dvb revision 10516 I reverted back to ~awalls/v4l-dvb revision 10284, but that didn't bring back NTSC audio in both of my cx18s. I'm confused because with both revisions I only get audio in 1 of my cx18s.

--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
On Mon, 2009-02-16 at 08:13 +0100, . . wrote:
> Because this issue is occurring again in v4l-dvb revision 10516 I
> reverted back to ~awalls/v4l-dvb revision 10284, but that didn't bring
> back NTSC audio in both of my cx18s. I'm confused because with both
> revisions I only get audio in 1 of my cx18s.



Yes, the audio stuff confuses me too. :)

The symptoms are indicative of an intermittent failure to do *something*
right. I just don't know quite what that something is.

Here are my guesses:

1. Failure to properly reset the CX24227. This can cause errors on the
I2C bus that has everything but the analog tuner on it. Changing the
reset assert delay in cx18-cards.c to 100 ms instead or 30 or 40 ms will
eliminate that possibility.

2. Contention for access to CX23418 register or memory
locations causes PCI bus transactions from the host CPU to fail. After 10
failures on any one transaction, the cx18 driver gives up silently.
I'm guessing this can or may cause things like the below to happen:

a. I2C bus bit errors
b. failure to set registers properly (i.e. CX18_AUDIO_ENABLE)
c. failure to load firmware images properly.

I suspect this failure mode may be exacerbated by a busy PCI bus, which
is the case at boot up. Try modprobe -r cx18; modprobe cx18 some time
after boot to see if things are better in that case.

This also might be somewhat PCI host and bridge chipset dependent.
Apparently some PCI-PCI bridges are a little more persistent in making
sure PCI bus transaction go through.


Regards,
Andy


_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users
Re: cx18 Have 2 installed HVR-1600s, 1 never records audio [ In reply to ]
This is still occurring on rev 11330 (5567e82c34a0).

Reloading the cx18 module seems to fix this issue. However, I can't get the IR receiver that's attached to 1 of my HVR-1600s to work after the cx18 module is reloaded.

Thank you for your help.

--
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze

_______________________________________________
ivtv-users mailing list
ivtv-users@ivtvdriver.org
http://ivtvdriver.org/mailman/listinfo/ivtv-users