check the framebuffer driver davincifb.c,the function named output_config_device() is for this.another point is frame buffer control by davincifb_set_par().you don't need to modify the davincifb_set_par(),just call ioctl (FBIOPUT_VAR***) to control the buffer on application-side. for example,if PAL, the buffer size is 720x576,else 720x480.
when you boot the system,you should use PAL,because it will malloc enough memory. in face,I have tried,but failed,it cause dsplinkk module oops.I don't know why. what I said just for refer.anyone has better idea? huahua5 2008-03-27 发件人: Jammy Dane 发送时间: 2008-03-27 12:08:45 收件人: huahua5; Karicheri, Muralidharan; Diego Dompe 抄送: [EMAIL PROTECTED] 主题: Re: RE: PAL and NTSC problem on dm355 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 To: Karicheri, Muralidharan ; Karicheri, Muralidharan ; Jammy Dane ; Diego Dompe 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 抄送: davinci-linux-open-source@linux.davincidsp.com 主题: 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: davinci-linux-open-source@linux.davincidsp.com 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: davinci-linux-open-source@linux.davincidsp.com 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 To: Diego Dompe ; Jammy Dane Cc: davinci-linux-open-source@linux.davincidsp.com 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: davinci-linux-open-source@linux.davincidsp.com 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 Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source