diff options
author | Subhransu S. Prusty <subhransu.s.prusty@intel.com> | 2014-09-19 13:16:05 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-10-02 20:13:12 +0200 |
commit | 5dc0158a27f65e7efaa6e3cc496d93b4c4c65d19 (patch) | |
tree | 0e8a28c4f028bd9f8eba4eb08e363521a4772b2e /sound/soc/soc-dapm.c | |
parent | Linux 3.17-rc1 (diff) | |
download | linux-5dc0158a27f65e7efaa6e3cc496d93b4c4c65d19.tar.xz linux-5dc0158a27f65e7efaa6e3cc496d93b4c4c65d19.zip |
ASoC: Export dapm_kcontrol_get_value
The DSP driver needs to know widget control value in its event handler for
widgets like mixers. This is required in the subsequent patches
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>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 8348352dc2c6..08c79f09034f 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -326,12 +326,13 @@ static struct list_head *dapm_kcontrol_get_path_list( list_for_each_entry(path, dapm_kcontrol_get_path_list(kcontrol), \ list_kcontrol) -static unsigned int dapm_kcontrol_get_value(const struct snd_kcontrol *kcontrol) +unsigned int dapm_kcontrol_get_value(const struct snd_kcontrol *kcontrol) { struct dapm_kcontrol_data *data = snd_kcontrol_chip(kcontrol); return data->value; } +EXPORT_SYMBOL_GPL(dapm_kcontrol_get_value); static bool dapm_kcontrol_set_value(const struct snd_kcontrol *kcontrol, unsigned int value) |