Just replace the DECODER_SET_OUTPUT ioctl in cx25840.c with this...

        case DECODER_ENABLE_OUTPUT:
        {
                int *iarg = arg;
                int enable = (*iarg != 0);

                ERR("decoder %s output",
                        enable ? "enable" : "disable");

                if (state->enable != enable) {
                        state->enable = enable;

                        if (state->enable) {
                                cx25840_write(client, 0x115,                    
                                        (cx25840_read(client, 0x115)|0x04));
                                cx25840_write(client, 0x116,
                                        (cx25840_read(client, 0x116)|0x04));    
                                if (no_black_magic == 0) {
                                        // 01063 time 3:37.684                  
                                        WI2C(4, 0x43, 0x00, 0x16, 0x70, 0x4a);
                                }                                               
                        } else {
                                cx25840_write(client, 0x115,                    
                                        (cx25840_read(client, 0x115)&0xfb));
                                cx25840_write(client, 0x116,
                                        (cx25840_read(client, 0x116)&0xfb));
                        }
                }
                //cx25840_write(client, 0x4A5, 0x80); /*Assert Video Reset */
                //cx25840_write(client, 0x4A5, 0x00); /*DeAssert Video Reset */
                break;
        }


Thanks,
Chris

On Tue, Apr 05, 2005 at 06:34:10PM -0400, D. Hugh Redelmeier wrote:
> | From: Tyler Trafford <[EMAIL PROTECTED]>
> 
> | D. Hugh Redelmeier <[EMAIL PROTECTED]> wrote:
> | 
> | > Without looking at the code, I would guess that you are not masking
> | > the value properly when assigning the low-order byte.
> 
> [Or it could be the high-order byte if the value was wider than 16
> bits.]
> 
> | u8 buffer[2] = { addr >> 8, addr & 0xff };
> | 
> | 'addr' is a u16.
> 
> That sounds fine.
> 
> Chris: I am willing to investigate if you can point me at the *exact*
> code so that I can duplicate the problem here.
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> ivtv-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ivtv-devel

-- 
---
 Chris Kennedy / [EMAIL PROTECTED]
  Engineer KMOS-TV/KTBG-FM
  Broadcasting Services Department
  Central Missouri State University


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to