Browse Source

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: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Hans Verkuil 19 years ago
parent
commit
c5099a6481
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/media/video/cx25840/cx25840-core.c

+ 1 - 1
drivers/media/video/cx25840/cx25840-core.c

@@ -466,7 +466,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: