diff options
Diffstat (limited to 'firmware/drivers/tuner/tea5767.c')
-rw-r--r-- | firmware/drivers/tuner/tea5767.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/drivers/tuner/tea5767.c b/firmware/drivers/tuner/tea5767.c index 5888e00781..b16bb4b7c5 100644 --- a/firmware/drivers/tuner/tea5767.c +++ b/firmware/drivers/tuner/tea5767.c | |||
@@ -86,11 +86,12 @@ int tea5767_set(int setting, int value) | |||
86 | 86 | ||
87 | case RADIO_REGION: | 87 | case RADIO_REGION: |
88 | { | 88 | { |
89 | const struct tea5767_region_data *rd = | 89 | const struct fm_region_data *rd = &fm_region_data[value]; |
90 | &tea5767_region_data[value]; | 90 | int deemphasis = (rd->deemphasis == 75) ? 1 : 0; |
91 | int band = (rd->freq_min == 76000000) ? 1 : 0; | ||
91 | 92 | ||
92 | tea5767_set_clear(4, (1<<6), rd->deemphasis); | 93 | tea5767_set_clear(4, (1<<6), deemphasis); |
93 | tea5767_set_clear(3, (1<<5), rd->band); | 94 | tea5767_set_clear(3, (1<<5), band); |
94 | break; | 95 | break; |
95 | } | 96 | } |
96 | case RADIO_FORCE_MONO: | 97 | case RADIO_FORCE_MONO: |