forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/codecs/wm8523.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * wm8523.c -- WM8523 ALSA SoC Audio driver
34 *
45 * Copyright 2009 Wolfson Microelectronics plc
56 *
67 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7
- *
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as
11
- * published by the Free Software Foundation.
128 */
139
1410 #include <linux/module.h>
....@@ -151,8 +147,8 @@
151147 struct snd_soc_component *component = dai->component;
152148 struct wm8523_priv *wm8523 = snd_soc_component_get_drvdata(component);
153149 int i;
154
- u16 aifctrl1 = snd_soc_component_read32(component, WM8523_AIF_CTRL1);
155
- u16 aifctrl2 = snd_soc_component_read32(component, WM8523_AIF_CTRL2);
150
+ u16 aifctrl1 = snd_soc_component_read(component, WM8523_AIF_CTRL1);
151
+ u16 aifctrl2 = snd_soc_component_read(component, WM8523_AIF_CTRL2);
156152
157153 /* Find a supported LRCLK ratio */
158154 for (i = 0; i < ARRAY_SIZE(lrclk_ratios); i++) {
....@@ -262,7 +258,7 @@
262258 unsigned int fmt)
263259 {
264260 struct snd_soc_component *component = codec_dai->component;
265
- u16 aifctrl1 = snd_soc_component_read32(component, WM8523_AIF_CTRL1);
261
+ u16 aifctrl1 = snd_soc_component_read(component, WM8523_AIF_CTRL1);
266262
267263 aifctrl1 &= ~(WM8523_BCLK_INV_MASK | WM8523_LRCLK_INV_MASK |
268264 WM8523_FMT_MASK | WM8523_AIF_MSTR_MASK);