ASoC: dapm: Export snd_soc_dapm_new_control
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Mon, 27 Jun 2016 03:48:03 +0000 (09:18 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jul 2016 14:56:41 +0000 (16:56 +0200)
This is useful outside the core, when one dapm element is added
at a time.

Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dapm.h
sound/soc/soc-dapm.c

index 3101d53468aad5e1e86f7d65a90fdc37ffbafd8f..0efeb38ae059798ed7afb5dbeba08d55bb38c30f 100644 (file)
@@ -382,6 +382,9 @@ int snd_soc_dapm_put_pin_switch(struct snd_kcontrol *kcontrol,
 int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm,
        const struct snd_soc_dapm_widget *widget,
        int num);
+struct snd_soc_dapm_widget *snd_soc_dapm_new_control(
+               struct snd_soc_dapm_context *dapm,
+               const struct snd_soc_dapm_widget *widget);
 int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm,
                                 struct snd_soc_dai *dai);
 int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card);
index c4464858bf0160397c3dcbf484a4bd6e3897c2bb..cc8f480251e75e3de16ed57a85d6ec1d11474a66 100644 (file)
@@ -3282,6 +3282,7 @@ snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
        mutex_unlock(&dapm->card->dapm_mutex);
        return w;
 }
+EXPORT_SYMBOL_GPL(snd_soc_dapm_new_control);
 
 struct snd_soc_dapm_widget *
 snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,