From 4d31c00084f0e7782dba4a61565cd30737b9c37a Mon Sep 17 00:00:00 2001 From: Sudheer Papothi Date: Fri, 7 Dec 2018 01:23:01 +0530 Subject: [PATCH] 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 --- asoc/codecs/wcd938x/internal.h | 2 -- asoc/codecs/wcd938x/wcd938x.h | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 asoc/codecs/wcd938x/wcd938x.h diff --git a/asoc/codecs/wcd938x/internal.h b/asoc/codecs/wcd938x/internal.h index 4811bd0f4a..71528c71d6 100644 --- a/asoc/codecs/wcd938x/internal.h +++ b/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 */ diff --git a/asoc/codecs/wcd938x/wcd938x.h b/asoc/codecs/wcd938x/wcd938x.h new file mode 100644 index 0000000000..12b5f1a126 --- /dev/null +++ b/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 */