瀏覽代碼

[media] Default bt878 contrast value

The default_value for the Bt878 V4L2_CID_CONTRAST control is currently
set to 32768. Internally this gets translated to an analog input
circuit gain of 1.19. However, the default gain should be 1.0. This
patch alters the default value to 27648 which corresponds to a gain of
1.0. It also alters the probe routine so that the correct value is
written on board initialisation.

[mchehab@redhat.com: behavior confirmed via Fusion 878a datasheet]
Signed-off-by: Alan McIvor <alan.mcivor@reveal.co.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Alan McIvor 13 年之前
父節點
當前提交
961e668b34
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/media/video/bt8xx/bttv-driver.c

+ 2 - 2
drivers/media/video/bt8xx/bttv-driver.c

@@ -663,7 +663,7 @@ static const struct v4l2_queryctrl bttv_ctls[] = {
 		.minimum       = 0,
 		.minimum       = 0,
 		.maximum       = 65535,
 		.maximum       = 65535,
 		.step          = 128,
 		.step          = 128,
-		.default_value = 32768,
+		.default_value = 27648,
 		.type          = V4L2_CTRL_TYPE_INTEGER,
 		.type          = V4L2_CTRL_TYPE_INTEGER,
 	},{
 	},{
 		.id            = V4L2_CID_SATURATION,
 		.id            = V4L2_CID_SATURATION,
@@ -4394,7 +4394,7 @@ static int __devinit bttv_probe(struct pci_dev *dev,
 	if (!bttv_tvcards[btv->c.type].no_video) {
 	if (!bttv_tvcards[btv->c.type].no_video) {
 		bttv_register_video(btv);
 		bttv_register_video(btv);
 		bt848_bright(btv,32768);
 		bt848_bright(btv,32768);
-		bt848_contrast(btv,32768);
+		bt848_contrast(btv, 27648);
 		bt848_hue(btv,32768);
 		bt848_hue(btv,32768);
 		bt848_sat(btv,32768);
 		bt848_sat(btv,32768);
 		audio_mute(btv, 1);
 		audio_mute(btv, 1);