forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/codecs/wm9090.c
....@@ -1,23 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ALSA SoC WM9090 driver
34 *
45 * Copyright 2009-12 Wolfson Microelectronics
56 *
67 * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * version 2 as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but
13
- * WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * 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., 51 Franklin St, Fifth Floor, Boston, MA
20
- * 02110-1301 USA
218 */
229
2310 #include <linux/module.h>
....@@ -152,7 +139,7 @@
152139 do {
153140 count++;
154141 msleep(1);
155
- reg = snd_soc_component_read32(component, WM9090_DC_SERVO_READBACK_0);
142
+ reg = snd_soc_component_read(component, WM9090_DC_SERVO_READBACK_0);
156143 dev_dbg(component->dev, "DC servo status: %x\n", reg);
157144 } while ((reg & WM9090_DCS_CAL_COMPLETE_MASK)
158145 != WM9090_DCS_CAL_COMPLETE_MASK && count < 1000);
....@@ -252,7 +239,7 @@
252239 struct snd_kcontrol *kcontrol, int event)
253240 {
254241 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
255
- unsigned int reg = snd_soc_component_read32(component, WM9090_ANALOGUE_HP_0);
242
+ unsigned int reg = snd_soc_component_read(component, WM9090_ANALOGUE_HP_0);
256243
257244 switch (event) {
258245 case SND_SOC_DAPM_POST_PMU: