diff options
author | Liam Girdwood <lg@opensource.wolfsonmicro.com> | 2008-07-07 08:35:17 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-07-10 03:32:30 -0400 |
commit | a5302181e5321664047f75715242aac4e0bbd17c (patch) | |
tree | eb5b8a618062099981b65eeaca4cdb9b1fe7c826 /include/sound/soc-dapm.h | |
parent | be321a890c25272965129ffe4b3b59a519fcf583 (diff) |
ALSA: asoc: core - refactored DAPM pin control API.
Refactored snd_soc_dapm_set_endpoint() to snd_soc_dapm_enable_pin() and
snd_soc_dapm_disable_pin().
Renamed snd_soc_dapm_sync_endpoints() to snd_soc_dapm_sync().
Renamed snd_soc_dapm_get_endpoint_status() to
snd_soc_dapm_get_pin_status().
Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r-- | include/sound/soc-dapm.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index b2849538cbfe..3030fdc6981d 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -234,16 +234,11 @@ int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev, | |||
234 | /* dapm sys fs - used by the core */ | 234 | /* dapm sys fs - used by the core */ |
235 | int snd_soc_dapm_sys_add(struct device *dev); | 235 | int snd_soc_dapm_sys_add(struct device *dev); |
236 | 236 | ||
237 | /* event handler for register modifier widget - used by the soc-dapm */ | 237 | /* dapm audio pin control and status */ |
238 | int dapm_reg_event(struct snd_soc_dapm_widget *w, | 238 | int snd_soc_dapm_enable_pin(struct snd_soc_codec *codec, char *pin); |
239 | struct snd_kcontrol *kcontrol, int event); | 239 | int snd_soc_dapm_disable_pin(struct snd_soc_codec *codec, char *pin); |
240 | 240 | int snd_soc_dapm_get_pin_status(struct snd_soc_codec *codec, char *pin); | |
241 | /* dapm audio endpoint control */ | 241 | int snd_soc_dapm_sync(struct snd_soc_codec *codec); |
242 | int snd_soc_dapm_set_endpoint(struct snd_soc_codec *codec, | ||
243 | char *pin, int status); | ||
244 | int snd_soc_dapm_get_endpoint_status(struct snd_soc_codec *codec, | ||
245 | char *pin); | ||
246 | int snd_soc_dapm_sync_endpoints(struct snd_soc_codec *codec); | ||
247 | 242 | ||
248 | /* dapm widget types */ | 243 | /* dapm widget types */ |
249 | enum snd_soc_dapm_type { | 244 | enum snd_soc_dapm_type { |