Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (6995): ubvision: add adjust_X_Offset/adjust_Y_Offset parms

Add adjust_X_Offset/adjust_Y_Offset module parameters to allow users
to tune X and Y picture offsets for their almost-working tuners without
repetitive recompilation.

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Thierry MERLE and committed by
Mauro Carvalho Chehab
c6243d9c eeec4b38

+19
+19
drivers/media/video/usbvision/usbvision-core.c
··· 69 69 module_param(SwitchSVideoInput, int, 0444); 70 70 MODULE_PARM_DESC(SwitchSVideoInput, " Set the S-Video input. Some cables and input device are wired differently. Default: 0 (Off)"); 71 71 72 + static unsigned int adjust_X_Offset = -1; 73 + module_param(adjust_X_Offset, int, 0644); 74 + MODULE_PARM_DESC(adjust_X_Offset, "adjust X offset display [core]"); 75 + 76 + static unsigned int adjust_Y_Offset = -1; 77 + module_param(adjust_Y_Offset, int, 0644); 78 + MODULE_PARM_DESC(adjust_Y_Offset, "adjust Y offset display [core]"); 79 + 80 + 72 81 #define ENABLE_HEXDUMP 0 /* Enable if you need it */ 73 82 74 83 ··· 2106 2097 value[5]=(usbvision_device_data[usbvision->DevModel].X_Offset & 0x0300) >> 8; 2107 2098 } 2108 2099 2100 + if (adjust_X_Offset != -1) { 2101 + value[4] = adjust_X_Offset & 0xff; 2102 + value[5] = (adjust_X_Offset & 0x0300) >> 8; 2103 + } 2104 + 2109 2105 if (usbvision_device_data[usbvision->DevModel].Y_Offset >= 0) { 2110 2106 value[6]=usbvision_device_data[usbvision->DevModel].Y_Offset & 0xff; 2111 2107 value[7]=(usbvision_device_data[usbvision->DevModel].Y_Offset & 0x0300) >> 8; 2108 + } 2109 + 2110 + if (adjust_Y_Offset != -1) { 2111 + value[6] = adjust_Y_Offset & 0xff; 2112 + value[7] = (adjust_Y_Offset & 0x0300) >> 8; 2112 2113 } 2113 2114 2114 2115 rc = usb_control_msg(usbvision->dev, usb_sndctrlpipe(usbvision->dev, 1),