Scroll to navigation

SND_SOC_DAPM_FORCE_B(9) ASoC SND_SOC_DAPM_FORCE_B(9)

NAME

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. This will even happen if the context is already at the same level. Furthermore it will not go through the normal bias level sequencing, meaning any intermediate states between the current and the target state will not be entered.

Note that the change in bias level is only temporary and the next time snd_soc_dapm_sync is called the state will be set to the level as determined by the DAPM core. The function is mainly intended to be used to used during probe or resume from suspend to power up the device so initialization can be done, before the DAPM core takes over.

COPYRIGHT

April 2019 Kernel Hackers Manual 4.9.