forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/usb/gspca/sonixb.c
....@@ -1,19 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sonix sn9c102 (bayer) library
34 *
45 * Copyright (C) 2009-2011 Jean-François Moine <http://moinejf.free.fr>
56 * Copyright (C) 2003 2004 Michel Xhaard mxhaard@magic.fr
67 * Add Pas106 Stefano Mozzi (C) 2004
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
178 */
189
1910 /* Some documentation on known sonixb registers:
....@@ -121,7 +112,7 @@
121112
122113 /* We calculate the autogain at the end of the transfer of a frame, at this
123114 moment a frame with the old settings is being captured and transmitted. So
124
- if we adjust the gain or exposure we must ignore atleast the next frame for
115
+ if we adjust the gain or exposure we must ignore at least the next frame for
125116 the new settings to come into effect before doing any other adjustments. */
126117 #define AUTOGAIN_IGNORE_FRAMES 1
127118
....@@ -762,7 +753,7 @@
762753
763754 /* Don't allow this to get below 10 when using autogain, the
764755 steps become very large (relatively) when below 10 causing
765
- the image to oscilate from much too dark, to much too bright
756
+ the image to oscillate from much too dark, to much too bright
766757 and back again. */
767758 if (gspca_dev->autogain->val && reg10 < 10)
768759 reg10 = 10;