mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-25 02:18:29 +01:00
tuner_e4k: fix returncode of e4k_set_enh_gain()
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
551a2d2037
commit
df52752349
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user