diff options
Diffstat (limited to 'drivers/media/common/tuners/mxl5005s.c')
-rw-r--r-- | drivers/media/common/tuners/mxl5005s.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/mxl5005s.c b/drivers/media/common/tuners/mxl5005s.c index 0803dab58fff..605e28b73263 100644 --- a/drivers/media/common/tuners/mxl5005s.c +++ b/drivers/media/common/tuners/mxl5005s.c | |||
@@ -2789,7 +2789,10 @@ static u16 MXL_TuneRF(struct dvb_frontend *fe, u32 RF_Freq) | |||
2789 | 2789 | ||
2790 | /* add for 2.6.5 Special setting for QAM */ | 2790 | /* add for 2.6.5 Special setting for QAM */ |
2791 | if (state->Mod_Type == MXL_QAM) { | 2791 | if (state->Mod_Type == MXL_QAM) { |
2792 | if (state->RF_IN < 680000000) | 2792 | if (state->config->qam_gain != 0) |
2793 | status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, | ||
2794 | state->config->qam_gain); | ||
2795 | else if (state->RF_IN < 680000000) | ||
2793 | status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 3); | 2796 | status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 3); |
2794 | else | 2797 | else |
2795 | status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 2); | 2798 | status += MXL_ControlWrite(fe, RFSYN_CHP_GAIN, 2); |