int broadcast_drv_if_close(void) { int8 res = ERROR; if(tunerbb_drv_fc8080_is_on() == TRUE) { boolean retval = FALSE; printk("tdmb_fc8080_power_on state close-->stop\n"); retval = tunerbb_drv_fc8080_stop(); if(retval == TRUE) { res = OK; } } return res; }
int broadcast_drv_if_power_on(void) { int8 res = ERROR; boolean retval = FALSE; if(gpMPI_Buffer == NULL) { #ifndef FC8080_USES_STATIC_BUFFER gpMPI_Buffer = kmalloc(TDMB_MPI_BUF_SIZE*TDMB_MPI_BUF_CHUNK_NUM, GFP_KERNEL); #else // FC8080_USES_STATIC_BUFFER gpMPI_Buffer = (uint8*)&gpMPI_Array[0]; #endif // FC8080_USES_STATIC_BUFFER } // if(tunerbb_drv_fc8080_is_on() == TRUE) { printk("tdmb_fc8080_power_on state true\n"); retval = tunerbb_drv_fc8080_stop(); retval = tunerbb_drv_fc8080_power_off(); if(retval == TRUE) { res = OK; } } retval = tunerbb_drv_fc8080_power_on(); if(retval == TRUE) { res = OK; } //tunerbb_drv_fc8080_set_userstop(1); return res; }
int broadcast_fc8080_drv_if_is_on(void) { return tunerbb_drv_fc8080_is_on(); }