diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-01-09 15:32:43 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 15:32:43 -0200 |
commit | c5099a6481d2d0f9455abd15c91f73c2ced57a40 (patch) | |
tree | 18eed92fa32f4fa3170f4af638da63214008f04d /drivers/media/video/cx25840 | |
parent | 82a1c359e8cc15d836c139626d747bfdfc408450 (diff) | |
download | blackbird-op-linux-c5099a6481d2d0f9455abd15c91f73c2ced57a40.tar.gz blackbird-op-linux-c5099a6481d2d0f9455abd15c91f73c2ced57a40.zip |
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>
Diffstat (limited to 'drivers/media/video/cx25840')
-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) 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: |