summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/tuner-as3525v2.c
diff options
context:
space:
mode:
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