diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-07-26 20:15:16 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-07-26 20:15:16 +0000 |
commit | adc472bec522e5b8bd34302cb3267cfb9a12d12c (patch) | |
tree | 394ca78314cb2ece1fd5412f8870868e608be813 /firmware/drivers/tuner/lv24020lp.c | |
parent | 6087d8960328b427f495d46d74664a4b0e32af17 (diff) | |
download | rockbox-adc472bec522e5b8bd34302cb3267cfb9a12d12c.tar.gz rockbox-adc472bec522e5b8bd34302cb3267cfb9a12d12c.zip |
FM tuner region code cleanup - FS #11492 by me.
This removes the tuner-specific region structs and makes each driver use the common one (which is now extended with a deemphasis field)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27579 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/tuner/lv24020lp.c')
-rw-r--r-- | firmware/drivers/tuner/lv24020lp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/drivers/tuner/lv24020lp.c b/firmware/drivers/tuner/lv24020lp.c index 86f8c39593..0228888309 100644 --- a/firmware/drivers/tuner/lv24020lp.c +++ b/firmware/drivers/tuner/lv24020lp.c | |||
@@ -938,11 +938,14 @@ int lv24020lp_set(int setting, int value) | |||
938 | break; | 938 | break; |
939 | 939 | ||
940 | case RADIO_REGION: | 940 | case RADIO_REGION: |
941 | if (lv24020lp_region_data[value]) | 941 | { |
942 | const struct fm_region_data *rd = &fm_region_data[value]; | ||
943 | if (rd->deemphasis == 75) | ||
942 | lv24020lp_write_set(AUDIO_CTRL2, DEEMP); | 944 | lv24020lp_write_set(AUDIO_CTRL2, DEEMP); |
943 | else | 945 | else |
944 | lv24020lp_write_clear(AUDIO_CTRL2, DEEMP); | 946 | lv24020lp_write_clear(AUDIO_CTRL2, DEEMP); |
945 | break; | 947 | break; |
948 | } | ||
946 | 949 | ||
947 | case RADIO_FORCE_MONO: | 950 | case RADIO_FORCE_MONO: |
948 | if (value) | 951 | if (value) |