forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/codecs/ad1980.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ad1980.c -- ALSA Soc AD1980 codec support
34 *
4
- * Copyright: Analog Device Inc.
5
+ * Copyright: Analog Devices Inc.
56 * Author: Roy Huang <roy.huang@analog.com>
67 * Cliff Cai <cliff.cai@analog.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 /*
....@@ -260,7 +256,7 @@
260256 if (ret < 0)
261257 goto reset_err;
262258
263
- vendor_id2 = snd_soc_component_read32(component, AC97_VENDOR_ID2);
259
+ vendor_id2 = snd_soc_component_read(component, AC97_VENDOR_ID2);
264260 if (vendor_id2 == 0x5374) {
265261 dev_warn(component->dev,
266262 "Found AD1981 - only 2/2 IN/OUT Channels supported\n");
....@@ -274,7 +270,7 @@
274270 snd_soc_component_write(component, AC97_SURROUND_MASTER, 0x0000);
275271
276272 /*power on LFE/CENTER/Surround DACs*/
277
- ext_status = snd_soc_component_read32(component, AC97_EXTENDED_STATUS);
273
+ ext_status = snd_soc_component_read(component, AC97_EXTENDED_STATUS);
278274 snd_soc_component_write(component, AC97_EXTENDED_STATUS, ext_status&~0x3800);
279275
280276 return 0;