Hi,

As far as I remember, TVP7002 does not support any other controls, so driver 
returns error for contrast/saturation.

Thx,
Brijesh


________________________________
From: davinci-linux-open-source-boun...@linux.davincidsp.com 
[mailto:davinci-linux-open-source-boun...@linux.davincidsp.com] On Behalf Of 
armstrong james
Sent: Wednesday, June 02, 2010 7:47 AM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: How to control the contrast saturation of tvp7002

Hello all,

I'm using dm6467 and lsp1.3 . In tvp7002.c, I only found the relation code that 
was used to initialize the brightness of tvp7002.

In the encode application, I added some ioctl code and wanted to control  the 
contrast  brightness saturation of  tvp7002.

The code is as below:
struct v4l2_control ctrl;
if(type == 1) ctrl.id<http://ctrl.id> = V4L2_CID_CONTRAST;
else if(type == 2) ctrl.id<http://ctrl.id> = V4L2_CID_SATURATION;
ctrl.value = value;
ioctl(hCapture->fd, VIDIOC_S_CTRL, &ctrl);

but the return value of ioctl was -1,so the handling was fail.

Could you tell me how to control the contrast  brightness saturation of  
tvp7002?

thank you.
best regards.
_______________________________________________
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