forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/codecs/rt5616.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * rt5616.c -- RT5616 ALSA SoC audio codec driver
34 *
45 * Copyright 2015 Realtek Semiconductor Corp.
56 * Author: Bard Liao <bardliao@realtek.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/module.h>
....@@ -351,7 +348,7 @@
351348 {
352349 unsigned int val;
353350
354
- val = snd_soc_component_read32(snd_soc_dapm_to_component(source->dapm), RT5616_GLB_CLK);
351
+ val = snd_soc_component_read(snd_soc_dapm_to_component(source->dapm), RT5616_GLB_CLK);
355352 val &= RT5616_SCLK_SRC_MASK;
356353 if (val == RT5616_SCLK_SRC_PLL1)
357354 return 1;
....@@ -1313,7 +1310,8 @@
13131310 static const struct regmap_config rt5616_regmap = {
13141311 .reg_bits = 8,
13151312 .val_bits = 16,
1316
- .use_single_rw = true,
1313
+ .use_single_read = true,
1314
+ .use_single_write = true,
13171315 .max_register = RT5616_DEVICE_ID + 1 + (ARRAY_SIZE(rt5616_ranges) *
13181316 RT5616_PR_SPACING),
13191317 .volatile_reg = rt5616_volatile_register,