Hi,

I missed this one. Sorry for the delayed response.

VPFE_STD_AUTO is something internal to the hardware. You should do QUERYSTD to 
detect the standard from the application.

Murali Karicheri
Software Design Engineer
Texas Instruments Inc.
Germantown, MD 20874
Phone : 301-515-3736
email: m-kariche...@ti.com

>-----Original Message-----
>From: Ottavio Campana [mailto:ottavio.camp...@dei.unipd.it]
>Sent: Wednesday, June 10, 2009 3:34 AM
>To: Karicheri, Muralidharan
>Cc: davinci-linux-open-source@linux.davincidsp.com; Muralidharan Karicheri
>Subject: Re: [PATCH 0/10 - v2] ARM: DaVinci: Video: DM355/DM6446 VPFE
>Capture driver
>
>m-kariche...@ti.com wrote:
>> From: Muralidharan Karicheri<a0868...@gt516km11.gt.design.ti.com>
>>
>> VPFE Capture driver for DaVinci Media SOCs :- DM355 and DM6446
>
>is this the same set of patches present in the branch staging/vpfe ?
>
>I'm having a doubt with that set of patches. Particularly, I'm having
>problems when detecting the video format, because I don't find the
>define VPFE_STD_AUTO any more.
>
>My code is
>
>   std = VPFE_STD_AUTO;
>
>   if (ioctl (worker_acquire->fd, VIDIOC_S_STD, &std) == -1)
>     {
>       fprintf (stderr, "set_data_format: ioctl VIDIOC_S_STD failed\n");
>       return -1;
>     }
>
>   /* wait until decoder is fully locked */
>   sleep (1);
>
>   if (ioctl (worker_acquire->fd, VIDIOC_QUERYSTD, &std) == -1)
>     {
>       fprintf (stderr, "set_data_format: ioctl VIDIOC_QUERYSTD failed\n");
>       return -1;
>     }
>
>   if (std == V4L2_STD_NTSC)
>     {
>       fprintf (stdout, "NTSC camera detected\n");
>     }
>   else if (std == V4L2_STD_PAL)
>     {
>       fprintf (stdout, "PAL camera detected\n");
>     }
>   else
>     {
>       fprintf (stdout, "Unknown video input standard\n");
>       return -1;
>     }
>
>But VPFE_STD_AUTO does not exist:
>
>otta...@debian2:~$ grep -r VPFE_STD_AUTO
>/home/ottavio/Projects/stuff/openembedded/tmp/work/dm6446-evm-angstrom-
>linux-gnueabi/linux-davinci-2.6.29+2.6.30-rc7-
>r8+gitr03022e38318bef016836dae71c70b9ea975723e7-r8/git/*
>otta...@debian2:~$
>
>So the question is: how do I autodetect the video format? Do you have
>some reference code?
>
>Thank you,
>
>Ottavio

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to