[PATCH v2 1/2] ASoC: rt1015p: move SDB control from trigger to DAPM

Mark Brown broonie at kernel.org
Thu Dec 10 16:39:55 CET 2020


On Thu, Dec 10, 2020 at 11:36:16AM +0800, Tzung-Bi Shih wrote:

> +	switch (event) {
> +	case SND_SOC_DAPM_PRE_PMU:
> +		gpiod_set_value(rt1015p->sdb, 1);
> +		dev_dbg(component->dev, "set sdb to 1");

Now this is in DAPM it's not in atomic context so it'd be more friendly
to use gpiod_set_value_cansleep() so that it'll work even if the GPIO
isn't atomic safe.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20201210/8ced6d4a/attachment.sig>


More information about the Alsa-devel mailing list