/*-------------------------------------------------------------------------- int8 tunerbb_drv_mtv319_init(void) (1) Initializing the MTV319 Chip after power on. (2) Return Value SUCCESS : 1 FAIL : 0 or negative interger (If there is error code) (3) Argument VOID ---------------------------------------------------------------------------- */ int8 tunerbb_drv_mtv319_init(void) { int ret; /* Common Code */ #if defined(STREAM_SLAVE_PARALLEL_UPLOAD) /* EBI2 Specific Code */ #elif defined(STREAM_TS_UPLOAD) /* TSIF Specific Code */ #elif defined(STREAM_SPI_UPLOAD) /* SPI Specific. Code */ //BBM_HOSTIF_SELECT(NULL, BBM_SPI); #else #error code not present #endif RTV_GUARD_INIT; ret = rtvTDMB_Initialize(); if (ret == RTV_SUCCESS) { tdmb_mtv319_interrupt_free(); return MTV319_RESULT_SUCCESS; } else { DMBERR("MTV319 Init error (%d)\n", ret); return MTV319_RESULT_ERROR; /* return 0 : in case of FAIL */ } }
/*==================================================================== FUNCTION mtv350_init DESCRIPTION DEPENDENCIES RETURN VALUE SIDE EFFECTS ======================================================================*/ uint8 mtv350_init(void) { uint8 res; res = rtvTDMB_Initialize(RTV_COUNTRY_BAND_KOREA); prev_subch_id = 0xFFFF; TDMB_MSG_RTV_BB("[%s] res[%d] clock[%d]\n", __func__, res, RTV_SRC_CLK_FREQ_KHz); return res; }
/*==================================================================== FUNCTION mtv319_init DESCRIPTION DEPENDENCIES RETURN VALUE SIDE EFFECTS ======================================================================*/ uint8 mtv319_init(void) { uint8 res; RTV_GUARD_INIT; res = rtvTDMB_Initialize(); prev_subch_id = 0xFFFF; TDMB_MSG_RTV_BB("[%s] res[%d] [SDK Ver : 131129] \n", __func__, res); return res; }
static bool mtv318_power_on(void) { DPRINTK("mtv318_power_on\n"); if (mtv318_pwr_on) { return true; } else { tdmb_control_gpio(true); if (rtvTDMB_Initialize(RTV_COUNTRY_BAND_KOREA) != RTV_SUCCESS) { tdmb_control_gpio(false); return false; } else { tdmb_control_irq(true); mtv318_pwr_on = true; return true; } } }
static bool mtv319_power_on(void) { DPRINTK("mtv319_power_on\n"); if (mtv319_pwr_on) { return true; } else { tdmb_control_gpio(true); RTV_GUARD_INIT; if (rtvTDMB_Initialize() != RTV_SUCCESS) { tdmb_control_gpio(false); return false; } else { tdmb_control_irq(true); mtv319_pwr_on = true; return true; } } }