aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 74093be65709..d5db87e82c6d 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -203,6 +203,16 @@
203 SOC_VALUE_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xmask, xtexts, xvalues) 203 SOC_VALUE_ENUM_DOUBLE_DECL(name, xreg, xshift, xshift, xmask, xtexts, xvalues)
204 204
205/* 205/*
206 * Component probe and remove ordering levels for components with runtime
207 * dependencies.
208 */
209#define SND_SOC_COMP_ORDER_FIRST -2
210#define SND_SOC_COMP_ORDER_EARLY -1
211#define SND_SOC_COMP_ORDER_NORMAL 0
212#define SND_SOC_COMP_ORDER_LATE 1
213#define SND_SOC_COMP_ORDER_LAST 2
214
215/*
206 * Bias levels 216 * Bias levels
207 * 217 *
208 * @ON: Bias is fully on for audio playback and capture operations. 218 * @ON: Bias is fully on for audio playback and capture operations.
@@ -613,6 +623,10 @@ struct snd_soc_codec_driver {
613 623
614 void (*seq_notifier)(struct snd_soc_dapm_context *, 624 void (*seq_notifier)(struct snd_soc_dapm_context *,
615 enum snd_soc_dapm_type, int); 625 enum snd_soc_dapm_type, int);
626
627 /* probe ordering - for components with runtime dependencies */
628 int probe_order;
629 int remove_order;
616}; 630};
617 631
618/* SoC platform interface */ 632/* SoC platform interface */
@@ -636,6 +650,10 @@ struct snd_soc_platform_driver {
636 650
637 /* platform stream ops */ 651 /* platform stream ops */
638 struct snd_pcm_ops *ops; 652 struct snd_pcm_ops *ops;
653
654 /* probe ordering - for components with runtime dependencies */
655 int probe_order;
656 int remove_order;
639}; 657};
640 658
641struct snd_soc_platform { 659struct snd_soc_platform {