| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | STB0899 Multistandard Frontend driver |
|---|
| 3 | 4 | Copyright (C) Manu Abraham (abraham.manu@gmail.com) |
|---|
| 4 | 5 | |
|---|
| 5 | 6 | Copyright (C) ST Microelectronics |
|---|
| 6 | 7 | |
|---|
| 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. |
|---|
| 20 | 8 | */ |
|---|
| 21 | 9 | |
|---|
| 22 | 10 | #include <linux/bitops.h> |
|---|
| .. | .. |
|---|
| 835 | 823 | dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); |
|---|
| 836 | 824 | dec_ratio = (dec_ratio == 0) ? 1 : dec_ratio; |
|---|
| 837 | 825 | |
|---|
| 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*/ |
|---|
| 840 | 828 | correction = (512 * master_clk) / (2 * dec_ratio * srate); |
|---|
| 841 | 829 | |
|---|
| 842 | 830 | return correction; |
|---|
| .. | .. |
|---|
| 864 | 852 | win_sel = dec_rate - 4; |
|---|
| 865 | 853 | |
|---|
| 866 | 854 | decim = (1 << dec_rate); |
|---|
| 867 | | - /* (FSamp/Fsymbol *100) for integer Caculation */ |
|---|
| 855 | + /* (FSamp/Fsymbol *100) for integer Calculation */ |
|---|
| 868 | 856 | f_sym = internal->master_clk / ((decim * internal->srate) / 1000); |
|---|
| 869 | 857 | |
|---|
| 870 | 858 | if (f_sym <= 2250) /* don't band limit signal going into btr block*/ |
|---|