hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/include/sound/rt5682.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/sound/rt5682.h -- Platform data for RT5682
34 *
45 * Copyright 2018 Realtek Microelectronics
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107
118 #ifndef __LINUX_SND_RT5682_H
....@@ -27,6 +24,12 @@
2724 RT5682_JD1,
2825 };
2926
27
+enum rt5682_dai_clks {
28
+ RT5682_DAI_WCLK_IDX,
29
+ RT5682_DAI_BCLK_IDX,
30
+ RT5682_DAI_NUM_CLKS,
31
+};
32
+
3033 struct rt5682_platform_data {
3134
3235 int ldo1_en; /* GPIO for LDO1_EN */
....@@ -34,6 +37,11 @@
3437 enum rt5682_dmic1_data_pin dmic1_data_pin;
3538 enum rt5682_dmic1_clk_pin dmic1_clk_pin;
3639 enum rt5682_jd_src jd_src;
40
+ unsigned int btndet_delay;
41
+ unsigned int dmic_clk_rate;
42
+ unsigned int dmic_delay;
43
+
44
+ const char *dai_clk_names[RT5682_DAI_NUM_CLKS];
3745 };
3846
3947 #endif