struct snd_soc_card *snd_soc_dapm_to_card(struct snd_soc_dapm_context *dapm);
struct snd_soc_component *snd_soc_dapm_to_component(struct snd_soc_dapm_context *dapm);
+bool snd_soc_dapm_get_idle_bias(struct snd_soc_dapm_context *dapm);
+
/* dapm path setup */
int snd_soc_dapm_new_widgets(struct snd_soc_card *card);
void snd_soc_dapm_free(struct snd_soc_dapm_context *dapm);
dapm_seq_insert(w, down_list, false);
}
-static bool dapm_get_idle_bias(struct snd_soc_dapm_context *dapm)
+bool snd_soc_dapm_get_idle_bias(struct snd_soc_dapm_context *dapm)
{
if (dapm->idle_bias) {
struct snd_soc_component *component = snd_soc_dapm_to_component(dapm);
return dapm->idle_bias;
}
+EXPORT_SYMBOL_GPL(snd_soc_dapm_get_idle_bias);
/*
* Scan each dapm widget for complete audio path.
trace_snd_soc_dapm_start(card, event);
for_each_card_dapms(card, d) {
- if (dapm_get_idle_bias(d))
+ if (snd_soc_dapm_get_idle_bias(d))
d->target_bias_level = SND_SOC_BIAS_STANDBY;
else
d->target_bias_level = SND_SOC_BIAS_OFF;
if (d->target_bias_level > bias)
bias = d->target_bias_level;
for_each_card_dapms(card, d)
- if (dapm_get_idle_bias(d))
+ if (snd_soc_dapm_get_idle_bias(d))
d->target_bias_level = bias;
trace_snd_soc_dapm_walk_done(card);