sn9c102_config.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /***************************************************************************
  2. * Global parameters for the V4L2 driver for SN9C1xx PC Camera Controllers *
  3. * *
  4. * Copyright (C) 2007 by Luca Risolia <luca.risolia@studio.unibo.it> *
  5. * *
  6. * This program is free software; you can redistribute it and/or modify *
  7. * it under the terms of the GNU General Public License as published by *
  8. * the Free Software Foundation; either version 2 of the License, or *
  9. * (at your option) any later version. *
  10. * *
  11. * This program is distributed in the hope that it will be useful, *
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  14. * GNU General Public License for more details. *
  15. * *
  16. * You should have received a copy of the GNU General Public License *
  17. * along with this program; if not, write to the Free Software *
  18. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
  19. ***************************************************************************/
  20. #ifndef _SN9C102_CONFIG_H_
  21. #define _SN9C102_CONFIG_H_
  22. #include <linux/types.h>
  23. #include <linux/jiffies.h>
  24. #define SN9C102_DEBUG
  25. #define SN9C102_DEBUG_LEVEL 2
  26. #define SN9C102_MAX_DEVICES 64
  27. #define SN9C102_PRESERVE_IMGSCALE 0
  28. #define SN9C102_FORCE_MUNMAP 0
  29. #define SN9C102_MAX_FRAMES 32
  30. #define SN9C102_URBS 2
  31. #define SN9C102_ISO_PACKETS 7
  32. #define SN9C102_ALTERNATE_SETTING 8
  33. #define SN9C102_URB_TIMEOUT msecs_to_jiffies(2 * SN9C102_ISO_PACKETS)
  34. #define SN9C102_CTRL_TIMEOUT 300
  35. #define SN9C102_FRAME_TIMEOUT 0
  36. /*****************************************************************************/
  37. static const u8 SN9C102_Y_QTABLE0[64] = {
  38. 8, 5, 5, 8, 12, 20, 25, 30,
  39. 6, 6, 7, 9, 13, 29, 30, 27,
  40. 7, 6, 8, 12, 20, 28, 34, 28,
  41. 7, 8, 11, 14, 25, 43, 40, 31,
  42. 9, 11, 18, 28, 34, 54, 51, 38,
  43. 12, 17, 27, 32, 40, 52, 56, 46,
  44. 24, 32, 39, 43, 51, 60, 60, 50,
  45. 36, 46, 47, 49, 56, 50, 51, 49
  46. };
  47. static const u8 SN9C102_UV_QTABLE0[64] = {
  48. 8, 9, 12, 23, 49, 49, 49, 49,
  49. 9, 10, 13, 33, 49, 49, 49, 49,
  50. 12, 13, 28, 49, 49, 49, 49, 49,
  51. 23, 33, 49, 49, 49, 49, 49, 49,
  52. 49, 49, 49, 49, 49, 49, 49, 49,
  53. 49, 49, 49, 49, 49, 49, 49, 49,
  54. 49, 49, 49, 49, 49, 49, 49, 49,
  55. 49, 49, 49, 49, 49, 49, 49, 49
  56. };
  57. static const u8 SN9C102_Y_QTABLE1[64] = {
  58. 16, 11, 10, 16, 24, 40, 51, 61,
  59. 12, 12, 14, 19, 26, 58, 60, 55,
  60. 14, 13, 16, 24, 40, 57, 69, 56,
  61. 14, 17, 22, 29, 51, 87, 80, 62,
  62. 18, 22, 37, 56, 68, 109, 103, 77,
  63. 24, 35, 55, 64, 81, 104, 113, 92,
  64. 49, 64, 78, 87, 103, 121, 120, 101,
  65. 72, 92, 95, 98, 112, 100, 103, 99
  66. };
  67. static const u8 SN9C102_UV_QTABLE1[64] = {
  68. 17, 18, 24, 47, 99, 99, 99, 99,
  69. 18, 21, 26, 66, 99, 99, 99, 99,
  70. 24, 26, 56, 99, 99, 99, 99, 99,
  71. 47, 66, 99, 99, 99, 99, 99, 99,
  72. 99, 99, 99, 99, 99, 99, 99, 99,
  73. 99, 99, 99, 99, 99, 99, 99, 99,
  74. 99, 99, 99, 99, 99, 99, 99, 99,
  75. 99, 99, 99, 99, 99, 99, 99, 99
  76. };
  77. #endif /* _SN9C102_CONFIG_H_ */