upd64083.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * upd6408x - NEC Electronics 3-Dimensional Y/C separation input defines
  4. *
  5. * 2006 by Hans Verkuil (hverkuil@kernel.org)
  6. */
  7. #ifndef _UPD64083_H_
  8. #define _UPD64083_H_
  9. /* There are two bits of information that the driver needs in order
  10. to select the correct routing: the operating mode and the selection
  11. of the Y input (external or internal).
  12. The first two operating modes expect a composite signal on the Y input,
  13. the second two operating modes use both the Y and C inputs.
  14. Normally YCS_MODE is used for tuner and composite inputs, and the
  15. YCNR mode is used for S-Video inputs.
  16. The external Y-ADC is selected when the composite input comes from a
  17. upd64031a ghost reduction device. If this device is not present, or
  18. the input is a S-Video signal, then the internal Y-ADC input should
  19. be used. */
  20. /* Operating modes: */
  21. /* YCS mode: Y/C separation (burst locked clocking) */
  22. #define UPD64083_YCS_MODE 0
  23. /* YCS+ mode: 2D Y/C separation and YCNR (burst locked clocking) */
  24. #define UPD64083_YCS_PLUS_MODE 1
  25. /* Note: the following two modes cannot be used in combination with the
  26. external Y-ADC. */
  27. /* MNNR mode: frame comb type YNR+C delay (line locked clocking) */
  28. #define UPD64083_MNNR_MODE 2
  29. /* YCNR mode: frame recursive YCNR (burst locked clocking) */
  30. #define UPD64083_YCNR_MODE 3
  31. /* Select external Y-ADC: this should be set if this device is used in
  32. combination with the upd64031a ghost reduction device.
  33. Otherwise leave at 0 (use internal Y-ADC). */
  34. #define UPD64083_EXT_Y_ADC (1 << 2)
  35. #endif