diff options
author | Hans Verkuil <devnull@localhost> | 2006-01-03 22:46:24 +0000 |
---|---|---|
committer | Hans Verkuil <devnull@localhost> | 2006-01-03 22:46:24 +0000 |
commit | 3bc98ce6ea05a056facc4c5254c7a5725eea1e6c (patch) | |
tree | 32e7c66cb21d9435907c4fb34dfeb599e80eaf44 /linux | |
parent | 586e42cda069a43ff4e62e9a70a47b27703ad22f (diff) | |
download | mediapointer-dvb-s2-3bc98ce6ea05a056facc4c5254c7a5725eea1e6c.tar.gz mediapointer-dvb-s2-3bc98ce6ea05a056facc4c5254c7a5725eea1e6c.tar.bz2 |
Fix signed/unsigned bug in brightness handling of cx25840
Fix signed/unsigned bug in brightness handling (set to 0 and 128 was returned).
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/cx25840/cx25840-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx25840/cx25840-core.c b/linux/drivers/media/video/cx25840/cx25840-core.c index 890511cac..feb06c993 100644 --- a/linux/drivers/media/video/cx25840/cx25840-core.c +++ b/linux/drivers/media/video/cx25840/cx25840-core.c @@ -468,7 +468,7 @@ static int get_v4lctrl(struct i2c_client *client, struct v4l2_control *ctrl) ctrl->value = state->pvr150_workaround; break; case V4L2_CID_BRIGHTNESS: - ctrl->value = cx25840_read(client, 0x414) + 128; + ctrl->value = (s8)cx25840_read(client, 0x414) + 128; break; case V4L2_CID_CONTRAST: ctrl->value = cx25840_read(client, 0x415) >> 1; |