summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorZheng Liu <zhliu@nvidia.com>2014-08-29 15:07:50 -0700
committerWinnie Hsu <whsu@nvidia.com>2014-09-05 10:26:35 -0700
commit96919f55ac0cb4c28aee2e4447ecc1e18a593cfd (patch)
tree1a863edcc48b319500a62bcc08003a0b6c9adfbb /sound
parenteac6d05eceb68465e2b98b2755a88fb4e11485af (diff)
tegra: sound: export symbols for module access
Export symbols so the sound driver can be built as a module. Bug 1536426 Change-Id: I86fa8800df1988f630b4e45d4cbf1733c039c837 Signed-off-by: Zheng Liu <zhliu@nvidia.com> Reviewed-on: http://git-master/r/494120 GVS: Gerrit_Virtual_Submit Reviewed-by: Allen Martin <amartin@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt5639.c1
-rw-r--r--sound/soc/tegra/tegra30_ahub.c5
-rw-r--r--sound/soc/tegra/tegra30_dam.c12
-rw-r--r--sound/soc/tegra/tegra30_i2s.c4
-rw-r--r--sound/soc/tegra/tegra_asoc_utils.c2
5 files changed, 24 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5639.c b/sound/soc/codecs/rt5639.c
index 349423859b46..6aebb6463c29 100644
--- a/sound/soc/codecs/rt5639.c
+++ b/sound/soc/codecs/rt5639.c
@@ -132,6 +132,7 @@ int rt5639_irq_jd_reg_init(struct snd_soc_codec *codec)
return 0;
}
+EXPORT_SYMBOL(rt5639_irq_jd_reg_init);
static int rt5639_reg_init(struct snd_soc_codec *codec)
{
diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c
index 98995bc58351..a6f3c6ed1625 100644
--- a/sound/soc/tegra/tegra30_ahub.c
+++ b/sound/soc/tegra/tegra30_ahub.c
@@ -216,6 +216,7 @@ int tegra30_ahub_rx_fifo_is_empty(int i2s_id)
val &= mask;
return val;
}
+EXPORT_SYMBOL(tegra30_ahub_rx_fifo_is_empty);
int tegra30_ahub_tx_fifo_is_empty(int i2s_id)
{
@@ -227,6 +228,7 @@ int tegra30_ahub_tx_fifo_is_empty(int i2s_id)
return val;
}
+EXPORT_SYMBOL(tegra30_ahub_tx_fifo_is_empty);
int tegra30_ahub_dam_ch0_is_enabled(int dam_id)
@@ -280,6 +282,7 @@ int tegra30_ahub_dam_ch0_is_empty(int dam_id)
return val;
}
+EXPORT_SYMBOL(tegra30_ahub_dam_ch0_is_empty);
int tegra30_ahub_dam_ch1_is_empty(int dam_id)
{
@@ -292,6 +295,7 @@ int tegra30_ahub_dam_ch1_is_empty(int dam_id)
return val;
}
+EXPORT_SYMBOL(tegra30_ahub_dam_ch1_is_empty);
int tegra30_ahub_dam_tx_is_empty(int dam_id)
{
@@ -304,6 +308,7 @@ int tegra30_ahub_dam_tx_is_empty(int dam_id)
return val;
}
+EXPORT_SYMBOL(tegra30_ahub_dam_tx_is_empty);
int tegra30_ahub_set_rx_fifo_pack_mode(enum tegra30_ahub_rxcif rxcif,
diff --git a/sound/soc/tegra/tegra30_dam.c b/sound/soc/tegra/tegra30_dam.c
index 66d1f7b098ba..292fb938c8fa 100644
--- a/sound/soc/tegra/tegra30_dam.c
+++ b/sound/soc/tegra/tegra30_dam.c
@@ -797,6 +797,7 @@ int tegra30_dam_allocate_controller()
return -ENOENT;
}
+EXPORT_SYMBOL(tegra30_dam_allocate_controller);
void tegra30_dam_disable_clock(int ifc)
{
@@ -808,6 +809,7 @@ void tegra30_dam_disable_clock(int ifc)
dam = dams_cont_info[ifc];
pm_runtime_put(dam->dev);
}
+EXPORT_SYMBOL(tegra30_dam_disable_clock);
int tegra30_dam_enable_clock(int ifc)
{
@@ -821,6 +823,7 @@ int tegra30_dam_enable_clock(int ifc)
return 0;
}
+EXPORT_SYMBOL(tegra30_dam_enable_clock);
int tegra30_dam_allocate_channel(int ifc, int chid)
{
@@ -838,6 +841,7 @@ int tegra30_dam_allocate_channel(int ifc, int chid)
return -ENOENT;
}
+EXPORT_SYMBOL(tegra30_dam_allocate_channel);
int tegra30_dam_free_channel(int ifc, int chid)
{
@@ -855,6 +859,7 @@ int tegra30_dam_free_channel(int ifc, int chid)
return -EINVAL;
}
+EXPORT_SYMBOL(tegra30_dam_free_channel);
int tegra30_dam_free_controller(int ifc)
{
@@ -873,6 +878,7 @@ int tegra30_dam_free_controller(int ifc)
return -EINVAL;
}
+EXPORT_SYMBOL(tegra30_dam_free_controller);
void tegra30_dam_set_samplerate(int ifc, int chid, int samplerate)
{
@@ -900,6 +906,7 @@ void tegra30_dam_set_samplerate(int ifc, int chid, int samplerate)
break;
}
}
+EXPORT_SYMBOL(tegra30_dam_set_samplerate);
int tegra30_dam_set_gain(int ifc, int chid, int gain)
{
@@ -921,6 +928,7 @@ int tegra30_dam_set_gain(int ifc, int chid, int gain)
return 0;
}
+EXPORT_SYMBOL(tegra30_dam_set_gain);
int tegra30_dam_set_acif(int ifc, int chid, unsigned int audio_channels,
unsigned int audio_bits, unsigned int client_channels,
@@ -980,6 +988,7 @@ int tegra30_dam_set_acif(int ifc, int chid, unsigned int audio_channels,
return 0;
}
+EXPORT_SYMBOL(tegra30_dam_set_acif);
void tegra30_dam_enable(int ifc, int on, int chid)
{
@@ -1049,6 +1058,7 @@ void tegra30_dam_enable(int ifc, int on, int chid)
}
}
}
+EXPORT_SYMBOL(tegra30_dam_enable);
void tegra30_dam_ch0_set_datasync(int ifc, int datasync)
{
@@ -1061,6 +1071,7 @@ void tegra30_dam_ch0_set_datasync(int ifc, int datasync)
val |= datasync << TEGRA30_DAM_DATA_SYNC_SHIFT;
tegra30_dam_writel(dam, val, TEGRA30_DAM_CH0_CTRL);
}
+EXPORT_SYMBOL(tegra30_dam_ch0_set_datasync);
void tegra30_dam_ch1_set_datasync(int ifc, int datasync)
{
@@ -1073,6 +1084,7 @@ void tegra30_dam_ch1_set_datasync(int ifc, int datasync)
val |= datasync << TEGRA30_DAM_DATA_SYNC_SHIFT;
tegra30_dam_writel(dam, val, TEGRA30_DAM_CH1_CTRL);
}
+EXPORT_SYMBOL(tegra30_dam_ch1_set_datasync);
void tegra30_dam_enable_clip_counter(struct tegra30_dam_context *dam, int on)
{
diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c
index d81b9b4dd64e..4ad48e040654 100644
--- a/sound/soc/tegra/tegra30_i2s.c
+++ b/sound/soc/tegra/tegra30_i2s.c
@@ -1832,6 +1832,7 @@ int tegra30_make_voice_call_connections(struct codec_config *codec_info,
return 0;
}
+EXPORT_SYMBOL(tegra30_make_voice_call_connections);
int tegra30_break_voice_call_connections(struct codec_config *codec_info,
struct codec_config *bb_info, int uses_voice_codec)
@@ -1956,6 +1957,7 @@ int tegra30_break_voice_call_connections(struct codec_config *codec_info,
return 0;
}
+EXPORT_SYMBOL(tegra30_break_voice_call_connections);
int tegra30_make_bt_voice_call_connections(struct codec_config *codec_info,
struct codec_config *bb_info, int uses_voice_codec)
@@ -2098,6 +2100,7 @@ int tegra30_make_bt_voice_call_connections(struct codec_config *codec_info,
return 0;
}
+EXPORT_SYMBOL(tegra30_make_bt_voice_call_connections);
int tegra30_break_bt_voice_call_connections(struct codec_config *codec_info,
struct codec_config *bb_info, int uses_voice_codec)
@@ -2218,6 +2221,7 @@ int tegra30_break_bt_voice_call_connections(struct codec_config *codec_info,
return 0;
}
+EXPORT_SYMBOL(tegra30_break_bt_voice_call_connections);
static int tegra30_i2s_platform_probe(struct platform_device *pdev)
diff --git a/sound/soc/tegra/tegra_asoc_utils.c b/sound/soc/tegra/tegra_asoc_utils.c
index f6d0d422779c..a9f33704d7a0 100644
--- a/sound/soc/tegra/tegra_asoc_utils.c
+++ b/sound/soc/tegra/tegra_asoc_utils.c
@@ -52,8 +52,10 @@
#include "tegra_asoc_utils.h"
int g_is_call_mode;
+EXPORT_SYMBOL(g_is_call_mode);
static atomic_t dap_ref_count[5];
int tegra_i2sloopback_func;
+EXPORT_SYMBOL(tegra_i2sloopback_func);
static const char * const loopback_function[] = {
"Off",