diff options
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dapm.h | 2 | ||||
-rw-r--r-- | include/sound/soc.h | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 6e89ef6c11c1..05aaaf689ac0 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
@@ -461,6 +461,7 @@ int snd_soc_dapm_nc_pin_unlocked(struct snd_soc_dapm_context *dapm, | |||
461 | int snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm, | 461 | int snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm, |
462 | const char *pin); | 462 | const char *pin); |
463 | int snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm); | 463 | int snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm); |
464 | int snd_soc_dapm_sync_unlocked(struct snd_soc_dapm_context *dapm); | ||
464 | int snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm, | 465 | int snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm, |
465 | const char *pin); | 466 | const char *pin); |
466 | int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, | 467 | int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, |
@@ -470,7 +471,6 @@ int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, | |||
470 | void snd_soc_dapm_auto_nc_codec_pins(struct snd_soc_codec *codec); | 471 | void snd_soc_dapm_auto_nc_codec_pins(struct snd_soc_codec *codec); |
471 | 472 | ||
472 | /* Mostly internal - should not normally be used */ | 473 | /* Mostly internal - should not normally be used */ |
473 | void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason); | ||
474 | void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); | 474 | void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); |
475 | 475 | ||
476 | /* dapm path query */ | 476 | /* dapm path query */ |
diff --git a/include/sound/soc.h b/include/sound/soc.h index 37b470c1e127..075d7e8ba802 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -1208,4 +1208,15 @@ extern struct dentry *snd_soc_debugfs_root; | |||
1208 | 1208 | ||
1209 | extern const struct dev_pm_ops snd_soc_pm_ops; | 1209 | extern const struct dev_pm_ops snd_soc_pm_ops; |
1210 | 1210 | ||
1211 | /* Helper functions */ | ||
1212 | static inline void snd_soc_dapm_mutex_lock(struct snd_soc_dapm_context *dapm) | ||
1213 | { | ||
1214 | mutex_lock(&dapm->card->dapm_mutex); | ||
1215 | } | ||
1216 | |||
1217 | static inline void snd_soc_dapm_mutex_unlock(struct snd_soc_dapm_context *dapm) | ||
1218 | { | ||
1219 | mutex_unlock(&dapm->card->dapm_mutex); | ||
1220 | } | ||
1221 | |||
1211 | #endif | 1222 | #endif |