vops->stop_tvin_service(node->vdin_device_num);
}
- node->start_vdin_flag = 0;
return ret;
}
vinfo = get_current_vinfo();
- if ((!node->start_vdin_flag) || (node->r_type != AML_RECEIVER_NONE))
+ if (node->r_type != AML_RECEIVER_NONE)
goto start;
if (amlvideo2_dbg_en)
/* if local queue have vf , should give back to provider */
if (vfq_empty(&node->q_ready)) {
- if (amlvideo2_dbg_en)
+ if (amlvideo2_dbg_en & 4)
pr_info("q_ready is empty .\n");
} else {
recycle_vf = vfq_pop(&node->q_ready);
vf_put(recycle_vf, node->recv.name);
recycle_vf = vfq_pop(&node->q_ready);
}
- if (amlvideo2_dbg_en)
+ if (amlvideo2_dbg_en & 4)
pr_info("already flush local vf .\n");
}
/*debug provider vf state*/
- if (amlvideo2_dbg_en) {
+ if (amlvideo2_dbg_en & 4) {
ret = vf_get_states(vfp, &states);
if (ret == 0) {
pr_info("vf_pool_size = %d, buf_free_num = %d .\n",
if (node->r_type == AML_RECEIVER_NONE)
amlvideo2_start_thread(node->fh);
- msleep(500);
+
ret = amlvideo2_start_tvin_service(node);
if (ret < 0) {
return -1;
}
} else {
- flags = CODEC_MM_FLAGS_DMA_CPU|
+ flags = CODEC_MM_FLAGS_DMA |
CODEC_MM_FLAGS_CMA_CLEAR;
if (node_id == 0) {
if (vid_dev->node[node_id]->