diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-01-09 12:32:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:32:43 -0500 |
commit | c5099a6481d2d0f9455abd15c91f73c2ced57a40 (patch) | |
tree | 18eed92fa32f4fa3170f4af638da63214008f04d | |
parent | 82a1c359e8cc15d836c139626d747bfdfc408450 (diff) |
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>
-rw-r--r-- | drivers/media/video/cx25840/cx25840-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c index d7ece6eecb5c..b93495b2a1fb 100644 --- a/drivers/media/video/cx25840/cx25840-core.c +++ b/drivers/media/video/cx25840/cx25840-core.c | |||
@@ -466,7 +466,7 @@ static int get_v4lctrl(struct i2c_client *client, struct v4l2_control *ctrl) | |||
466 | ctrl->value = cx25840_read(client, 0x420) >> 1; | 466 | ctrl->value = cx25840_read(client, 0x420) >> 1; |
467 | break; | 467 | break; |
468 | case V4L2_CID_HUE: | 468 | case V4L2_CID_HUE: |
469 | ctrl->value = cx25840_read(client, 0x422); | 469 | ctrl->value = (s8)cx25840_read(client, 0x422); |
470 | break; | 470 | break; |
471 | case V4L2_CID_AUDIO_VOLUME: | 471 | case V4L2_CID_AUDIO_VOLUME: |
472 | case V4L2_CID_AUDIO_BASS: | 472 | case V4L2_CID_AUDIO_BASS: |