[alsa-devel] [PATCH v2 15/19] ASoC: tlv320aic31xx: Reset registers during power up
Mark Brown
broonie at kernel.org
Fri Dec 1 14:37:23 CET 2017
On Wed, Nov 29, 2017 at 03:32:56PM -0600, Andrew F. Davis wrote:
> + gpiod_set_value(aic31xx->gpio_reset, 1);
> + ndelay(10); /* At least 10ns */
> + gpiod_set_value(aic31xx->gpio_reset, 0);
_cansleep(), this isn't being done from interrupt context.
> + } else {
> + ret = regmap_write(aic31xx->regmap, AIC31XX_RESET, 1);
> + if (ret < 0)
> + dev_err(aic31xx->dev, "Could not reset device\n");
Print the error to help people doing debug.
-------------- 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/20171201/ed4e7a25/attachment.sig>
More information about the Alsa-devel
mailing list