mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
vdin: add reset_tvin_smr.
PD#167053: vdin: add reset_tvin_smr. when cutting table, need reset tvin smr. Change-Id: Ibe95526b696f73c0f17ff456b17cfb11afafac1b Signed-off-by: xuhua zhang <xuhua.zhang@amlogic.com>
This commit is contained in:
@@ -1969,6 +1969,7 @@ static long vdin_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
pr_info("TVIN_IOC_STOP_DEC(%d) port %s, decode stop ok\n\n",
|
||||
parm->index, tvin_port_str(parm->port));
|
||||
mutex_unlock(&devp->fe_lock);
|
||||
reset_tvin_smr(parm->index);
|
||||
break;
|
||||
}
|
||||
case TVIN_IOC_VF_REG:
|
||||
|
||||
@@ -287,6 +287,11 @@ static void hdmirx_dv_check(struct vdin_dev_s *devp,
|
||||
}
|
||||
}
|
||||
|
||||
void reset_tvin_smr(unsigned int index)
|
||||
{
|
||||
sm_dev[index].sig_status = TVIN_SIG_STATUS_NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* tvin state machine routine
|
||||
*
|
||||
|
||||
@@ -51,6 +51,7 @@ struct tvin_sm_s {
|
||||
};
|
||||
void tvin_smr(struct vdin_dev_s *pdev);
|
||||
void tvin_smr_init(int index);
|
||||
void reset_tvin_smr(unsigned int index);
|
||||
|
||||
enum tvin_sm_status_e tvin_get_sm_status(int index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user