@@ -440,6 +440,9 @@ void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm);
int snd_soc_dapm_dai_get_connected_widgets(struct snd_soc_dai *dai, int stream,
struct snd_soc_dapm_widget_list **list);
+bool dapm_kcontrol_set_value(const struct snd_kcontrol *kcontrol,
+ unsigned int value);
+
struct snd_soc_codec *snd_soc_dapm_kcontrol_codec(struct snd_kcontrol *kcontrol);
/* dapm widget types */
@@ -333,7 +333,7 @@ static unsigned int dapm_kcontrol_get_value(const struct snd_kcontrol *kcontrol)
return data->value;
}
-static bool dapm_kcontrol_set_value(const struct snd_kcontrol *kcontrol,
+bool dapm_kcontrol_set_value(const struct snd_kcontrol *kcontrol,
unsigned int value)
{
struct dapm_kcontrol_data *data = snd_kcontrol_chip(kcontrol);
@@ -348,6 +348,7 @@ static bool dapm_kcontrol_set_value(const struct snd_kcontrol *kcontrol,
return true;
}
+EXPORT_SYMBOL_GPL(dapm_kcontrol_set_value);
/**
* snd_soc_dapm_kcontrol_codec() - Returns the codec associated to a kcontrol
Drivers needing special put dapm callbacks need to use this function to update the state of the kcontrol associated with the widget. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> --- include/sound/soc-dapm.h | 3 +++ sound/soc/soc-dapm.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)