Lines Matching full:dapm
3 * linux/sound/soc-dapm.h -- ALSA SoC Dynamic Audio Power Management
240 /* events that are pre and post DAPM */
327 /* dapm kcontrol types */
385 /* dapm stream operations */
394 /* dapm event types */
428 * @PREPARE: Prepare for audio operations. Called before DAPM switching for
446 /* dapm controls */
459 int snd_soc_dapm_new_controls(struct snd_soc_dapm_context *dapm,
461 struct snd_soc_dapm_widget *snd_soc_dapm_new_control(struct snd_soc_dapm_context *dapm,
463 struct snd_soc_dapm_widget *snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm,
465 int snd_soc_dapm_new_dai_widgets(struct snd_soc_dapm_context *dapm, struct snd_soc_dai *dai);
474 /* dapm path setup */
476 void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm);
477 void snd_soc_dapm_init(struct snd_soc_dapm_context *dapm,
479 int snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm,
481 int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm,
483 int snd_soc_dapm_weak_routes(struct snd_soc_dapm_context *dapm,
487 /* dapm events */
492 /* external DAPM widget events */
493 int snd_soc_dapm_mixer_update_power(struct snd_soc_dapm_context *dapm,
495 int snd_soc_dapm_mux_update_power(struct snd_soc_dapm_context *dapm,
499 /* dapm sys fs - used by the core */
501 void snd_soc_dapm_debugfs_init(struct snd_soc_dapm_context *dapm, struct dentry *parent);
503 /* dapm audio pin control and status */
504 int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin);
505 int snd_soc_dapm_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin);
506 int snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm, const char *pin);
507 int snd_soc_dapm_disable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin);
508 int snd_soc_dapm_nc_pin(struct snd_soc_dapm_context *dapm, const char *pin);
509 int snd_soc_dapm_nc_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin);
510 int snd_soc_dapm_get_pin_status(struct snd_soc_dapm_context *dapm, const char *pin);
511 int snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm);
512 int snd_soc_dapm_sync_unlocked(struct snd_soc_dapm_context *dapm);
513 int snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin);
514 int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin);
515 int snd_soc_dapm_ignore_suspend(struct snd_soc_dapm_context *dapm, const char *pin);
521 /* dapm path query */
530 int snd_soc_dapm_force_bias_level(struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level);
532 /* dapm widget types */
578 * DAPM audio route definition.
595 /* dapm audio path between two widgets */
626 /* dapm widget */
632 struct snd_soc_dapm_context *dapm; member
638 /* dapm control */
639 int reg; /* negative reg = no direct dapm */
672 /* used during DAPM updates */
694 /* DAPM context */
700 unsigned int suspend_bias_off:1; /* Use BIAS_OFF in suspend if the DAPM is idle */
706 /* used during DAPM updates */
741 * snd_soc_dapm_init_bias_level() - Initialize DAPM bias level
742 * @dapm: The DAPM context to initialize
743 * @level: The DAPM level to initialize to
745 * This function only sets the driver internal state of the DAPM level and will
748 * E.g. during driver probe to set the DAPM level to the one corresponding with
751 * To change the DAPM state of the device use snd_soc_dapm_set_bias_level().
754 struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level) in snd_soc_dapm_init_bias_level() argument
756 dapm->bias_level = level; in snd_soc_dapm_init_bias_level()
760 * snd_soc_dapm_get_bias_level() - Get current DAPM bias level
761 * @dapm: The context for which to get the bias level
763 * Returns: The current bias level of the passed DAPM context.
766 struct snd_soc_dapm_context *dapm) in snd_soc_dapm_get_bias_level() argument
768 return dapm->bias_level; in snd_soc_dapm_get_bias_level()