au8522: Properly set default brightness
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Sun Jun 13 16:31:22 2010 -0400 (23 months ago)
changeset 14996f9365bfd4b24
parent 1499545e341359b07
child 14997a039239c2545
au8522: Properly set default brightness

From: Devin Heitmueller <dheitmueller@kernellabs.com>

The chip's default value for the brightness didn't match what we were sending
back in the queryctrl ioctl(), so if the application actually set the
brightness to the "default", it would actually end up being way too bright.

This work was sponsored by GetWellNetwork Inc.

Priority: normal
linux/drivers/media/dvb/frontends/au8522_decoder.c
       1 --- a/linux/drivers/media/dvb/frontends/au8522_decoder.c	Mon Jul 05 12:00:48 2010 -0400
       2 +++ b/linux/drivers/media/dvb/frontends/au8522_decoder.c	Sun Jun 13 16:31:22 2010 -0400
       3 @@ -629,7 +629,7 @@
       4  		return v4l2_ctrl_query_fill(qc, 0, 255, 1,
       5  					    AU8522_TVDEC_CONTRAST_REG00BH_CVBS);
       6  	case V4L2_CID_BRIGHTNESS:
       7 -		return v4l2_ctrl_query_fill(qc, 0, 255, 1, 128);
       8 +		return v4l2_ctrl_query_fill(qc, 0, 255, 1, 109);
       9  	case V4L2_CID_SATURATION:
      10  		return v4l2_ctrl_query_fill(qc, 0, 255, 1, 128);
      11  	case V4L2_CID_HUE: