aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-03-13 05:40:56 -0400
committerMark Brown <broonie@linaro.org>2014-03-13 05:40:56 -0400
commit7a87ac1f66800460e82b7ff3286dfec1c5bb9b84 (patch)
tree5907ca9eee5d390d6817b5625780aa1505a6a132 /include
parenta9576cbbbafa2c687121638dadebfb136562a522 (diff)
parente95d73c437a09e7febea18f8e998f958ef6d7a72 (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.h10
-rw-r--r--include/sound/soc.h11
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 */
450int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, 450int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm,
451 const char *pin); 451 const char *pin);
452int snd_soc_dapm_enable_pin_unlocked(struct snd_soc_dapm_context *dapm,
453 const char *pin);
452int snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm, 454int snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm,
453 const char *pin); 455 const char *pin);
456int snd_soc_dapm_disable_pin_unlocked(struct snd_soc_dapm_context *dapm,
457 const char *pin);
454int snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin); 458int snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin);
459int snd_soc_dapm_nc_pin_unlocked(struct snd_soc_dapm_context *dapm,
460 const char *pin);
455int snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm, 461int snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm,
456 const char *pin); 462 const char *pin);
457int snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm); 463int snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm);
464int snd_soc_dapm_sync_unlocked(struct snd_soc_dapm_context *dapm);
458int snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm, 465int snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm,
459 const char *pin); 466 const char *pin);
467int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm,
468 const char *pin);
460int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, 469int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm,
461 const char *pin); 470 const char *pin);
462void snd_soc_dapm_auto_nc_codec_pins(struct snd_soc_codec *codec); 471void 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 */
465void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason);
466void dapm_mark_io_dirty(struct snd_soc_dapm_context *dapm); 474void 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
1189extern const struct dev_pm_ops snd_soc_pm_ops; 1189extern const struct dev_pm_ops snd_soc_pm_ops;
1190 1190
1191/* Helper functions */
1192static inline void snd_soc_dapm_mutex_lock(struct snd_soc_dapm_context *dapm)
1193{
1194 mutex_lock(&dapm->card->dapm_mutex);
1195}
1196
1197static 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