From 1d28c3065b7d436acafcf179ea77f5eeb448c64b Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sat, 31 Mar 2012 23:28:31 +0200 Subject: [PATCH] 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 --- firmware/src/tuner_e4k.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/src/tuner_e4k.c b/firmware/src/tuner_e4k.c index b0cf779..5ecd65a 100644 --- a/firmware/src/tuner_e4k.c +++ b/firmware/src/tuner_e4k.c @@ -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[] = {