mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
amlvideo2: fix record apk exit [1/1]
PD#SWPL-209 Problem: record apk exit when recording Solution: set right start vdin flag Verify: test pass on P321 Change-Id: I0130b5a898392d75d500987f8087dbe9ab778372 Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
This commit is contained in:
committed by
Dongjin Kim
parent
5ffd77d70d
commit
99fbaf7076
@@ -4719,7 +4719,6 @@ static int amlvideo2_stop_tvin_service(struct amlvideo2_node *node)
|
||||
vops->stop_tvin_service(node->vdin_device_num);
|
||||
}
|
||||
|
||||
node->start_vdin_flag = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -4733,7 +4732,7 @@ static int amlvideo2_start_tvin_service(struct amlvideo2_node *node)
|
||||
|
||||
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)
|
||||
@@ -4882,7 +4881,7 @@ int amlvideo2_notify_callback(struct notifier_block *block, unsigned long cmd,
|
||||
|
||||
/* 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);
|
||||
@@ -4890,12 +4889,12 @@ int amlvideo2_notify_callback(struct notifier_block *block, unsigned long cmd,
|
||||
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",
|
||||
@@ -4913,7 +4912,7 @@ int amlvideo2_notify_callback(struct notifier_block *block, unsigned long cmd,
|
||||
|
||||
if (node->r_type == AML_RECEIVER_NONE)
|
||||
amlvideo2_start_thread(node->fh);
|
||||
msleep(500);
|
||||
|
||||
|
||||
ret = amlvideo2_start_tvin_service(node);
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user