31 Jan
2011
31 Jan
'11
11:27 p.m.
On Mon, 31 Jan 2011, Mark Brown wrote:
Signed-off-by: Mark Brown broonie@opensource.wolfsonmicro.com
Is any reason to avoid using the snd_pcm_format_width() function here?
Jaroslav
sound/soc/soc-utils.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index 1d07b93..e31d843 100644 --- a/sound/soc/soc-utils.c +++ b/sound/soc/soc-utils.c @@ -29,6 +29,10 @@ int snd_soc_params_to_frame_size(struct snd_pcm_hw_params *params) int sample_size;
switch (params_format(params)) {
- case SNDRV_PCM_FORMAT_S8:
- case SNDRV_PCM_FORMAT_U8:
sample_size = 8;
case SNDRV_PCM_FORMAT_S16_LE: case SNDRV_PCM_FORMAT_S16_BE: sample_size = 16;break;
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.