![](https://secure.gravatar.com/avatar/d28dfe03ea754ea1153719f4ced12649.jpg?s=120&d=mm&r=g)
On Thu, Aug 13, 2009 at 11:41:13AM +0800, Barry Song wrote:
On Wed, Aug 12, 2009 at 9:46 PM, Mark Brownbroonie@opensource.wolfsonmicro.com wrote:
Just "ad1836" - the fact that it's controlled via SPI is clear from the fact that this is a struct spi_driver.
I agree the spi structure implies the meaning of spi. But files in arch/blackfin/mach... are using names like "xxx-spi" for almost all spi devices. How about keeping the coherence?
Oh dear. Looks like you've essentially got a choice between being consistent with the rest of the world and being consistent with what the blackfin stuff is doing.
The power control will be handled by DAPM but your driver still needs to restore things like the volume settings - when the driver is powered off the register settings will be forgotten.
My test shows registers setting doesn't lose after dac/adc shutdown :-)
Probably your board is maintaining power to the chip even during suspend.