tuner-as3525v2.c: only build what's needed
[maemo-rb.git] / firmware / target / arm / as3525 / tuner-as3525v2.c
blobcb2afe10d47b2052600b36a122fe459f3c89b632
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Multi-tuner detection module to select between the Si4700 and the RDA5802
12 * Copyright (C) 2010 Bertrik Sikken
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.
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
22 ****************************************************************************/
23 #include "config.h"
24 #include "tuner.h"
26 #ifdef CONFIG_TUNER_MULTI
27 int tuner_detect_type(void)
29 #if (CONFIG_TUNER & SI4700)
30 if (si4700_detect()) {
31 return SI4700;
33 #endif
34 #if (CONFIG_TUNER & RDA5802)
35 if (rda5802_detect()) {
36 return RDA5802;
38 #endif
39 return RDA5082; /* returning 0 freezes the player : FS#11791 */
41 #endif