hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/sound/soc/codecs/wm8994.h
....@@ -1,14 +1,12 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * wm8994.h -- WM8994 Soc Audio driver
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #ifndef _WM8994_H
107 #define _WM8994_H
118
9
+#include <linux/clk.h>
1210 #include <sound/soc.h>
1311 #include <linux/firmware.h>
1412 #include <linux/completion.h>
....@@ -16,6 +14,12 @@
1614 #include <linux/mutex.h>
1715
1816 #include "wm_hubs.h"
17
+
18
+enum {
19
+ WM8994_MCLK1,
20
+ WM8994_MCLK2,
21
+ WM8994_NUM_MCLK
22
+};
1923
2024 /* Sources for AIF1/2 SYSCLK - use with set_dai_sysclk() */
2125 #define WM8994_SYSCLK_MCLK1 1
....@@ -76,9 +80,10 @@
7680 struct wm8994_priv {
7781 struct wm_hubs_data hubs;
7882 struct wm8994 *wm8994;
83
+ struct clk_bulk_data mclk[WM8994_NUM_MCLK];
7984 int sysclk[2];
8085 int sysclk_rate[2];
81
- int mclk[2];
86
+ int mclk_rate[2];
8287 int aifclk[2];
8388 int aifdiv[2];
8489 int channels[2];