vdin_sm.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * TVIN Signal State Machine
  3. *
  4. * Author: Lin Xu <lin.xu@amlogic.com>
  5. *
  6. * Copyright (C) 2010 Amlogic Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __TVIN_STATE_MACHINE_H
  13. #define __TVIN_STATE_MACHINE_H
  14. #include "vdin.h"
  15. typedef enum tvin_sm_status_e {
  16. TVIN_SM_STATUS_NULL = 0, // processing status from init to the finding of the 1st confirmed status
  17. TVIN_SM_STATUS_NOSIG, // no signal - physically no signal
  18. TVIN_SM_STATUS_UNSTABLE, // unstable - physically bad signal
  19. TVIN_SM_STATUS_NOTSUP, // not supported - physically good signal & not supported
  20. TVIN_SM_STATUS_PRESTABLE,
  21. TVIN_SM_STATUS_STABLE, // stable - physically good signal & supported
  22. } tvin_sm_status_t;
  23. void tvin_smr(struct vdin_dev_s *pdev);
  24. void tvin_smr_init(void);
  25. enum tvin_sm_status_e tvin_get_sm_status(void);
  26. #endif