diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2009-03-16 10:19:39 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2009-03-16 15:42:50 +0800 |
commit | 1a6e70cd98abc63f24f710819961c24601afb59b (patch) | |
tree | 89a067509778f92c5ac3cdc7072ccd134c480fd9 /src/i830_tv.c | |
parent | 4e95327323e3d081b565147f7738eb49c28542bc (diff) |
TV: fix contrast and saturation for 945G
Bug #20670.
Diffstat (limited to 'src/i830_tv.c')
-rw-r--r-- | src/i830_tv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_tv.c b/src/i830_tv.c index 42d9e907..8eb3e263 100644 --- a/src/i830_tv.c +++ b/src/i830_tv.c @@ -1079,7 +1079,7 @@ i830_tv_update_contrast(I830Ptr pI830, uint8_t contrast) c = float_to_fix_2_6(con); } else { /* 2.6 floating point */ - con = 8.875 * ((float) contrast / 255); + con = 2.65625 * ((float) contrast / 255); c = float_to_float_2_6(con); } val |= (c << TV_CONTRAST_SHIFT) & TV_CONTRAST_MASK; @@ -1098,7 +1098,7 @@ i830_tv_update_saturation(I830Ptr pI830, uint8_t saturation) sat = 3.0 * ((float) saturation / 255); s = float_to_fix_2_6(sat); } else { - sat = 8.875 * ((float) saturation / 255); + sat = 2.65625 * ((float) saturation / 255); s = float_to_float_2_6(sat); } val |= (s << TV_SATURATION_SHIFT) & TV_SATURATION_MASK; |