Luca Risolia | f327ebb | 2007-01-08 10:43:56 -0300 | [diff] [blame] | 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 | |
| 21 | #ifndef _SN9C102_CONFIG_H_ |
| 22 | #define _SN9C102_CONFIG_H_ |
| 23 | |
| 24 | #include <linux/types.h> |
| 25 | #include <linux/jiffies.h> |
| 26 | |
| 27 | #define SN9C102_DEBUG |
| 28 | #define SN9C102_DEBUG_LEVEL 2 |
| 29 | #define SN9C102_MAX_DEVICES 64 |
| 30 | #define SN9C102_PRESERVE_IMGSCALE 0 |
| 31 | #define SN9C102_FORCE_MUNMAP 0 |
| 32 | #define SN9C102_MAX_FRAMES 32 |
| 33 | #define SN9C102_URBS 2 |
| 34 | #define SN9C102_ISO_PACKETS 7 |
| 35 | #define SN9C102_ALTERNATE_SETTING 8 |
| 36 | #define SN9C102_URB_TIMEOUT msecs_to_jiffies(2 * SN9C102_ISO_PACKETS) |
| 37 | #define SN9C102_CTRL_TIMEOUT 300 |
| 38 | #define SN9C102_FRAME_TIMEOUT 0 |
| 39 | |
| 40 | /*****************************************************************************/ |
| 41 | |
| 42 | static const u8 SN9C102_Y_QTABLE0[64] = { |
| 43 | 8, 5, 5, 8, 12, 20, 25, 30, |
| 44 | 6, 6, 7, 9, 13, 29, 30, 27, |
| 45 | 7, 6, 8, 12, 20, 28, 34, 28, |
| 46 | 7, 8, 11, 14, 25, 43, 40, 31, |
| 47 | 9, 11, 18, 28, 34, 54, 51, 38, |
| 48 | 12, 17, 27, 32, 40, 52, 56, 46, |
| 49 | 24, 32, 39, 43, 51, 60, 60, 50, |
| 50 | 36, 46, 47, 49, 56, 50, 51, 49 |
| 51 | }; |
| 52 | |
| 53 | static const u8 SN9C102_UV_QTABLE0[64] = { |
| 54 | 8, 9, 12, 23, 49, 49, 49, 49, |
| 55 | 9, 10, 13, 33, 49, 49, 49, 49, |
| 56 | 12, 13, 28, 49, 49, 49, 49, 49, |
| 57 | 23, 33, 49, 49, 49, 49, 49, 49, |
| 58 | 49, 49, 49, 49, 49, 49, 49, 49, |
| 59 | 49, 49, 49, 49, 49, 49, 49, 49, |
| 60 | 49, 49, 49, 49, 49, 49, 49, 49, |
| 61 | 49, 49, 49, 49, 49, 49, 49, 49 |
| 62 | }; |
| 63 | |
| 64 | static const u8 SN9C102_Y_QTABLE1[64] = { |
| 65 | 16, 11, 10, 16, 24, 40, 51, 61, |
| 66 | 12, 12, 14, 19, 26, 58, 60, 55, |
| 67 | 14, 13, 16, 24, 40, 57, 69, 56, |
| 68 | 14, 17, 22, 29, 51, 87, 80, 62, |
| 69 | 18, 22, 37, 56, 68, 109, 103, 77, |
| 70 | 24, 35, 55, 64, 81, 104, 113, 92, |
| 71 | 49, 64, 78, 87, 103, 121, 120, 101, |
| 72 | 72, 92, 95, 98, 112, 100, 103, 99 |
| 73 | }; |
| 74 | |
| 75 | static const u8 SN9C102_UV_QTABLE1[64] = { |
| 76 | 17, 18, 24, 47, 99, 99, 99, 99, |
| 77 | 18, 21, 26, 66, 99, 99, 99, 99, |
| 78 | 24, 26, 56, 99, 99, 99, 99, 99, |
| 79 | 47, 66, 99, 99, 99, 99, 99, 99, |
| 80 | 99, 99, 99, 99, 99, 99, 99, 99, |
| 81 | 99, 99, 99, 99, 99, 99, 99, 99, |
| 82 | 99, 99, 99, 99, 99, 99, 99, 99, |
| 83 | 99, 99, 99, 99, 99, 99, 99, 99 |
| 84 | }; |
| 85 | |
| 86 | #endif /* _SN9C102_CONFIG_H_ */ |