summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx25840
diff options
context:
space:
mode:
authorHans Verkuil <devnull@localhost>2006-01-03 22:38:31 +0000
committerHans Verkuil <devnull@localhost>2006-01-03 22:38:31 +0000
commit586e42cda069a43ff4e62e9a70a47b27703ad22f (patch)
tree2c44c264afe8a084dbe86d2342ec9d519c7e9ac2 /linux/drivers/media/video/cx25840
parent58f43aadff91f25abfdbe1342c66a7cae2447843 (diff)
downloadmediapointer-dvb-s2-586e42cda069a43ff4e62e9a70a47b27703ad22f.tar.gz
mediapointer-dvb-s2-586e42cda069a43ff4e62e9a70a47b27703ad22f.tar.bz2
Fix signed/unsigned bug in hue handling
Fix signed/unsigned bug in hue handling (set to -127 and 129 was returned). Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/cx25840')
-rw-r--r--linux/drivers/media/video/cx25840/cx25840-core.c2
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 770d27621..890511cac 100644
--- a/linux/drivers/media/video/cx25840/cx25840-core.c
+++ b/linux/drivers/media/video/cx25840/cx25840-core.c
@@ -477,7 +477,7 @@ static int get_v4lctrl(struct i2c_client *client, struct v4l2_control *ctrl)
ctrl->value = cx25840_read(client, 0x420) >> 1;
break;
case V4L2_CID_HUE:
- ctrl->value = cx25840_read(client, 0x422);
+ ctrl->value = (s8)cx25840_read(client, 0x422);
break;
case V4L2_CID_AUDIO_VOLUME:
case V4L2_CID_AUDIO_BASS: