tuner_e4k: fix returncode of e4k_set_enh_gain()

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Hoernchen 2012-05-21 22:36:45 +02:00 committed by Steve Markgraf
parent 551a2d2037
commit df52752349

View File

@ -668,7 +668,12 @@ int e4k_set_enh_gain(struct e4k_state *e4k, int32_t gain)
}
}
e4k_reg_set_mask(e4k, E4K_REG_AGC11, 0x7, 0);
return 0;
/* special case: 0 = off*/
if(0 == gain)
return 0;
else
return -EINVAL;
}
int e4k_enable_manual_gain(struct e4k_state *e4k, uint8_t manual)