aboutsummaryrefslogtreecommitdiff
path: root/pcm.c
diff options
context:
space:
mode:
authorGabriel M. Beddingfield <gabrbedd@ti.com>2012-05-02 11:51:20 -0500
committerSimon Wilson <simonwilson@google.com>2012-10-22 16:58:13 -0700
commit2a274a18b0eb4ff45c5bb8f02eb0264d8cc6154c (patch)
treecaa8c7f11b91e58e8b5320ab776737919d46ea30 /pcm.c
parenta5baefd1ab254a04de0ccd7f34449de2b885da94 (diff)
pcm: Add support for S8 and S24LE formats.
Diffstat (limited to 'pcm.c')
-rw-r--r--pcm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pcm.c b/pcm.c
index a59301e..ecd2304 100644
--- a/pcm.c
+++ b/pcm.c
@@ -189,6 +189,10 @@ static unsigned int pcm_format_to_alsa(enum pcm_format format)
switch (format) {
case PCM_FORMAT_S32_LE:
return SNDRV_PCM_FORMAT_S32_LE;
+ case PCM_FORMAT_S8:
+ return SNDRV_PCM_FORMAT_S8;
+ case PCM_FORMAT_S24_LE:
+ return SNDRV_PCM_FORMAT_S24_LE;
default:
case PCM_FORMAT_S16_LE:
return SNDRV_PCM_FORMAT_S16_LE;