Makes the code simpler.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
return power;
}
+static int dapm_always_on_check_power(struct snd_soc_dapm_widget *w)
+{
+ return 1;
+}
+
static int dapm_seq_compare(struct snd_soc_dapm_widget *a,
struct snd_soc_dapm_widget *b,
bool power_up)
break;
default:
- if (!w->power_check)
- break;
-
if (!w->force)
power = w->power_check(w);
else
break;
}
+ if (!w->power_check)
+ w->power_check = dapm_always_on_check_power;
+
/* Read the initial power state from the device */
if (w->reg >= 0) {
val = soc_widget_read(w, w->reg);