Bryan Mayland wrote:

Morten Rønseth wrote:

I just sussed it.
My kernel version is 2.6.8.1-12mdk - tda9887.c, line 548 defines msleep_iterruptible iff version is 2.6.7 or older. Don't know why, but I seem to need it, version 2.6.8 ( can't believe I haven't seen this before...). I changed the "7" to an "8" and voila! it compiles, installs and loads...:-)


Good work! Now comes the real test. Back out the magic patch I posted for you, unload all the relevant modules and see if it goes from scratch. Differences from the current ivtv release should be:
-- cx25840 line 221 should be commented out. (ACFG_DIS(0x01))
-- tda9887 should have msleep_interuptible defined for <= 2.6.8
-- your modprobe.d should have `options ivtv tda9887=0`
The first two things I will roll up with my volume control patch, so you won't have to worry about patching every version, but it would be cool to know if they're going to work.

OK, done that - even did cold boot :-) Only thing that "worries" me now is that the system is completely silent for the first 30 secs or so of watching TV. After that sound returns and all seems OK.

Wouldn't it be easier/better to decide whether msleep_interruptible should be defined based upon what is in <linux/delay.h>? I might be wrong but I believe that's where it should be found if present in system headers.


Also, I now start my system like this:

       /sbin/modprobe tda9887 debug=1
       /sbin/modprobe -v ivtv ivtv_std=2 tda9887=0

the I do:

/usr/local/bin/ivtvctl -d /dev/video0 -u 1 -f width=720,height=576 -p 6 /usr/local/bin/ivtvctl -d /dev/video0 -c dnr_mode=0
       /usr/local/bin/ivtvctl -d /dev/video0 -c dnr_temporal=4
       /usr/local/bin/ivtvctl -d /dev/video0 -c dnr_spatial=4



If you get scratchy sound or a lot of ticking, add options:
options tda9887 port1=0 port2=0

No anomalities apart from the tardy sound.


I'd also like to thank you for sticking with this while we work out the problems. You've helped tremendously.

Well, let ME thank YOU. I now have a much more robust system and I can (once again) take part in any new fixes and implemantations in the driver as a whole.

Here's what my dmesg now shows (why are some cx25840 operations repeated...?):

tda9887: Unknown parameter `debug'
tda9887: Ignoring new-style parameters in presence of obsolete ones
Linux video capture interface: v1.00
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.3.6 (r) loading
ivtv: Linux version: 2.6.8.1-12mdk 686 gcc-3.4
ivtv: In case of problems please include the debug info
ivtv: between the START INIT IVTV and END INIT IVTV lines when
ivtv: mailing the ivtv-devel mailinglist.
ivtv: Autodetected WinTV PVR 150 card
ivtv: Found an iTVC16 based chip
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
ivtv: VIA PCI device: 0x3205 vendor: 0x1106
tda9885/6/7: chip found @ 0x86
ivtv: i2c attach [client=tda9887,ok]
tveeprom: Ignoring new-style parameters in presence of obsolete ones
tveeprom: Hauppauge: model = 26559, rev = C257, serial# = 7607292
tveeprom: tuner = Philips FM1216 ME MK3 (idx = 57, type = 38)
tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L) PAL(D/K) (eeprom = 0x74, v4l2 = 0x00400e17)
tveeprom: audio_processor = MSP3410D (type = 5)
ivtv: i2c attach [client=tveeprom[50],ok]
ivtv: Tuner Type 38, Tuner formats 0x00400e17, Radio: yes, Model 0x008d2557, Revision 0x00000001
ivtv: Radio detected
tuner: chip found at addr 0xc2 i2c-bus ivtv i2c driver #0
ivtv: i2c attach [client=(tuner unset),ok]
cx25840: Ignoring new-style parameters in presence of obsolete ones
cx25840: starting probe for adapter ivtv i2c driver #0 (0x10005)
cx25840: detecting cx25840 client on address 0x88
cx25840: cx25843-23 found. Initializing...
cx25840: requesting /lib/modules/HcwMakoA.ROM
cx25840: firmware loaded
ivtv: i2c attach [client=cx25840[50],ok]
wm8775: Ignoring new-style parameters in presence of obsolete ones
ivtv: i2c attach [client=wm8775[50],ok]
ivtv: Encoder revision: 0x02050032
ivtv: Encoder Firmware may be buggy, use version 0x02040011
ivtv: Configuring WinTV PVR 150 card with 5 streams
ivtv: Registered v4l2 device for encoder MPEG minor 0
ivtv: Create DMA encoder MPEG stream: 0 x 32768 buffers (0KB total)
ivtv: Registered v4l2 device for encoder YUV minor 32
ivtv: Create DMA encoder YUV stream: 0 x 12960 buffers (0KB total)
ivtv: Registered v4l2 device for encoder VBI minor 224
ivtv: Create DMA encoder VBI stream: 0 x 12740 buffers (0KB total)
ivtv: Registered v4l2 device for encoder PCM audio minor 24
ivtv: Create DMA encoder PCM audio stream: 0 x 4608 buffers (0KB total)
ivtv: Registered v4l2 device for encoder radio minor 64
ivtv: Create encoder radio stream
ivtv: Setting Tuner 38
tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by ivtv i2c driver #0
cx25840: decoder set norm PAL
cx25840: decoder set input (6)
cx25840: now setting Tuner input
cx25840: set audio input (0)
ivtv: Switching standard to PAL.
cx25840: decoder set norm PAL
ivtv: Initialized WinTV PVR 150, card #0
ivtv: ====================  END INIT IVTV  ====================
ivtv: ivtv_enc_thread: pid = 4241, itv = 0xe0e8e880
ivtv: ivtv_enc_vbi_thread: pid = 4242, itv = 0xe0e8e880
cx25840: decoder set size: ignoring bad config request Hsrc=720 Vsrc=487 width=720 height=576 ivtv: Sliced VBI not supported for cx25840 so no vbi re-insertion possible yet
cx25840: decoder set picture bright=128 contrast=63 saturation=64 hue=0
cx25840: decoder set picture bright=128 contrast=63 saturation=63 hue=0
cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
cx25840: decoder disable output
cx25840: decoder enable output
cx25840: decoder set norm PAL
cx25840: decoder set input (6)
cx25840: now setting Tuner input
cx25840: set audio input (0)
cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
cx25840: decoder set picture bright=127 contrast=63 saturation=63 hue=0
cx25840: decoder set size 720x576 (from 720x580) -> scale  0x0, filter 0
ivtv: Sliced VBI not supported for cx25840 so no vbi re-insertion possible yet
ivtv: Allocate DMA encoder MPEG stream: 128 x 32768 buffers (4096KB total)
ivtv: Setup VBI API header 0x0000bd0c pkts 1 buffs 48 ln 34 sz 64
ivtv: Setup VBI start 0x002fea04 frames 48 fpi 1 lines 0x00000140
cx25840: decoder disable output
cx25840: decoder enable output
cx25840: decoder set norm PAL
cx25840: decoder set input (6)
cx25840: now setting Tuner input
cx25840: set audio input (0)

--
-------------------------------------------------------------------
WEB-fx                           http://www.webfx.no
Morten Lerskau Rønseth           mailto:[EMAIL PROTECTED]
Odinsvei 15c                     +47 6680 9191
1413 Tårnåsen +47 9343 4357 Norway



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to