tuner-as3525v2.c: only build what's needed

add a comment about why we don't return 0 when no tuner was detected
build the file on all as3525v2 targets

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31284 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2011-12-15 19:38:11 +00:00
parent d16cefca95
commit 521512f88a
2 changed files with 8 additions and 6 deletions

View file

@ -21,18 +21,21 @@
*
****************************************************************************/
#include "config.h"
#include <stdint.h>
#include "tuner.h"
/* return the detected tuner type */
#ifdef CONFIG_TUNER_MULTI
int tuner_detect_type(void)
{
#if (CONFIG_TUNER & SI4700)
if (si4700_detect()) {
return SI4700;
}
#endif
#if (CONFIG_TUNER & RDA5802)
if (rda5802_detect()) {
return RDA5802;
}
return RDA5802;
#endif
return RDA5082; /* returning 0 freezes the player : FS#11791 */
}
#endif