forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/atmel/atmel-i2s.c
....@@ -1,21 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for Atmel I2S controller
34 *
45 * Copyright (C) 2015 Atmel Corporation
56 *
67 * Author: Cyrille Pitchen <cyrille.pitchen@atmel.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License version 2 as published by
10
- * the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
16
- *
17
- * You should have received a copy of the GNU General Public License along with
18
- * this program. If not, see <http://www.gnu.org/licenses/>.
198 */
209
2110 #include <linux/init.h>
....@@ -174,11 +163,14 @@
174163
175164 #define I2S_MCK_12M288 12288000UL
176165 #define I2S_MCK_11M2896 11289600UL
166
+#define I2S_MCK_6M144 6144000UL
177167
178168 /* mck = (32 * (imckfs+1) / (imckdiv+1)) * fs */
179169 static const struct atmel_i2s_gck_param gck_params[] = {
170
+ /* mck = 6.144Mhz */
171
+ { 8000, I2S_MCK_6M144, 1, 47}, /* mck = 768 fs */
172
+
180173 /* mck = 12.288MHz */
181
- { 8000, I2S_MCK_12M288, 0, 47}, /* mck = 1536 fs */
182174 { 16000, I2S_MCK_12M288, 1, 47}, /* mck = 768 fs */
183175 { 24000, I2S_MCK_12M288, 3, 63}, /* mck = 512 fs */
184176 { 32000, I2S_MCK_12M288, 3, 47}, /* mck = 384 fs */