forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/codecs/wm8804.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * wm8804.c -- WM8804 S/PDIF transceiver driver
34 *
45 * Copyright 2010-11 Wolfson Microelectronics plc
56 *
67 * Author: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/module.h>
....@@ -175,7 +172,7 @@
175172
176173 if (snd_soc_component_test_bits(component, e->reg, mask, val)) {
177174 /* save the current power state of the transmitter */
178
- txpwr = snd_soc_component_read32(component, WM8804_PWRDN) & 0x4;
175
+ txpwr = snd_soc_component_read(component, WM8804_PWRDN) & 0x4;
179176
180177 /* power down the transmitter */
181178 snd_soc_component_update_bits(component, WM8804_PWRDN, 0x4, 0x4);