Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] [PATH,2/2] mxl5007 move loop_thru to attach

This patch move the loop_thru configuration to the attach function,
because with dual tuners until loop_tru configuration the other tuner
don't work.

Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Jose Alberto Reguero and committed by
Mauro Carvalho Chehab
02f9cf96 fe4860af

+12 -1
+12 -1
drivers/media/tuners/mxl5007t.c
··· 374 374 mxl5007t_set_if_freq_bits(state, cfg->if_freq_hz, cfg->invert_if); 375 375 mxl5007t_set_xtal_freq_bits(state, cfg->xtal_freq_hz); 376 376 377 - set_reg_bits(state->tab_init, 0x04, 0x01, cfg->loop_thru_enable); 378 377 set_reg_bits(state->tab_init, 0x03, 0x08, cfg->clk_out_enable << 3); 379 378 set_reg_bits(state->tab_init, 0x03, 0x07, cfg->clk_out_amp); 380 379 ··· 900 901 fe->ops.i2c_gate_ctrl(fe, 1); 901 902 902 903 ret = mxl5007t_soft_reset(state); 904 + 905 + if (fe->ops.i2c_gate_ctrl) 906 + fe->ops.i2c_gate_ctrl(fe, 0); 907 + 908 + if (mxl_fail(ret)) 909 + goto fail; 910 + 911 + if (fe->ops.i2c_gate_ctrl) 912 + fe->ops.i2c_gate_ctrl(fe, 1); 913 + 914 + ret = mxl5007t_write_reg(state, 0x04, 915 + state->config->loop_thru_enable); 903 916 904 917 if (fe->ops.i2c_gate_ctrl) 905 918 fe->ops.i2c_gate_ctrl(fe, 0);