Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_tinyalsa
Commits
f6dfa003
Commit
f6dfa003
authored
11 years ago
by
Glenn Kasten
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Add support for 24-bit packed in 3 bytes"
parents
74be6016
d9837d02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
include/tinyalsa/asoundlib.h
include/tinyalsa/asoundlib.h
+1
-0
pcm.c
pcm.c
+4
-0
No files found.
include/tinyalsa/asoundlib.h
View file @
f6dfa003
...
...
@@ -74,6 +74,7 @@ enum pcm_format {
PCM_FORMAT_S32_LE
,
PCM_FORMAT_S8
,
PCM_FORMAT_S24_LE
,
PCM_FORMAT_S24_3LE
,
PCM_FORMAT_MAX
,
};
...
...
This diff is collapsed.
Click to expand it.
pcm.c
View file @
f6dfa003
...
...
@@ -205,6 +205,8 @@ static unsigned int pcm_format_to_alsa(enum pcm_format format)
return
SNDRV_PCM_FORMAT_S32_LE
;
case
PCM_FORMAT_S8
:
return
SNDRV_PCM_FORMAT_S8
;
case
PCM_FORMAT_S24_3LE
:
return
SNDRV_PCM_FORMAT_S24_3LE
;
case
PCM_FORMAT_S24_LE
:
return
SNDRV_PCM_FORMAT_S24_LE
;
default:
...
...
@@ -219,6 +221,8 @@ unsigned int pcm_format_to_bits(enum pcm_format format)
case
PCM_FORMAT_S32_LE
:
case
PCM_FORMAT_S24_LE
:
return
32
;
case
PCM_FORMAT_S24_3LE
:
return
24
;
default:
case
PCM_FORMAT_S16_LE
:
return
16
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment