Lines Matching +full:audio +full:- +full:widgets
1 /* SPDX-License-Identifier: GPL-2.0
3 * linux/sound/soc-dapm.h -- ALSA SoC Dynamic Audio Power Management
15 #include <sound/soc-topology.h>
24 #define SND_SOC_NOPM -1
27 * SoC dynamic audio power management
30 * 1. Codec domain - VREF, VMID
33 * 2. Platform/Machine domain - physically connected inputs and outputs
36 * 3. Path domain - Internal codec path mixers
39 * 4. Stream domain - DAC's and ADC's.
158 /* path domain with event - event handler must return 0 for success */
300 /* generic widgets */
399 #define SND_SOC_DAPM_PRE_REG 0x10 /* before audio path setup */
400 #define SND_SOC_DAPM_POST_REG 0x20 /* after audio path setup */
427 * @ON: Bias is fully on for audio playback and capture operations.
428 * @PREPARE: Prepare for audio operations. Called before DAPM switching for
499 /* dapm sys fs - used by the core */
503 /* dapm audio pin control and status */
518 /* Mostly internal - should not normally be used */
544 snd_soc_dapm_micbias, /* microphone bias (power) - DEPRECATED: use snd_soc_dapm_supply */
550 snd_soc_dapm_vmid, /* codec bias/vmid - to minimise pops */
551 snd_soc_dapm_pre, /* machine specific pre widget - exec first */
552 snd_soc_dapm_post, /* machine specific post widget - exec last */
557 snd_soc_dapm_aif_in, /* audio interface input */
558 snd_soc_dapm_aif_out, /* audio interface output */
564 snd_soc_dapm_kcontrol, /* Auto-disabled kcontrol */
570 snd_soc_dapm_encoder, /* FW/SW audio encoder component */
571 snd_soc_dapm_decoder, /* FW/SW audio decoder component */
578 * DAPM audio route definition.
580 * Defines an audio route originating at source via control and finishing
595 /* dapm audio path between two widgets */
600 * source (input) and sink (output) widgets
602 * p->source, rather than p->node[SND_SOC_DAPM_DIR_IN]
613 u32 connect:1; /* source and sink widgets are connected */
616 u32 is_supply:1; /* At least one of the connected widgets is a supply */
641 unsigned int mask; /* non-shifted mask */
702 struct device *dev; /* from parent - for debug */
718 /* A list of widgets associated with an object, typically a snd_kcontrol */
721 struct snd_soc_dapm_widget *widgets[] __counted_by(num_widgets);
726 (i) < list->num_widgets && (widget = list->widgets[i]); \
741 * snd_soc_dapm_init_bias_level() - Initialize DAPM bias level
749 * the power-on reset state of the device.
756 dapm->bias_level = level; in snd_soc_dapm_init_bias_level()
760 * snd_soc_dapm_get_bias_level() - Get current DAPM bias level
768 return dapm->bias_level; in snd_soc_dapm_get_bias_level()
782 * snd_soc_dapm_widget_for_each_path - Iterates over all paths in the
786 * incoming or outgoing widgets
790 list_for_each_entry(p, &w->edges[dir], list_node[dir])
793 * snd_soc_dapm_widget_for_each_path_safe - Iterates over all paths in the
797 * incoming or outgoing widgets
805 list_for_each_entry_safe(p, next_p, &w->edges[dir], list_node[dir])
808 * snd_soc_dapm_widget_for_each_sink_path - Iterates over all paths leaving a
817 * snd_soc_dapm_widget_for_each_source_path - Iterates over all paths leading to