summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/tuner-as3525v2.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-20 06:26:39 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-07-20 06:26:39 +0000
commitbd78dc7693743e35a854d3a615a20474a7a450b2 (patch)
treee6e69fb467bc1f6e04eebfcf5869b6531de4dace /firmware/target/arm/as3525/tuner-as3525v2.c
parented616c604a1e9a4cbd201aacaa7182d8f7174393 (diff)
downloadrockbox-bd78dc7693743e35a854d3a615a20474a7a450b2.tar.gz
rockbox-bd78dc7693743e35a854d3a615a20474a7a450b2.zip
The new Fuzev2 use the same FM chip than some Clip+
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27502 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/tuner-as3525v2.c')
-rw-r--r--firmware/target/arm/as3525/tuner-as3525v2.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/tuner-as3525v2.c b/firmware/target/arm/as3525/tuner-as3525v2.c
new file mode 100644
index 0000000000..3e911c2e13
--- /dev/null
+++ b/firmware/target/arm/as3525/tuner-as3525v2.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 the RDA5802
11 *
12 * Copyright (C) 2010 Bertrik Sikken
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
21 *
22 ****************************************************************************/
23#include "config.h"
24#include <stdint.h>
25#include "tuner.h"
26
27/* return the detected tuner type */
28int tuner_detect_type(void)
29{
30 if (si4700_detect()) {
31 return SI4700;
32 }
33 if (rda5802_detect()) {
34 return RDA5802;
35 }
36 return 0;
37}
38