Henk,

On Sun, Jul 10, 2005 at 04:47:36PM +0200, Michel vd Laan wrote:
seem to make it work. I have not found consistency here (Henk seems to have
sound without saa7127 channels with the very same pvr500 in pal-europe).

I don't know if I have the very same type of unit, since you use tuner
51 and I use tuner 56?

Blimey Holmes, I think you've cracked the case!
(explanation below, solution(?) to the unload / reload (aka delayed sound on pvr500 is even further down!)

Indeed I have been forcing the tuner to type 51 (as per documentation from README.cx25840 :

"Tuners:
Tuner types on different PVR150 and PVR500 cards.
[...]
- PVR500, has two Philips MQ1216ME/I tuners only supported by the patched tuner.ko module provided in this patch, type 51"

... and several other web howto's with the pvr500 PAL suggesting type #51 )

appearantly quite some skews have been introduced relative to this README which haven't made it to the Changelog (?)
(unless implicitely by 0.3.2z or 0.3.2w)

Indeed, not specifying will autodetect type 56 (or forcing type 56) - If I hadn't been so stubborn I'd never have this trouble - the autodetect probes in 0.3.6 are really quite good! Quite interesting is the part though that when you are insistant and persuade it to be a type #51, the tuner will actually happily tune in to the specified channels.

Now to the "problem" not having sound upon first driver load - (read on if you wish, it may get a bit tiresome to plow through the next part). This appears to be some kind of timeout / deadlock / module parameter / ivtvctl or cx25840 issue. I recall I had a similar issue when I was still playing around with the tune type 51 , when the sound kicked in just a few minutes well into the capture.

If you're patient enough, and do nothing, sound will kick in about 8 minutes after the loading of ivtv (and subsequent modules) ! (might be triggered by prodding the tuner or /dev/video devices). Below is a snippet of my kern.log, with some comments to clarify:

[ /me loading just ivtv (modprobe ivtv).
Jul 10 22:26:08 maarssen kernel: ivtv: ==================== END INIT IVTV ====================
[ivtv loading finished]

[issueing ptune.pl -f pal-europe -c E9]
Jul 10 22:27:26 maarssen kernel: cx25840: decoder disable output
Jul 10 22:27:26 maarssen kernel: cx25840: decoder enable output
Jul 10 22:27:26 maarssen kernel: cx25840: decoder set norm PAL
Jul 10 22:27:26 maarssen kernel: cx25840: decoder set input (6)
Jul 10 22:27:26 maarssen kernel: cx25840: now setting Tuner input
Jul 10 22:27:26 maarssen kernel: cx25840: set audio input (0)

[issueing cat /dev/video0 > blah1.mpg ]
Jul 10 22:28:05 maarssen kernel: ivtv: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total) Jul 10 22:28:05 maarssen kernel: ivtv: Setup VBI API header 0x0000bd0d pkts 1 buffs 4 ln 36 sz 1444 Jul 10 22:28:05 maarssen kernel: ivtv: Setup VBI start 0x002fea04 frames 4 fpi 1 lines 0x00000140
Jul 10 22:28:05 maarssen kernel: cx25840: decoder disable output
Jul 10 22:28:05 maarssen kernel: cx25840: decoder enable output
Jul 10 22:28:05 maarssen kernel: cx25840: decoder set norm PAL
Jul 10 22:28:05 maarssen kernel: cx25840: decoder set input (6)
Jul 10 22:28:05 maarssen kernel: cx25840: now setting Tuner input
Jul 10 22:28:05 maarssen kernel: cx25840: set audio input (0)

[issueing ptune.pl -f pal-europe -c 35 --input /dev/video1 ]
Jul 10 22:30:06 maarssen kernel: cx25840: decoder disable output
Jul 10 22:30:06 maarssen kernel: cx25840: decoder enable output
Jul 10 22:30:06 maarssen kernel: cx25840: decoder set norm PAL
Jul 10 22:30:06 maarssen kernel: cx25840: decoder set input (6)
Jul 10 22:30:06 maarssen kernel: cx25840: now setting Tuner input
Jul 10 22:30:06 maarssen kernel: cx25840: set audio input (0)

[issueing cat /dev/video1 > blah2.mpg ]
Jul 10 22:32:34 maarssen kernel: ivtv: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total) Jul 10 22:32:35 maarssen kernel: ivtv: Setup VBI API header 0x0000bd0d pkts 1 buffs 4 ln 36 sz 1444 Jul 10 22:32:35 maarssen kernel: ivtv: Setup VBI start 0x002fea04 frames 4 fpi 1 lines 0x00000140
Jul 10 22:32:36 maarssen kernel: cx25840: decoder disable output
Jul 10 22:32:36 maarssen kernel: cx25840: decoder enable output
Jul 10 22:32:36 maarssen kernel: cx25840: decoder set norm PAL
Jul 10 22:32:36 maarssen kernel: cx25840: decoder set input (6)
Jul 10 22:32:36 maarssen kernel: cx25840: now setting Tuner input
Jul 10 22:32:36 maarssen kernel: cx25840: set audio input (0)

Sound kicking in at approx 22:37:50 (give or take). No corresponding messages in any log - (dmesg / kern.log /
messages (= kitchen sink))

Before this, I have taken your suggestion to load ivtv, then unload all related modules, and reload - indeed with instantaneous result. I have captured kern.log snippets of both and the only difference I found with the second load was an additional instance of "cx25840: set audio input (0)" within the ivtv INIT section that wasn't there in the
first run.

When interested, I can mail or attached the seperate snippets, but you can produce these yourself as well ofcourse.

The key to the mystery is in there somewhere... Or just be patient ofcourse ;)



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to