Skip to content

Commit

Permalink
V4L/DVB (3250): tea5767: move signal strength level to the 0-65535 range
Browse files Browse the repository at this point in the history
- Move signal strength level to the 0-65535 range as per V4L2 spec.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent a8bbf12 commit f9a91f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/tea5767.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ static int tea5767_signal(struct i2c_client *c)
if (5 != (rc = i2c_master_recv(c, buffer, 5)))
tuner_warn("i2c i/o error: rc == %d (should be 5)\n", rc);

return ((buffer[3] & TEA5767_ADC_LEVEL_MASK) << (13 - 4));
return ((buffer[3] & TEA5767_ADC_LEVEL_MASK) << 8);
}

static int tea5767_stereo(struct i2c_client *c)
Expand Down

0 comments on commit f9a91f0

Please sign in to comment.