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>
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:
}
}
+void reset_tvin_smr(unsigned int index)
+{
+ sm_dev[index].sig_status = TVIN_SIG_STATUS_NULL;
+}
+
/*
* tvin state machine routine
*
};
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);