On Tue, 2008-06-03 at 20:22 -0700, Michael wrote:
> 
> ----- Original Message ----
> > From: Andy Walls <[EMAIL PROTECTED]>
> > To: User discussion about IVTV <[email protected]>; Michael <[EMAIL 
> > PROTECTED]>
> > Sent: Tuesday, June 3, 2008 9:26:24 PM
> > Subject: Re: [ivtv-users] CX18: What Next?
> > 
> > On Tue, 2008-06-03 at 14:31 -0700, Michael wrote:
> > 
> > > I would like to apologize first off for the slow response.  I somehow 
> > > missed 
> > this message in my inbox, and when I went back to check today, I found it.
> > > 
> > > When I run make, with this patch applied, I get the following error:
> > >   CC [M]  
> > > /home/michael/Programs/TVTuner/v4l-dvb-bef996fa0ded/v4l/cx18-gpio.o
> > > /home/michael/Programs/TVTuner/v4l-dvb-bef996fa0ded/v4l/cx18-gpio.c: In 
> > function 'cx18_gpio_i2c_slave_reset':
> > > /home/michael/Programs/TVTuner/v4l-dvb-bef996fa0ded/v4l/cx18-gpio.c:73: 
> > > error: 
> > 'gpio_val' undeclared (first use in this function)
> > > /home/michael/Programs/TVTuner/v4l-dvb-bef996fa0ded/v4l/cx18-gpio.c:73: 
> > > error: 
> > (Each undeclared identifier is reported only once
> > > /home/michael/Programs/TVTuner/v4l-dvb-bef996fa0ded/v4l/cx18-gpio.c:73: 
> > > error: 
> > for each function it appears in.)
> > 
> > The cx18-gpio.c file has had a few fixes in it since I posted the patch.
> > Since you're using a very recent v4l-dvb tree, attached is a new version
> > of the patch.  (You'll need to back out the old version that's causing
> > compile errors.)
> >
> I once again would like to apologize for the slow response.  I'm not sure how 
> I missed that message in my inbox. 
> >
> > > make[3]: *** 
> > [/home/michael/Programs/TVTuner/v4l-dvb-bef996fa0ded/v4l/cx18-gpio.o] Error 
> > 1
> > > make[2]: *** 
> > > [_module_/home/michael/Programs/TVTuner/v4l-dvb-bef996fa0ded/v4l] 
> > Error 2
> > > make[2]: Leaving directory `/usr/src/linux-2.6.22.17.tex2'
> > > make[1]: *** [default] Error 2
> > > make[1]: Leaving directory 
> > `/home/michael/Programs/TVTuner/v4l-dvb-bef996fa0ded/v4l'
> > > make: *** [all] Error 2
> > > 
> > > It seems to compile fine without the patch.
> > > 
> > > I tried compiling this without the other two patches, if you want, I'll 
> > > find 
> > those patches, and try again.
> > 
> > No, not at this time.  Just this cx18-i2c-gpio-reset2.patch.


Michael,

One more thing to try with the gpio reset patch:

Can you change these lines in cx18-gpio.c:

        /* Assert */
        cx->gpio_val =
                (cx->gpio_val | p->active_hi_mask) & ~(p->active_lo_mask);
        gpio_write(cx);
        schedule_timeout_interruptible(msecs_to_jiffies(p->msecs_asserted));

        /* Deassert */
        cx->gpio_val =
                (cx->gpio_val | p->active_lo_mask) & ~(p->active_hi_mask);
        gpio_write(cx);
        schedule_timeout_interruptible(msecs_to_jiffies(p->msecs_recovery));


To both call "schedule_timeout_uninterruptible()" instead?  And then
test again.

That will guarantee the call doesn't return until the proper number of
milliseconds have elapsed.

Regards,
Andy

> > Let me know how it goes.
> > 
> It compiled fine this time.  However, after running modprobe cx18, heres the 
> dmesg:
> 
> Linux video capture interface: v2.00
> cx18:  Start initialization, version 1.0.0
> cx18-0: Initializing card #0
> cx18-0: Autodetected Hauppauge card
> cx18-0: cx23418 revision 01010000 (B)
> tveeprom 0-0050: Encountered bad packet header [00]. Corrupt or not a 
> Hauppauge eeprom.
> cx18-0: Invalid EEPROM
> cx18-0: VBI is not yet supported
> cs5345 0-004c: chip found @ 0x98 (cx18 i2c driver #0-0)
> cx18-0: Disabled encoder IDX device
> videodev: "" has no release callback. Please fix your driver for proper sysfs 
> support, see http://lwn.net/Articles/36850/
> cx18-0: Registered device video0 for encoder MPEG (2 MB)
> DVB: registering new adapter (cx18).
> MXL5005S: Attached at address 0x63
> DVB: registering frontend 0 (Samsung S5H1409 QAM/8VSB Frontend)...
> cx18-0: DVB Frontend registered
> videodev: "" has no release callback. Please fix your driver for proper sysfs 
> support, see http://lwn.net/Articles/36850/
> cx18-0: Registered device video32 for encoder YUV (2 MB)
> videodev: "" has no release callback. Please fix your driver for proper sysfs 
> support, see http://lwn.net/Articles/36850/
> cx18-0: Registered device video24 for encoder PCM audio (1 MB)
> videodev: "" has no release callback. Please fix your driver for proper sysfs 
> support, see http://lwn.net/Articles/36850/
> cx18-0: Registered device radio-64 for encoder radio
> cx18-0: Initialized card #0: Hauppauge HVR-1600
> cx18:  End initialization
> 
> 
> Thanks again for the help.  I greatly appreciate it, and maybe eventually 
> I'll be able to delete my Windows XP partition. (This is the last thing 
> really I have left for the switch.)
> >
> > Regards,
> > Andy
> 
> 
> 
>       
> 
> _______________________________________________
> ivtv-users mailing list
> [email protected]
> http://ivtvdriver.org/mailman/listinfo/ivtv-users
> 


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

Reply via email to