.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * wm8523.c -- WM8523 ALSA SoC Audio driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2009 Wolfson Microelectronics plc |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
151 | 147 | struct snd_soc_component *component = dai->component; |
---|
152 | 148 | struct wm8523_priv *wm8523 = snd_soc_component_get_drvdata(component); |
---|
153 | 149 | 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); |
---|
156 | 152 | |
---|
157 | 153 | /* Find a supported LRCLK ratio */ |
---|
158 | 154 | for (i = 0; i < ARRAY_SIZE(lrclk_ratios); i++) { |
---|
.. | .. |
---|
262 | 258 | unsigned int fmt) |
---|
263 | 259 | { |
---|
264 | 260 | 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); |
---|
266 | 262 | |
---|
267 | 263 | aifctrl1 &= ~(WM8523_BCLK_INV_MASK | WM8523_LRCLK_INV_MASK | |
---|
268 | 264 | WM8523_FMT_MASK | WM8523_AIF_MSTR_MASK); |
---|