fw/tuner_e4k: Fix the array_size of the filter fw settings.
This was causing the array length to be '1' and so we always took the first possible setting (the widest) ... Certainly not good when you only have a 500 kHz sample rate. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
975c9813e9
commit
1d28c3065b
|
@ -251,9 +251,9 @@ static const uint32_t *if_filter_bw[] = {
|
|||
};
|
||||
|
||||
static const uint32_t if_filter_bw_len[] = {
|
||||
[E4K_IF_FILTER_MIX] = ARRAY_SIZE(&mix_filter_bw),
|
||||
[E4K_IF_FILTER_CHAN] = ARRAY_SIZE(&ifch_filter_bw),
|
||||
[E4K_IF_FILTER_RC] = ARRAY_SIZE(&ifrc_filter_bw),
|
||||
[E4K_IF_FILTER_MIX] = ARRAY_SIZE(mix_filter_bw),
|
||||
[E4K_IF_FILTER_CHAN] = ARRAY_SIZE(ifch_filter_bw),
|
||||
[E4K_IF_FILTER_RC] = ARRAY_SIZE(ifrc_filter_bw),
|
||||
};
|
||||
|
||||
static const struct reg_field if_filter_fields[] = {
|
||||
|
|
Reference in New Issue