mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
6087d89603
commit
adc472bec5
14 changed files with 53 additions and 162 deletions
|
|
@ -91,11 +91,12 @@ int tea5760_set(int setting, int value)
|
|||
|
||||
case RADIO_REGION:
|
||||
{
|
||||
const struct tea5760_region_data *rd =
|
||||
&tea5760_region_data[value];
|
||||
const struct fm_region_data *rd = &fm_region_data[value];
|
||||
int band = (rd->freq_min == 76000000) ? 1 : 0;
|
||||
int deemphasis = (rd->deemphasis == 50) ? 1 : 0;
|
||||
|
||||
tea5760_set_clear(4, (1<<1), rd->deemphasis);
|
||||
tea5760_set_clear(3, (1<<5), rd->band);
|
||||
tea5760_set_clear(3, (1<<5), band);
|
||||
tea5760_set_clear(4, (1<<1), deemphasis);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue