Exemple #1
0
void si4700_init(void)
{
    mutex_init(&fmr_mutex);
    /* check device id */
    if (si4700_detect()) {
#ifdef HAVE_RDS_CAP
        si4700_rds_init();
#endif
    }
}
void si4700_init(void)
{
    /* check device id */
    if (si4700_detect()) {
        tuner_present = true;

        tuner_power(true);

        /* read all registers */
        si4700_read(16);
        si4700_sleep(0);

#ifdef USE_INTERNAL_OSCILLATOR
        /* Enable the internal oscillator
          (Si4702-16 needs this register to be initialised to 0x100) */
        si4700_write_set(TEST1, TEST1_XOSCEN | 0x100);
        sleep(HZ/2);
#endif

        si4700_sleep(1);
        tuner_power(false);
    }
}