[alsa-devel] [PATCH] ASoC: WM8962: Set CLKREG_OVD if GP5_FN is not its reset value

Mark Brown broonie at kernel.org
Fri Jun 7 16:39:05 CEST 2013

On Fri, Jun 07, 2013 at 08:14:18PM +0800, Nicolin Chen wrote:

Please use subject lines appropriate for the thing you're changing.

> According to WM8962 datasheet, the GP5_FN bit of R516 (GPIO 5) depends on
> the CLKREG_OVD bit of R8 (Clocking2):

> "Note that GPIO5 functions are only supported when CLKREG_OVD=1. When
> CLKREG_OVD=0, the contents of Register R516 must not be changed from
> the default value."

> So set CLKREG_OVD bit before regcache_sync() updates the GP5_FN bit to a
> non-reset value.

You're missing a whole batch of handling of device reset here - look at
how we handle things on power on.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20130607/04e77609/attachment.sig>

More information about the Alsa-devel mailing list