[alsa-devel] [PATCH] ASoC: cs4270: fix dynamic initialization of register cache

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Jan 6 21:15:12 CET 2011

On Thu, Jan 06, 2011 at 12:52:48PM -0600, Timur Tabi wrote:

> +	u8 reg_cache[CS4270_NUMREGS];
> +	struct snd_soc_codec_driver codec_drv;

Having a driver per device is pretty icky and off the top of my head I'd
expect it to cause problems if there are two cs4270 in the system.  It
would be much nicer and more maintainable to avoid bodging around the
API like this.

More information about the Alsa-devel mailing list