VPFE_STD_AUTO means driver is using the sense capabilities of TVP5146 to detect 
the standard. If this is failing, check if the video source is connected to 
either the S-Video or Composite video input. 

 

 

________________________________

From: Pepe Sanchez [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 5:43 AM
To: Jammy Dane
Cc: huahua5; Karicheri, Muralidharan; Diego Dompe; [EMAIL PROTECTED]
Subject: Re: RE: PAL and NTSC problem on dm355

 

Any advance about this thread?

I've tried to change height parameter from 480 (NTSC) to 576 (PAL) in main.c 
but it doesn't work.

I think the problem is in this part of capture.c:

                         /* Auto detect PAL or NTSC using the capture driver as 
sanity check */ 
                               std = VPFE_STD_AUTO;
                               if(ioctl(fd, VIDIOC_S_STD, &std) == -1) {
                                       ERR("VIDIOC_S_STD (auto) failed on %s 
(%s)\n", V4L2_DEVICE,
                                                       strerror(errno));
                               return FAILURE;
                               }

I don't know where check if VPFE_STD_AUTO is work in proper way.

Regards.

2008/3/27, Jammy Dane <[EMAIL PROTECTED]>:

1 to huahua5:

Can you give me the detail of "modify the framebuffer driver to support 
run-time switch between NTSC and PAL."?

 

2 to all

i have tried to modify the bootargs following by what Karicheri said but it did 
not work? what's wrong?

 

        ----- Original Message ----- 

        From: huahua5 <mailto:[EMAIL PROTECTED]>  

        To: Karicheri, Muralidharan <mailto:[EMAIL PROTECTED]>  ; Karicheri, 
Muralidharan <mailto:[EMAIL PROTECTED]>  ; Jammy Dane <mailto:[EMAIL 
PROTECTED]>  ; Diego Dompe <mailto:[EMAIL PROTECTED]>  

        Cc: [EMAIL PROTECTED] 

        

        Sent: Thursday, March 27, 2008 10:17 AM

        Subject: Re: RE: PAL and NTSC problem on dm355

         

        you can resolve this problem as followed:

         

        1,DM355 board has a switch used for PAL & NTSC option.u-boot will check 
the switch and transfer it to framebuffer driver.it is ugly.

        2,modify the framebuffer driver to support run-time switch between NTSC 
and PAL.

         

        I have try 2,but when I switch from NTSC to PAL,it will make the 
dsplinkk module oops.switch from PAL to NTSC is ok.anyone has comments?

         

        in a word, the display mode depend on the camera mode,and only the 
display mode can be changed by software,the camera mode is decided by your 
hardware.

         

        
________________________________


        huahua5

        2008-03-27

        
________________________________


        发件人: Karicheri, Muralidharan

        发送时间: 2008-03-27 03:27:23

        收件人: Karicheri, Muralidharan; Jammy Dane; Diego Dompe

        抄送: [email protected]

        主题: RE: PAL and NTSC problem on dm355

         

        I missed one information. Did you set the bootargs correctly ? The 
jumper setting is read by the bootloader and is updated in the videostd 
environment variable. Now for the driver to use this variable, bootargs need to 
have the following settings.

         

        video=dm355fb:output=\$(videostd)

         

        Now based on Jumper settings, following will be passed to kernel (and 
to driver)

         

        video=dm355fb:output=pal or video=dm355fb:output=ntsc depending on the 
jumper settings

         

         

        
________________________________


        From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Karicheri, Muralidharan
        Sent: Wednesday, March 26, 2008 12:56 PM
        To: Jammy Dane; Diego Dompe
        Cc: [email protected]
        Subject: RE: PAL and NTSC problem on dm355

         

        It means, the linux driver is detecting it as PAL, but application is 
trying to select a NTSC camera. Check the demo code to see why it is selecting 
a NTSC camera and fix it.

         

        
________________________________


        From: Jammy Dane [mailto:[EMAIL PROTECTED] 
        Sent: Wednesday, March 26, 2008 12:02 PM
        To: Diego Dompe; Karicheri, Muralidharan
        Cc: [email protected]
        Subject: Re: PAL and NTSC problem on dm355

         

        Hi,

         

        what problem i mentioned is that when i connect the pal camera to the 
evm and run the encode or encodedecode demo supplied by the DVSDK, it said:

         

        PAL camera connect but NTSC camera selected.

         

        it did not work though i have set the J1 to select the pal camera.

         

        what 's wrong with it ?

         

        can you say more?

         

        Regards

         

        Jammy

                ----- Original Message ----- 

                From: Karicheri, Muralidharan <mailto:[EMAIL PROTECTED]>  

                To: Diego Dompe <mailto:[EMAIL PROTECTED]>  ; Jammy Dane 
<mailto:[EMAIL PROTECTED]>  

                Cc: [email protected] 

                Sent: Wednesday, March 26, 2008 9:24 PM

                Subject: RE: PAL and NTSC problem on dm355

                 

                Hi,

                TVP5146 has autodetect feature. To turn it on, you need to 
invoke a S_STD ioctl to the V4L2 capture driver (choose TVP5146 as the capture 
driver in bootargs) which will detect PAL standard if you feed a PAL source 
output to the composite/S-video input of the tvp. Hope this helps.

                 

                Murali

                 

                 

                From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Diego Dompe
                Sent: Wednesday, March 26, 2008 8:36 AM
                To: Jammy Dane
                Cc: [email protected]
                Subject: Re: PAL and NTSC problem on dm355

                 

                Hi,

                 

                The framebuffer driver should support PAL output (but I don't 
have hardware to verify it). Could you elaborate on the problem you have?

                 

                Do you mean programming the video capture driver to capture on 
PAL? The video capture driver works over raw YUV data received on digital 
format from the video codec used on the DM355 EVM (TVP5146), so its the TVP how 
is responsible to encode from PAL signal, so is probably a matter of performing 
an ioctl over the video driver to ask the driver to signal the CODEC the PAL 
format over the i2c.

                 

                Let me know if this is what you are looking for, I'm not at my 
desktop right now so I can't grep on the files.

                 

                Diego Dompe

                RidgeRun Engineering

                 

                On Mar 26, 2008, at 6:12 AM, Jammy Dane wrote:

                 

                

                Hi,all

                 

                I am developing the dm355 evm, and as u knows, the dm355 evm 
does not support pal camera, how should we do for supporting the pal standard.

                 

                can u give me some advice?

                 

                thanks

                 

                Jammy Dane

                _______________________________________________
                Davinci-linux-open-source mailing list
                [email protected]
                
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

                 


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to