hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/dvb-frontends/stb0899_algo.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 STB0899 Multistandard Frontend driver
34 Copyright (C) Manu Abraham (abraham.manu@gmail.com)
45
56 Copyright (C) ST Microelectronics
67
7
- This program is free software; you can redistribute it and/or modify
8
- it under the terms of the GNU General Public License as published by
9
- the Free Software Foundation; either version 2 of the License, or
10
- (at your option) any later version.
11
-
12
- This program is distributed in the hope that it will be useful,
13
- but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- GNU General Public License for more details.
16
-
17
- You should have received a copy of the GNU General Public License
18
- along with this program; if not, write to the Free Software
19
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
208 */
219
2210 #include <linux/bitops.h>
....@@ -835,8 +823,8 @@
835823 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate);
836824 dec_ratio = (dec_ratio == 0) ? 1 : dec_ratio;
837825
838
- master_clk = internal->master_clk / 1000; /* for integer Caculation*/
839
- srate = internal->srate / 1000; /* for integer Caculation*/
826
+ master_clk = internal->master_clk / 1000; /* for integer Calculation*/
827
+ srate = internal->srate / 1000; /* for integer Calculation*/
840828 correction = (512 * master_clk) / (2 * dec_ratio * srate);
841829
842830 return correction;
....@@ -864,7 +852,7 @@
864852 win_sel = dec_rate - 4;
865853
866854 decim = (1 << dec_rate);
867
- /* (FSamp/Fsymbol *100) for integer Caculation */
855
+ /* (FSamp/Fsymbol *100) for integer Calculation */
868856 f_sym = internal->master_clk / ((decim * internal->srate) / 1000);
869857
870858 if (f_sym <= 2250) /* don't band limit signal going into btr block*/