[alsa-devel] [PATCH 2/3] ASoC: Allow codecs to provide their own regmap configuration

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Sep 5 19:45:04 CEST 2011

On Mon, Sep 05, 2011 at 07:43:22PM +0200, Lars-Peter Clausen wrote:

> I think it is useful, since we avoid duplicating that ugly switch statement
> and we also have to wrap regmap_write and regmap_read, duplicating that in each
> codec driver doesn't make sense.

When the CODEC drivers do the probe they should be setting the regmap up
in their individual bus probe functions so no switch statement.

More information about the Alsa-devel mailing list