ASoC: support sample sizes properly in the WM8776 codec driver
authorTimur Tabi <timur@freescale.com>
Tue, 13 Sep 2011 17:59:35 +0000 (12:59 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 16 Sep 2011 09:06:31 +0000 (10:06 +0100)
commitd1dc698a54259cb454284456483b45f67c865cf8
treed85f49ae885e1995d84fb4708ec39859832443e0
parentcc2115cbfc63da72890160da01608b3189dd1b74
ASoC: support sample sizes properly in the WM8776 codec driver

Use snd_pcm_format_width() to determine the sample size, instead of
checking specify sample formats and assuming that those are the only
valid format.

This change adds support for big-endian architectures (which use the _BE
formats) and the packed 24-bit format (SNDRV_PCM_FORMAT_S24_3xE).

[Fixed single letter variable name legibility problem -- broonie]

Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8776.c