From: Timur Tabi Date: Tue, 13 Sep 2011 17:59:35 +0000 (-0500) Subject: ASoC: support sample sizes properly in the WM8776 codec driver X-Git-Tag: v3.3-rc1~14^2~744 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1dc698a54259cb454284456483b45f67c865cf8;p=pandora-kernel.git 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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed