hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/rt5514.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * rt5514.c -- RT5514 ALSA SoC audio codec driver
34 *
45 * Copyright 2015 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/acpi.h>
....@@ -422,7 +419,7 @@
422419 }
423420 }
424421
425
- return 0;
422
+ return 1;
426423 }
427424
428425 static const struct snd_kcontrol_new rt5514_snd_controls[] = {
....@@ -489,6 +486,7 @@
489486 /**
490487 * rt5514_calc_dmic_clk - Calculate the frequency divider parameter of dmic.
491488 *
489
+ * @component: only used for dev_warn
492490 * @rate: base clock rate.
493491 *
494492 * Choose divider parameter that gives the highest possible DMIC frequency in
....@@ -1201,7 +1199,8 @@
12011199 .cache_type = REGCACHE_RBTREE,
12021200 .reg_defaults = rt5514_reg,
12031201 .num_reg_defaults = ARRAY_SIZE(rt5514_reg),
1204
- .use_single_rw = true,
1202
+ .use_single_read = true,
1203
+ .use_single_write = true,
12051204 };
12061205
12071206 static const struct i2c_device_id rt5514_i2c_id[] = {