making monitor work with bt878 board

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Lionnel -
 
I tested your monitor on a 4-port Quatro Falcon board (4 physical bt878 
chips).  It worked, but I had to do a few changes in video.c to make it work 
(also, i'm using ntsc).
1st, I had to clear the vid_chnl structure and do a VIDIOCGCHAN to get 
current parameters.  2nd, I set the vid_chnl.norm to NTSC, and the 
vid_chnl.channel to mux input port 0.  Up until then, the VIDIOCSCHAN would 
fail.

Thats it for now.  Nice work.

Joe
    // start jvb
    memset(&vid_chnl,0,sizeof(vid_chnl));
    if( (ioctl(s->dev,VIDIOCGCHAN,&vid_chnl)) < 0 )
    {
        fprintf(stderr,"ERROR:ioctl: VIDEOCGCHAN[%s] 
%s\n",device,strerror(errno));
        return NULL;
    }
    vid_chnl.channel = VIDEO_MODE_NTSC;
    vid_chnl.norm    = VIDEO_PALETTE_YUV420P; // RGB24
    vid_chnl.norm = 1; // pal
    vid_chnl.channel = 0; //
    // end jvb
    if (ioctl (s->dev, VIDIOCSCHAN, &vid_chnl) == -1)         // select 
channel
    {
        perror("ioctl (VIDIOCSCHAN) failed");
        return NULL;
    }





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux