| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * sonix sn9c102 (bayer) library |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009-2011 Jean-François Moine <http://moinejf.free.fr> |
|---|
| 5 | 6 | * Copyright (C) 2003 2004 Michel Xhaard mxhaard@magic.fr |
|---|
| 6 | 7 | * 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. |
|---|
| 17 | 8 | */ |
|---|
| 18 | 9 | |
|---|
| 19 | 10 | /* Some documentation on known sonixb registers: |
|---|
| .. | .. |
|---|
| 121 | 112 | |
|---|
| 122 | 113 | /* We calculate the autogain at the end of the transfer of a frame, at this |
|---|
| 123 | 114 | 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 |
|---|
| 125 | 116 | the new settings to come into effect before doing any other adjustments. */ |
|---|
| 126 | 117 | #define AUTOGAIN_IGNORE_FRAMES 1 |
|---|
| 127 | 118 | |
|---|
| .. | .. |
|---|
| 762 | 753 | |
|---|
| 763 | 754 | /* Don't allow this to get below 10 when using autogain, the |
|---|
| 764 | 755 | 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 |
|---|
| 766 | 757 | and back again. */ |
|---|
| 767 | 758 | if (gspca_dev->autogain->val && reg10 < 10) |
|---|
| 768 | 759 | reg10 = 10; |
|---|