diff options
author | Hans Verkuil <devnull@localhost> | 2006-01-03 22:38:31 +0000 |
---|---|---|
committer | Hans Verkuil <devnull@localhost> | 2006-01-03 22:38:31 +0000 |
commit | 586e42cda069a43ff4e62e9a70a47b27703ad22f (patch) | |
tree | 2c44c264afe8a084dbe86d2342ec9d519c7e9ac2 | |
parent | 58f43aadff91f25abfdbe1342c66a7cae2447843 (diff) | |
download | mediapointer-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>
-rw-r--r-- | linux/drivers/media/video/cx25840/cx25840-core.c | 2 | ||||
-rw-r--r-- | v4l/ChangeLog | 8 |
2 files changed, 9 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: diff --git a/v4l/ChangeLog b/v4l/ChangeLog index 73f048d1b..3f9119e0d 100644 --- a/v4l/ChangeLog +++ b/v4l/ChangeLog @@ -1,3 +1,11 @@ +2006-01-03 22:36 hverkuil + + * linux/drivers/media/video/cx25840/cx25840-core.c: (get_v4lctrl): + Fix signed/unsigned bug in hue handling (set to -127 and 129 was + returned). + + Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> + 2006-01-03 16:30 mchehab * linux/drivers/media/video/cx88/cx88-alsa.c: (snd_cx88_hw_params): |