| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA SoC WM9090 driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2009-12 Wolfson Microelectronics |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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 |
|---|
| 21 | 8 | */ |
|---|
| 22 | 9 | |
|---|
| 23 | 10 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 152 | 139 | do { |
|---|
| 153 | 140 | count++; |
|---|
| 154 | 141 | 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); |
|---|
| 156 | 143 | dev_dbg(component->dev, "DC servo status: %x\n", reg); |
|---|
| 157 | 144 | } while ((reg & WM9090_DCS_CAL_COMPLETE_MASK) |
|---|
| 158 | 145 | != WM9090_DCS_CAL_COMPLETE_MASK && count < 1000); |
|---|
| .. | .. |
|---|
| 252 | 239 | struct snd_kcontrol *kcontrol, int event) |
|---|
| 253 | 240 | { |
|---|
| 254 | 241 | 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); |
|---|
| 256 | 243 | |
|---|
| 257 | 244 | switch (event) { |
|---|
| 258 | 245 | case SND_SOC_DAPM_POST_PMU: |
|---|