summaryrefslogtreecommitdiffstats
path: root/include/sound/soc-dapm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r--include/sound/soc-dapm.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index c00a0b8ade08..6e8a31225383 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -353,6 +353,8 @@ struct device;
353#define SND_SOC_DAPM_WILL_PMD 0x80 /* called at start of sequence */ 353#define SND_SOC_DAPM_WILL_PMD 0x80 /* called at start of sequence */
354#define SND_SOC_DAPM_PRE_POST_PMD \ 354#define SND_SOC_DAPM_PRE_POST_PMD \
355 (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD) 355 (SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD)
356#define SND_SOC_DAPM_PRE_POST_PMU \
357 (SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU)
356 358
357/* convenience event type detection */ 359/* convenience event type detection */
358#define SND_SOC_DAPM_EVENT_ON(e) \ 360#define SND_SOC_DAPM_EVENT_ON(e) \
@@ -402,6 +404,9 @@ int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm,
402struct snd_soc_dapm_widget *snd_soc_dapm_new_control( 404struct snd_soc_dapm_widget *snd_soc_dapm_new_control(
403 struct snd_soc_dapm_context *dapm, 405 struct snd_soc_dapm_context *dapm,
404 const struct snd_soc_dapm_widget *widget); 406 const struct snd_soc_dapm_widget *widget);
407struct snd_soc_dapm_widget *snd_soc_dapm_new_control_unlocked(
408 struct snd_soc_dapm_context *dapm,
409 const struct snd_soc_dapm_widget *widget);
405int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, 410int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm,
406 struct snd_soc_dai *dai); 411 struct snd_soc_dai *dai);
407int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card); 412int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card);
@@ -414,6 +419,9 @@ int snd_soc_dapm_update_dai(struct snd_pcm_substream *substream,
414/* dapm path setup */ 419/* dapm path setup */
415int snd_soc_dapm_new_widgets(struct snd_soc_card *card); 420int snd_soc_dapm_new_widgets(struct snd_soc_card *card);
416void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm); 421void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm);
422void snd_soc_dapm_init(struct snd_soc_dapm_context *dapm,
423 struct snd_soc_card *card,
424 struct snd_soc_component *component);
417int snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm, 425int snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm,
418 const struct snd_soc_dapm_route *route, int num); 426 const struct snd_soc_dapm_route *route, int num);
419int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, 427int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm,
@@ -659,8 +667,6 @@ struct snd_soc_dapm_context {
659 unsigned int idle_bias_off:1; /* Use BIAS_OFF instead of STANDBY */ 667 unsigned int idle_bias_off:1; /* Use BIAS_OFF instead of STANDBY */
660 /* Go to BIAS_OFF in suspend if the DAPM context is idle */ 668 /* Go to BIAS_OFF in suspend if the DAPM context is idle */
661 unsigned int suspend_bias_off:1; 669 unsigned int suspend_bias_off:1;
662 void (*seq_notifier)(struct snd_soc_dapm_context *,
663 enum snd_soc_dapm_type, int);
664 670
665 struct device *dev; /* from parent - for debug */ 671 struct device *dev; /* from parent - for debug */
666 struct snd_soc_component *component; /* parent component */ 672 struct snd_soc_component *component; /* parent component */
@@ -670,10 +676,6 @@ struct snd_soc_dapm_context {
670 enum snd_soc_bias_level target_bias_level; 676 enum snd_soc_bias_level target_bias_level;
671 struct list_head list; 677 struct list_head list;
672 678
673 int (*stream_event)(struct snd_soc_dapm_context *dapm, int event);
674 int (*set_bias_level)(struct snd_soc_dapm_context *dapm,
675 enum snd_soc_bias_level level);
676
677 struct snd_soc_dapm_wcache path_sink_cache; 679 struct snd_soc_dapm_wcache path_sink_cache;
678 struct snd_soc_dapm_wcache path_source_cache; 680 struct snd_soc_dapm_wcache path_source_cache;
679 681