Example #1
0
/*===========================================================================
FUNCTION       tdmb_ch_test
DESCRIPTION
DEPENDENCIES
RETURN VALUE
SIDE EFFECTS
===========================================================================*/
void tdmb_ch_test(uint8 ch)
{
  service_t servicetype;
  servicetype = (service_t) ch;

  TDMB_MSG_TEST("[%s] !!\n", __func__);

  tdmb_bb_power_on();

  tdmb_bb_set_antenna_path(TDMB_ANT_EARJACK);

#if defined(FEATURE_TEST_ON_BOOT) && defined(FEATURE_QTDMB_TSIF_IF)
  tdmb_tsif_test();
#endif /* FEATURE_QTDMB_TSIF_IF */

#ifdef FEATURE_QTDMB_USE_INC  
  t3700_test(servicetype);
  //t3700_test(T3700_MYTN); // 8B (183008)
  //t3700_test(T3700_TEST); // 10B (195008)
  //t3700_test(T3700_MBC);  // 12A (205280)
  //t3700_test(T3700_KBS_STAR); // 12B (207008)
  //t3700_i2c_test2();
  //t3700_i2c_test3();
#elif defined(FEATURE_QTDMB_USE_FCI)
  fc8050_test(servicetype);
#elif defined(FEATURE_QTDMB_USE_RTV)
  mtv350_test(servicetype);
#elif defined(FEATURE_QTDMB_USE_TCC)
  tcc3170_test(servicetype);
#else
  #error
#endif
}
/*===========================================================================
FUNCTION       dmb_test_work
DESCRIPTION
DEPENDENCIES
RETURN VALUE
SIDE EFFECTS
===========================================================================*/
void dmb_test_work(struct work_struct *work)
{
  //DMB_MSG_TEST("%s",__func__);

  dmb_set_ant_path(DMB_ANT_EARJACK);

#ifdef FEATURE_DMB_TSIF_IF
  dmb_tsif_test();
#endif /* FEATURE_DMB_TSIF_IF */

#ifdef CONFIG_SKY_TDMB
#ifdef FEATURE_TDMB_USE_INC  
   t3700_test(DMB_TEST_CH);
#elif defined(FEATURE_TDMB_USE_FCI)
   fc8050_test(DMB_TEST_CH);
#elif defined(FEATURE_TDMB_USE_RTV)
   mtv350_test(DMB_TEST_CH);
#elif defined(FEATURE_TDMB_USE_TCC)
   tcc3170_test(DMB_TEST_CH);
#else
  #error
#endif
#endif /* CONFIG_SKY_TDMB */

#ifdef CONFIG_SKY_ISDBT
#ifdef FEATURE_ISDBT_USE_SHARP  
  sharp_test(DMB_TEST_CH);
#else
  #error
#endif
#endif /* CONFIG_SKY_ISDBT */

#ifdef FEATURE_BOOTTEST_READ_BER
  setup_timer(&dmb_ber_timer, dmb_ber_callback, 0);
  mod_timer(&dmb_ber_timer, jiffies+msecs_to_jiffies(1000));
  INIT_WORK(&dmb_test_berwq, dmb_ber_work);
#endif
}