* Re: [alsa-devel] [PATCH] ASoC: da7210: Update for using I2C regmap
[not found] <1331213696.17383.7.camel@matrix>
@ 2012-03-08 18:22 ` Mark Brown
0 siblings, 0 replies; only message in thread
From: Mark Brown @ 2012-03-08 18:22 UTC (permalink / raw)
To: Ashish Chavan
Cc: lrg, alsa-devel, David Dajun Chen, kuninori.morimoto.gx,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]
On Thu, Mar 08, 2012 at 07:04:56PM +0530, Ashish Chavan wrote:
> Current DA7210 driver has I2C support using older register cache
> methods. This patch updates it for latest regmap framework.
I've applied this but please fix the minor issues below incrementally.
> +static struct reg_default da7210_reg_defaults[] = {
> + { 0x00, 0x00 },
If any of these registers don't exist they should be removed from the
defaults table, looking at the register defines in the header the
registers between 0x2c and 0x83 should be removed along with register 0.
Similarly, registers that are volatile should not have defaults
specified.
> + /* unlock */
> + regmap_write(da7210->regmap, DA7210_A_HID_UNLOCK, 0x8B);
> + regmap_write(da7210->regmap, DA7210_A_TEST_UNLOCK, 0xB4);
> + regmap_write(da7210->regmap, DA7210_A_PLL1, 0x01);
> + regmap_write(da7210->regmap, DA7210_A_CP_MODE, 0x7C);
> + /* re-lock */
> + regmap_write(da7210->regmap, DA7210_A_HID_UNLOCK, 0x00);
> + regmap_write(da7210->regmap, DA7210_A_TEST_UNLOCK, 0x00);
This sequence should be changed to use a regmap patch. This will fix an
issue you currently have with suspend and resume where the updates are
not reapplied if the device is powered off over suspend.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-08 18:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1331213696.17383.7.camel@matrix>
2012-03-08 18:22 ` [alsa-devel] [PATCH] ASoC: da7210: Update for using I2C regmap Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox