[alsa-devel] [PATCH] ASoC: Add MAX9850 codec driver

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Mar 7 18:14:55 CET 2011


On Mon, Mar 07, 2011 at 06:04:20PM +0100, Christian Glindkamp wrote:

> As all ready said, I can't really test these changes at the moment but
> will at least compile test them. Additionally, alsa master currently
> does not build here for the arm architecture. Further comments below.

I'm not sure what tree you're building against but mainline ASoC builds
fine on ARM.  ASoC changes should be against the latest for- branch of:

  git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound-2.6.git

(see MAINTAINERS).

> > > +	/* enable zero-detect */
> > > +	snd_soc_update_bits(codec, MAX9850_GENERAL_PURPOSE, 1, 1);
> > > +	/* enable charge pump, disable everything else */
> > > +	snd_soc_write(codec, MAX9850_ENABLE, 0x30);

> > DAPM?

> Charge pump could also be a supply for the Output Mixer. Have to find
> out how to toggle two bits at once via dapm (preferably without
> resorting to callbacks).

If you implement two widgets of the same type DAPM will try to compress
them down into a single register write when updating so the effect will
be to do a single update to both bits.


More information about the Alsa-devel mailing list