tvin_format_table.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * TVIN signal format table
  3. *
  4. * Author: Lin Xu <lin.xu@amlogic.com>
  5. * Bobby Yang <bo.yang@amlogic.com>
  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_FORMAT_TABLE_H
  14. #define __TVIN_FORMAT_TABLE_H
  15. #include <linux/tvin/tvin.h>
  16. #include "tvin_global.h"
  17. extern const char * tvin_sig_fmt_str(enum tvin_sig_fmt_e fmt);
  18. extern const struct tvin_format_s tvin_fmt_tbl[TVIN_SIG_FMT_MAX + 1];
  19. extern const unsigned char adc_vga_table[TVIN_SIG_FMT_VGA_MAX-TVIN_SIG_FMT_NULL-1][ADC_REG_NUM];
  20. extern const unsigned char adc_component_table[TVIN_SIG_FMT_COMP_MAX-TVIN_SIG_FMT_VGA_MAX-1][ADC_REG_NUM];
  21. extern const unsigned char adc_cvbs_table[ADC_REG_NUM];
  22. extern const unsigned char cvd_part1_table[TVIN_SIG_FMT_CVBS_SECAM-TVIN_SIG_FMT_CVBS_NTSC_M+1][CVD_PART1_REG_NUM];
  23. extern const unsigned char cvd_part2_table[TVIN_SIG_FMT_CVBS_SECAM-TVIN_SIG_FMT_CVBS_NTSC_M+1][CVD_PART2_REG_NUM];
  24. // 0x87, 0x93, 0x94, 0x95, 0x96, 0xe6, 0xfa
  25. extern const unsigned int cvd_part3_table[TVIN_SIG_FMT_CVBS_SECAM-TVIN_SIG_FMT_CVBS_NTSC_M+1][CVD_PART3_REG_NUM];
  26. extern const unsigned int cvbs_acd_table[TVIN_SIG_FMT_CVBS_SECAM-TVIN_SIG_FMT_CVBS_NTSC_M+1][ACD_REG_MAX+1];
  27. extern const unsigned int rf_acd_table[TVIN_SIG_FMT_CVBS_SECAM-TVIN_SIG_FMT_CVBS_NTSC_M+1][ACD_REG_MAX+1];
  28. extern const unsigned char cvd_yc_reg_0x00_0x03[TVIN_SIG_FMT_CVBS_SECAM-TVIN_SIG_FMT_CVBS_NTSC_M+1][4];
  29. extern const unsigned char cvd_yc_reg_0x18_0x1f[TVIN_SIG_FMT_CVBS_SECAM-TVIN_SIG_FMT_CVBS_NTSC_M+1][8];
  30. #ifdef TVAFE_ADC_CVBS_CLAMP_SEQUENCE_EN
  31. extern const unsigned char adc_cvbs_clamp_sequence0[ADC_CVBS_CLAMP_SEQUENCE0_LEN];
  32. extern const unsigned char adc_cvbs_clamp_sequence1[ADC_CVBS_CLAMP_SEQUENCE1_LEN];
  33. extern const unsigned char adc_cvbs_clamp_sequence2[ADC_CVBS_CLAMP_SEQUENCE2_LEN];
  34. extern const unsigned char adc_cvbs_clamp_sequence3[ADC_CVBS_CLAMP_SEQUENCE3_LEN];
  35. extern const unsigned char adc_cvbs_clamp_sequence4[ADC_CVBS_CLAMP_SEQUENCE4_LEN];
  36. #endif
  37. #endif