diff options
-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): |