[alsa-devel] [PATCH 3/8] mfd: arizona: Add support for WM8998 and WM1814

Mark Brown broonie at kernel.org
Wed Apr 22 13:08:08 CEST 2015


On Tue, Apr 21, 2015 at 01:33:51PM +0100, Richard Fitzgerald wrote:

> +	switch (arizona->type) {
> +	case WM8998:
> +	case WM1814:
> +		/* Some bits are shifted on WM8998,
> +		 * rearrange to match the standard bit layout
> +		 */
> +		val[0] = ((val[0] & 0x60e0) >> 1) |
> +			 ((val[0] & 0x1e00) >> 2) |
> +			 (val[0] & 0x000f);
> +		break;

Are you sure this approach is going to scale (and avoid confusion)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150422/3a6104e5/attachment-0001.sig>


More information about the Alsa-devel mailing list