hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/rt5660.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * rt5660.c -- RT5660 ALSA SoC audio codec driver
34 *
45 * Copyright 2016 Realtek Semiconductor Corp.
56 * Author: Oder Chiou <oder_chiou@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>
....@@ -376,7 +373,7 @@
376373 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm);
377374 unsigned int val;
378375
379
- val = snd_soc_component_read32(component, RT5660_GLB_CLK);
376
+ val = snd_soc_component_read(component, RT5660_GLB_CLK);
380377 val &= RT5660_SCLK_SRC_MASK;
381378 if (val == RT5660_SCLK_SRC_PLL1)
382379 return 1;
....@@ -1217,7 +1214,8 @@
12171214 static const struct regmap_config rt5660_regmap = {
12181215 .reg_bits = 8,
12191216 .val_bits = 16,
1220
- .use_single_rw = true,
1217
+ .use_single_read = true,
1218
+ .use_single_write = true,
12211219
12221220 .max_register = RT5660_VENDOR_ID2 + 1 + (ARRAY_SIZE(rt5660_ranges) *
12231221 RT5660_PR_SPACING),
....@@ -1243,11 +1241,14 @@
12431241 };
12441242 MODULE_DEVICE_TABLE(of, rt5660_of_match);
12451243
1244
+#ifdef CONFIG_ACPI
12461245 static const struct acpi_device_id rt5660_acpi_match[] = {
12471246 { "10EC5660", 0 },
1247
+ { "10EC3277", 0 },
12481248 { },
12491249 };
12501250 MODULE_DEVICE_TABLE(acpi, rt5660_acpi_match);
1251
+#endif
12511252
12521253 static int rt5660_parse_dt(struct rt5660_priv *rt5660, struct device *dev)
12531254 {