diff options
| author | Mark Brown <broonie@linaro.org> | 2014-03-13 05:40:56 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-03-13 05:40:56 -0400 |
| commit | 7a87ac1f66800460e82b7ff3286dfec1c5bb9b84 (patch) | |
| tree | 5907ca9eee5d390d6817b5625780aa1505a6a132 /include | |
| parent | a9576cbbbafa2c687121638dadebfb136562a522 (diff) | |
| parent | e95d73c437a09e7febea18f8e998f958ef6d7a72 (diff) | |
Merge branch 'topic/dapm' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-pxa
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/soc-dapm.h | 10 | ||||
| -rw-r--r-- | include/sound/soc.h | 11 |
2 files changed, 20 insertions, 1 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h index 68d92e36facd..05aaaf689ac0 100644 --- a/include/sound/soc-dapm.h +++ b/include/sound/soc-dapm.h | |||
| @@ -449,20 +449,28 @@ void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, | |||
| 449 | /* dapm audio pin control and status */ | 449 | /* dapm audio pin control and status */ |
| 450 | int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, | 450 | int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, |
| 451 | const char *pin); | 451 | const char *pin); |
| 452 | int snd_soc_dapm_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, | ||
| 453 | const char *pin); | ||
| 452 | int snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm, | 454 | int snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm, |
| 453 | const char *pin); | 455 | const char *pin); |
| 456 | int snd_soc_dapm_disable_pin_unlocked(struct snd_soc_dapm_context *dapm, | ||
| 457 | const char *pin); | ||
| 454 | int snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin); | 458 | int snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin); |
| 459 | int snd_soc_dapm_nc_pin_unlocked(struct snd_soc_dapm_context *dapm, | ||
| 460 | const char *pin); | ||
| 455 | 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, |
| 456 | const char *pin); | 462 | const char *pin); |
| 457 | 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); | ||
| 458 | 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, |
| 459 | const char *pin); | 466 | const char *pin); |
| 467 | int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, | ||
| 468 | const char *pin); | ||
| 460 | int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, | 469 | int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, |
| 461 | const char *pin); | 470 | const char *pin); |
| 462 | 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); |
| 463 | 472 | ||
| 464 | /* Mostly internal - should not normally be used */ | 473 | /* Mostly internal - should not normally be used */ |
| 465 | void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason); | ||
| 466 | void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); | 474 | void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); |
| 467 | 475 | ||
| 468 | /* dapm path query */ | 476 | /* dapm path query */ |
diff --git a/include/sound/soc.h b/include/sound/soc.h index 9a001472b96a..1e12b66da2cc 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
| @@ -1188,4 +1188,15 @@ extern struct dentry *snd_soc_debugfs_root; | |||
| 1188 | 1188 | ||
| 1189 | extern const struct dev_pm_ops snd_soc_pm_ops; | 1189 | extern const struct dev_pm_ops snd_soc_pm_ops; |
| 1190 | 1190 | ||
| 1191 | /* Helper functions */ | ||
| 1192 | static inline void snd_soc_dapm_mutex_lock(struct snd_soc_dapm_context *dapm) | ||
| 1193 | { | ||
| 1194 | mutex_lock(&dapm->card->dapm_mutex); | ||
| 1195 | } | ||
| 1196 | |||
| 1197 | static inline void snd_soc_dapm_mutex_unlock(struct snd_soc_dapm_context *dapm) | ||
| 1198 | { | ||
| 1199 | mutex_unlock(&dapm->card->dapm_mutex); | ||
| 1200 | } | ||
| 1201 | |||
| 1191 | #endif | 1202 | #endif |
