From: Mauro Carvalho Chehab Date: Fri, 4 Jul 2014 17:15:38 +0000 (-0300) Subject: upstream: [media] dib8000: Update the ADC gain table X-Git-Tag: submit/tizen/20141121.110247~515 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3741c1a836c4f0ad4212e5af9141519e5cc80a90;p=platform%2Fkernel%2Flinux-3.10.git upstream: [media] dib8000: Update the ADC gain table This table doesn't match the new one. Update it. Acked-By: Patrick Boettcher Backports http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=a768f90ef0a2 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/dib8000.c b/drivers/media/dvb-frontends/dib8000.c index 6419ae6..637e96a 100644 --- a/drivers/media/dvb-frontends/dib8000.c +++ b/drivers/media/dvb-frontends/dib8000.c @@ -1980,18 +1980,9 @@ static u32 dib8000_ctrl_timf(struct dvb_frontend *fe, uint8_t op, uint32_t timf) } static const u16 adc_target_16dB[11] = { - (1 << 13) - 825 - 117, - (1 << 13) - 837 - 117, - (1 << 13) - 811 - 117, - (1 << 13) - 766 - 117, - (1 << 13) - 737 - 117, - (1 << 13) - 693 - 117, - (1 << 13) - 648 - 117, - (1 << 13) - 619 - 117, - (1 << 13) - 575 - 117, - (1 << 13) - 531 - 117, - (1 << 13) - 501 - 117 + 7250, 7238, 7264, 7309, 7338, 7382, 7427, 7456, 7500, 7544, 7574 }; + static const u8 permu_seg[] = { 6, 5, 7, 4, 8, 3, 9, 2, 10, 1, 11, 0, 12 }; static u16 dib8000_set_layer(struct dib8000_state *state, u8 layer_index, u16 max_constellation)