2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 07:34:06 +08:00
linux-next/drivers/media/usb
Adam Sampson b3168c87c0 media: usbtv: fix brightness and contrast controls
Because the brightness and contrast controls share a register,
usbtv_s_ctrl needs to read the existing values for both controls before
inserting the new value. However, the code accidentally wrote to the
registers (from an uninitialised stack array), rather than reading them.

The user-visible effect of this was that adjusting the brightness would
also set the contrast to a random value, and vice versa -- so it wasn't
possible to correctly adjust the brightness of usbtv's video output.

Tested with an "EasyDAY" UTV007 device.

Fixes: c53a846c48 ("usbtv: add video controls")

Signed-off-by: Adam Sampson <ats@offog.org>
Reviewed-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-10-31 07:26:10 -04:00
..
airspy media: usb: make video_device const 2017-08-27 08:45:32 -04:00
as102 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
au0828 media: au0828/em28xx: make vb2_ops const 2017-10-27 14:13:33 +02:00
b2c2 media: fix media Kconfig help syntax issues 2017-09-23 14:59:24 -04:00
cpia2 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
cx231xx media: cx231xx: make cx231xx_vbi_qops const 2017-10-31 06:37:49 -04:00
dvb-usb media: friio-fe: get rid of set_property() 2017-10-11 12:49:55 -04:00
dvb-usb-v2 media: rtl28xxu: make array rc_nec_tab static const 2017-09-23 08:28:28 -04:00
em28xx media: au0828/em28xx: make vb2_ops const 2017-10-27 14:13:33 +02:00
go7007 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
gspca [media] gspca: make arrays static, reduces object code size 2017-10-04 16:57:01 -03:00
hackrf media: usb: make video_device const 2017-08-27 08:45:32 -04:00
hdpvr media: usb: make i2c_adapter const 2017-08-26 08:41:58 -04:00
msi2500 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
pulse8-cec media: usb: pulse8-cec: constify serio_device_id 2017-08-20 08:27:13 -04:00
pvrusb2 media: fix media Kconfig help syntax issues 2017-09-23 14:59:24 -04:00
pwc media: usb: make video_device const 2017-08-27 08:45:32 -04:00
rainshadow-cec media: usb: rainshadow-cec: constify serio_device_id 2017-08-20 08:27:29 -04:00
s2255 media: s2255: Convert timers to use timer_setup() 2017-10-31 07:25:36 -04:00
siano [media] siano: make it work again with CONFIG_VMAP_STACK 2017-02-14 18:13:49 -02:00
stk1160 media: usb: make i2c_client const 2017-09-23 08:27:42 -04:00
stkwebcam media: usb: make video_device const 2017-08-27 08:45:32 -04:00
tm6000 media: tm6000: cleanup trival coding style issues 2017-10-27 14:07:48 +02:00
ttusb-budget media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
ttusb-dec media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
usbtv media: usbtv: fix brightness and contrast controls 2017-10-31 07:26:10 -04:00
usbvision media: usbvision: Improve a size determination in usbvision_alloc() 2017-08-27 08:48:47 -04:00
uvc media: uvcvideo: Constify video_subdev structures 2017-08-20 08:10:24 -04:00
zr364xx media: drivers: Adjust checks for null pointers 2017-09-23 08:20:57 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00