Commit 5dc0158a authored by Subhransu S. Prusty's avatar Subhransu S. Prusty Committed by Mark Brown

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: default avatarSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7d1311b9
...@@ -432,6 +432,7 @@ int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, ...@@ -432,6 +432,7 @@ int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm,
int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm,
const char *pin); const char *pin);
void snd_soc_dapm_auto_nc_pins(struct snd_soc_card *card); void snd_soc_dapm_auto_nc_pins(struct snd_soc_card *card);
unsigned int dapm_kcontrol_get_value(const struct snd_kcontrol *kcontrol);
/* Mostly internal - should not normally be used */ /* Mostly internal - should not normally be used */
void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm);
......
...@@ -326,12 +326,13 @@ static struct list_head *dapm_kcontrol_get_path_list( ...@@ -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_for_each_entry(path, dapm_kcontrol_get_path_list(kcontrol), \
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); struct dapm_kcontrol_data *data = snd_kcontrol_chip(kcontrol);
return data->value; return data->value;
} }
EXPORT_SYMBOL_GPL(dapm_kcontrol_get_value);
static bool dapm_kcontrol_set_value(const struct snd_kcontrol *kcontrol, static bool dapm_kcontrol_set_value(const struct snd_kcontrol *kcontrol,
unsigned int value) unsigned int value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment