diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipplus')
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipplus/tuner-clipplus.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipplus/tuner-clipplus.c b/firmware/target/arm/as3525/sansa-clipplus/tuner-clipplus.c new file mode 100644 index 0000000000..6bc1294eb4 --- /dev/null +++ b/firmware/target/arm/as3525/sansa-clipplus/tuner-clipplus.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Multi-tuner detection module to select between the si4700 and a yet | ||
11 | * unidentified Silicon Labs FM tuner chip found in some Sansa Clip+ players. | ||
12 | * | ||
13 | * Copyright (C) 2010 Bertrik Sikken | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or | ||
16 | * modify it under the terms of the GNU General Public License | ||
17 | * as published by the Free Software Foundation; either version 2 | ||
18 | * of the License, or (at your option) any later version. | ||
19 | * | ||
20 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
21 | * KIND, either express or implied. | ||
22 | * | ||
23 | ****************************************************************************/ | ||
24 | #include "config.h" | ||
25 | #include <stdint.h> | ||
26 | #include "tuner.h" | ||
27 | |||
28 | int tuner_detect_type(void) | ||
29 | { | ||
30 | if (si4700_detect()) { | ||
31 | return SI4700; | ||
32 | } else if (fmclipplus_detect()) { | ||
33 | return FMCLIPPLUS; | ||
34 | } else { | ||
35 | return 0; | ||
36 | } | ||
37 | } | ||
38 | |||