[PATCH 01/11] ASoC: ak5386: switch to using gpiod API
Mark Brown
broonie at kernel.org
Wed Nov 16 11:36:27 CET 2022
On Tue, Nov 15, 2022 at 09:38:07PM -0800, Dmitry Torokhov wrote:
> Switch the driver from legacy gpio API that is deprecated to the newer
> gpiod API that respects line polarities described in ACPI/DT.
> - if (gpio_is_valid(priv->reset_gpio))
> - gpio_set_value(priv->reset_gpio, 1);
> + if (priv->reset_gpio)
> + gpiod_set_value(priv->reset_gpio, 0);
How are we ensuring that people have described signals as active
low/high in existing DTs, and are we positive that the signal is
described as active low for all devices? In particular if the
signal is described as a reset signal then it's active high even
if we want it low while the device is actually in use.
-------------- 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/20221116/ccff8684/attachment-0001.sig>
More information about the Alsa-devel
mailing list