Browse Source

asoc: wcd938x: Move APIs from internal header file

Move APIs from internal header file for access to other
audio modules.

Change-Id: Ib34d052e4beb63c6805abacc3c99dbff18c9af6c
Signed-off-by: Sudheer Papothi <[email protected]>
Sudheer Papothi 6 years ago
parent
commit
4d31c00084
2 changed files with 19 additions and 2 deletions
  1. 0 2
      asoc/codecs/wcd938x/internal.h
  2. 19 0
      asoc/codecs/wcd938x/wcd938x.h

+ 0 - 2
asoc/codecs/wcd938x/internal.h

@@ -177,6 +177,4 @@ extern int wcd938x_mbhc_micb_adjust_voltage(struct snd_soc_component *component,
 extern int wcd938x_get_micb_vout_ctl_val(u32 micb_mv);
 extern int wcd938x_micbias_control(struct snd_soc_component *component,
 			int micb_num, int req, bool is_dapm);
-extern int wcd938x_info_create_codec_entry(struct snd_info_entry *codec_root,
-				    struct snd_soc_component *component);
 #endif /* _WCD938X_INTERNAL_H */

+ 19 - 0
asoc/codecs/wcd938x/wcd938x.h

@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (c) 2018, The Linux Foundation. All rights reserved.
+ */
+
+#ifndef _WCD938X_H
+#define _WCD938X_H
+
+#ifdef CONFIG_SND_SOC_WCD938X
+extern int wcd938x_info_create_codec_entry(struct snd_info_entry *codec_root,
+				    struct snd_soc_component *component);
+#else
+extern int wcd938x_info_create_codec_entry(struct snd_info_entry *codec_root,
+				    struct snd_soc_component *component)
+{
+	return 0;
+}
+#endif /* CONFIG_SND_SOC_WCD938X */
+#endif /* _WCD938X_H */