tvin_demod.h 735 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * TVIN Demod Device Driver
  3. *
  4. * Author: Bobby Yang <bo.yang@amlogic.com>
  5. *
  6. *
  7. * Copyright (C) 2010 Amlogic Inc.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __TVIN_DEMOD_H
  14. #define __TVIN_DEMOD_H
  15. /* Standard Liniux Headers */
  16. #include <linux/i2c.h>
  17. /* Amlogic Headers */
  18. #include <linux/tvin/tvin.h>
  19. #define I2C_TRY_MAX_CNT 3 //max try counter
  20. extern int tvin_set_demod(unsigned int bce);
  21. extern void tvin_demod_set_std(tuner_std_id ptstd);
  22. extern void tvin_demod_get_afc(struct tuner_parm_s *ptp);
  23. #endif //__TVIN_DEMOD_H