2010-06-15 20:57:48 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2010-06-22 16:13:16 +00:00
|
|
|
* Multi-tuner detection module to select between the Si4700 and the RDA5802
|
2010-06-15 20:57:48 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Bertrik Sikken
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#include "config.h"
|
|
|
|
#include "tuner.h"
|
|
|
|
|
2011-12-15 19:38:11 +00:00
|
|
|
#ifdef CONFIG_TUNER_MULTI
|
2010-06-15 20:57:48 +00:00
|
|
|
int tuner_detect_type(void)
|
|
|
|
{
|
2011-12-15 19:38:11 +00:00
|
|
|
#if (CONFIG_TUNER & SI4700)
|
2010-06-15 20:57:48 +00:00
|
|
|
if (si4700_detect()) {
|
|
|
|
return SI4700;
|
2010-06-22 16:13:16 +00:00
|
|
|
}
|
2011-12-15 19:38:11 +00:00
|
|
|
#endif
|
|
|
|
#if (CONFIG_TUNER & RDA5802)
|
2010-06-22 16:13:16 +00:00
|
|
|
if (rda5802_detect()) {
|
2010-06-16 20:29:08 +00:00
|
|
|
return RDA5802;
|
2010-06-15 20:57:48 +00:00
|
|
|
}
|
2011-12-15 19:38:11 +00:00
|
|
|
#endif
|
2011-12-15 19:42:21 +00:00
|
|
|
return RDA5802; /* returning 0 freezes the player : FS#11791 */
|
2010-06-15 20:57:48 +00:00
|
|
|
}
|
2011-12-15 19:38:11 +00:00
|
|
|
#endif
|