Commit c5099a64 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (3291): Fix signed/unsigned bug in hue handling

- Fix signed/unsigned bug in hue handling (set to -127 and 129 was returned).
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
parent 82a1c359
...@@ -466,7 +466,7 @@ static int get_v4lctrl(struct i2c_client *client, struct v4l2_control *ctrl) ...@@ -466,7 +466,7 @@ static int get_v4lctrl(struct i2c_client *client, struct v4l2_control *ctrl)
ctrl->value = cx25840_read(client, 0x420) >> 1; ctrl->value = cx25840_read(client, 0x420) >> 1;
break; break;
case V4L2_CID_HUE: case V4L2_CID_HUE:
ctrl->value = cx25840_read(client, 0x422); ctrl->value = (s8)cx25840_read(client, 0x422);
break; break;
case V4L2_CID_AUDIO_VOLUME: case V4L2_CID_AUDIO_VOLUME:
case V4L2_CID_AUDIO_BASS: case V4L2_CID_AUDIO_BASS:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment