s32 bbm_com_i2c_init(HANDLE handle, u32 type) { s32 res; res = tuner_ctrl_select(handle, DIV_BROADCAST, (enum I2C_TYPE) type); return res; }
int BBM_I2C_INIT(HANDLE hDevice, u32 type) { int res; res = tuner_ctrl_select(hDevice, type); return res; }
int tuner_select(HANDLE hDevice, u32 product, u32 band) { switch(product) { case FC8050_TUNER: tuner_ctrl_select(hDevice, FCI_I2C_TYPE); tuner = &fc8050_tuner; tuner_band = (band_type) band; tuner_addr = FC8050_TUNER_ADDR; break; default: return BBM_E_TN_SELECT; } if(tuner == NULL) { PRINTF(hDevice, "[ERROR] Can not supported Tuner(%d,%d)\n", product, band); return BBM_E_TN_SELECT; } if(tuner->init(hDevice, tuner_band)) return BBM_E_TN_INIT; return BBM_OK; }