snd_soc_dapm_free (9) Linux Manual Page
snd_soc_dapm_free – free dapm resources Synopsis void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm); Arguments dapm DAPM context Description Free all dapm widgets and resources. Copyright
snd_soc_dapm_free – free dapm resources Synopsis void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm); Arguments dapm DAPM context Description Free all dapm widgets and resources. Copyright
snd_soc_dapm_force_enable_pin_unlocked – force a pin to be enabled Synopsis int snd_soc_dapm_force_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin); Arguments dapm DAPM context pin pin name Description Enables input/output pin regardless of any other state. This is intended for use with microphone bias supplies used in microphone jack detection. Requires external locking. Note snd_soc_dapm_sync needs to be called…
snd_soc_dapm_force_enable_pin – force a pin to be enabled Synopsis int snd_soc_dapm_force_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin); Arguments dapm DAPM context pin pin name Description Enables input/output pin regardless of any other state. This is intended for use with microphone bias supplies used in microphone jack detection. Note snd_soc_dapm_sync needs to be called after this for…
snd_soc_dapm_force_bias_level – Sets the DAPM bias level Synopsis int snd_soc_dapm_force_bias_level(struct snd_soc_dapm_context *dapm, enum snd_soc_bias_level level); Arguments dapm The DAPM context for which to set the level level The level to set Description Forces the DAPM bias level to a specific state. It will call the bias level callback of DAPM context with the specified level….
snd_soc_dapm_enable_pin_unlocked – enable pin. Synopsis int snd_soc_dapm_enable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin); Arguments dapm DAPM context pin pin name Description Enables input/output pin and its parents or children widgets iff there is a valid audio route and active audio stream. Requires external locking. Note snd_soc_dapm_sync needs to be called after this for DAPM to do…
snd_soc_dapm_enable_pin – enable pin. Synopsis int snd_soc_dapm_enable_pin(struct snd_soc_dapm_context *dapm, const char *pin); Arguments dapm DAPM context pin pin name Description Enables input/output pin and its parents or children widgets iff there is a valid audio route and active audio stream. Note snd_soc_dapm_sync needs to be called after this for DAPM to do any widget power…
snd_soc_dapm_disable_pin_unlocked – disable pin. Synopsis int snd_soc_dapm_disable_pin_unlocked(struct snd_soc_dapm_context *dapm, const char *pin); Arguments dapm DAPM context pin pin name Description Disables input/output pin and its parents or children widgets. Requires external locking. Note snd_soc_dapm_sync needs to be called after this for DAPM to do any widget power switching. Copyright
snd_soc_dapm_disable_pin – disable pin. Synopsis int snd_soc_dapm_disable_pin(struct snd_soc_dapm_context *dapm, const char *pin); Arguments dapm DAPM context pin pin name Description Disables input/output pin and its parents or children widgets. Note snd_soc_dapm_sync needs to be called after this for DAPM to do any widget power switching. Copyright
snd_soc_dapm_del_routes – Remove routes between DAPM widgets Synopsis int snd_soc_dapm_del_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num); Arguments dapm DAPM context route audio routes num number of routes Description Removes routes from the DAPM context. Copyright
snd_soc_dapm_add_routes – Add routes between DAPM widgets Synopsis int snd_soc_dapm_add_routes(struct snd_soc_dapm_context *dapm, const struct snd_soc_dapm_route *route, int num); Arguments dapm DAPM context route audio routes num number of routes Description Connects 2 dapm widgets together via a named audio path. The sink is the widget receiving the audio signal, whilst the source is the sender…
snd_soc_dai_set_tristate – configure DAI system or master clock. Synopsis int snd_soc_dai_set_tristate(struct snd_soc_dai *dai, int tristate); Arguments dai DAI tristate tristate enable Description Tristates the DAI so that others can use it. Copyright
snd_soc_dai_set_tdm_slot – Configures a DAI for TDM operation Synopsis int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width); Arguments dai The DAI to configure tx_mask bitmask representing active TX slots. rx_mask bitmask representing active RX slots. slots Number of slots in use. slot_width Width in bits for each slot. Description…
snd_soc_dai_set_sysclk – configure DAI system or master clock. Synopsis int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, unsigned int freq, int dir); Arguments dai DAI clk_id DAI specific clock ID freq new clock frequency in Hz dir new clock direction – input/output. Description Configures the DAI master (MCLK) or system (SYSCLK) clocking. Copyright
snd_soc_dai_set_pll – configure DAI PLL. Synopsis int snd_soc_dai_set_pll(struct snd_soc_dai *dai, int pll_id, int source, unsigned int freq_in, unsigned int freq_out); Arguments dai DAI pll_id DAI specific PLL ID source DAI specific source for the PLL freq_in PLL input clock frequency in Hz freq_out requested PLL output clock frequency in Hz Description Configures and enables PLL…
snd_soc_dai_set_fmt – configure DAI hardware audio format. Synopsis int snd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt); Arguments dai DAI fmt SND_SOC_DAIFMT_ format value. Description Configures the DAI hardware format and clocking. Copyright
snd_soc_dai_set_clkdiv – configure DAI clock dividers. Synopsis int snd_soc_dai_set_clkdiv(struct snd_soc_dai *dai, int div_id, int div); Arguments dai DAI div_id DAI specific clock divider ID div new clock divisor. Description Configures the clock dividers. This is used to derive the best DAI bit and frame clocks from the system or master clock. It’s best to set…
snd_soc_dai_set_channel_map – configure DAI audio channel map Synopsis int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai, unsigned int tx_num, unsigned int *tx_slot, unsigned int rx_num, unsigned int *rx_slot); Arguments dai DAI tx_num how many TX channels tx_slot pointer to an array which imply the TX slot number channel 0~num-1 uses rx_num how many RX channels rx_slot pointer to an…
snd_soc_dai_set_bclk_ratio – configure BCLK to sample rate ratio. Synopsis int snd_soc_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int ratio); Arguments dai DAI ratio Ratio of BCLK to Sample rate. Description Configures the DAI for a preset BCLK to sample rate ratio. Copyright
snd_soc_dai_digital_mute – configure DAI system or master clock. Synopsis int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute, int direction); Arguments dai DAI mute mute enable direction stream to mute Description Mutes the DAI DAC. Copyright
snd_soc_component_write – Write register value Synopsis int snd_soc_component_write(struct snd_soc_component *component, unsigned int reg, unsigned int val); Arguments component Component to write to reg Register to write val Value to write to the register Return 0 on success, a negative error code otherwise. Copyright