diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/mas.c | 17 | ||||
-rw-r--r-- | firmware/drivers/tuner/s1a0903x01.c | 3 |
2 files changed, 18 insertions, 2 deletions
diff --git a/firmware/drivers/mas.c b/firmware/drivers/mas.c index 9d1761b419..4f384d3b98 100644 --- a/firmware/drivers/mas.c +++ b/firmware/drivers/mas.c | |||
@@ -466,3 +466,20 @@ unsigned long mas_readver(void) | |||
466 | } | 466 | } |
467 | 467 | ||
468 | #endif | 468 | #endif |
469 | |||
470 | #if CONFIG_TUNER & S1A0903X01 | ||
471 | static int pllfreq; | ||
472 | |||
473 | void mas_store_pllfreq(int freq) | ||
474 | { | ||
475 | pllfreq = freq; | ||
476 | } | ||
477 | |||
478 | int mas_get_pllfreq(void) | ||
479 | { | ||
480 | return pllfreq; | ||
481 | } | ||
482 | #endif | ||
483 | |||
484 | |||
485 | |||
diff --git a/firmware/drivers/tuner/s1a0903x01.c b/firmware/drivers/tuner/s1a0903x01.c index 517d41984d..f6442b269f 100644 --- a/firmware/drivers/tuner/s1a0903x01.c +++ b/firmware/drivers/tuner/s1a0903x01.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "kernel.h" | 26 | #include "kernel.h" |
27 | #include "tuner.h" /* tuner abstraction interface */ | 27 | #include "tuner.h" /* tuner abstraction interface */ |
28 | #include "fmradio.h" /* physical interface driver */ | 28 | #include "fmradio.h" /* physical interface driver */ |
29 | #include "mpeg.h" | ||
30 | #include "sound.h" | 29 | #include "sound.h" |
31 | 30 | ||
32 | #define DEFAULT_IN1 0x100003 /* Mute */ | 31 | #define DEFAULT_IN1 0x100003 /* Mute */ |
@@ -64,7 +63,7 @@ int s1a0903x01_set(int setting, int value) | |||
64 | int pitch = 1000; | 63 | int pitch = 1000; |
65 | 64 | ||
66 | /* 4th harmonic falls in the FM frequency range */ | 65 | /* 4th harmonic falls in the FM frequency range */ |
67 | int if_freq = 4 * mpeg_get_mas_pllfreq(); | 66 | int if_freq = 4 * mas_get_pllfreq(); |
68 | 67 | ||
69 | /* shift the mas harmonic >= 300 kHz away using the direction | 68 | /* shift the mas harmonic >= 300 kHz away using the direction |
70 | * which needs less shifting. */ | 69 | * which needs less shifting. */ |