diff options
author | Paul McLean | 2014-04-01 10:45:24 -0500 |
---|---|---|
committer | Android (Google) Code Review | 2014-04-01 10:45:24 -0500 |
commit | c6d37224e75b68a70a852fd78f88e38124d1781c (patch) | |
tree | 9f5d8de0c7011f6f02276fd18e78614cc1296d81 /include/tinyalsa | |
parent | 59610d55ac18acd39cff033d21c74745ef2854b3 (diff) | |
parent | b25ece4c48ed459c83320343307d8c827ebe06a4 (diff) | |
download | platform-external-tinyalsa-c6d37224e75b68a70a852fd78f88e38124d1781c.tar.gz platform-external-tinyalsa-c6d37224e75b68a70a852fd78f88e38124d1781c.tar.xz platform-external-tinyalsa-c6d37224e75b68a70a852fd78f88e38124d1781c.zip |
Merge "Add pcm_params_set_min/max and update comments"
Diffstat (limited to 'include/tinyalsa')
-rw-r--r-- | include/tinyalsa/asoundlib.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index 1083dba..de9dde7 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h | |||
@@ -70,11 +70,11 @@ struct pcm; | |||
70 | 70 | ||
71 | /* Bit formats */ | 71 | /* Bit formats */ |
72 | enum pcm_format { | 72 | enum pcm_format { |
73 | PCM_FORMAT_S16_LE = 0, | 73 | PCM_FORMAT_S16_LE = 0, /* 16-bit signed */ |
74 | PCM_FORMAT_S32_LE, | 74 | PCM_FORMAT_S32_LE, /* 32-bit signed */ |
75 | PCM_FORMAT_S8, | 75 | PCM_FORMAT_S8, /* 8-bit signed */ |
76 | PCM_FORMAT_S24_LE, | 76 | PCM_FORMAT_S24_LE, /* 24-bits in 4-bytes */ |
77 | PCM_FORMAT_S24_3LE, | 77 | PCM_FORMAT_S24_3LE, /* 24-bits in 3-bytes */ |
78 | 78 | ||
79 | PCM_FORMAT_MAX, | 79 | PCM_FORMAT_MAX, |
80 | }; | 80 | }; |
@@ -161,8 +161,12 @@ struct pcm_mask *pcm_params_get_mask(struct pcm_params *pcm_params, | |||
161 | enum pcm_param param); | 161 | enum pcm_param param); |
162 | unsigned int pcm_params_get_min(struct pcm_params *pcm_params, | 162 | unsigned int pcm_params_get_min(struct pcm_params *pcm_params, |
163 | enum pcm_param param); | 163 | enum pcm_param param); |
164 | void pcm_params_set_min(struct pcm_params *pcm_params, | ||
165 | enum pcm_param param, unsigned int val); | ||
164 | unsigned int pcm_params_get_max(struct pcm_params *pcm_params, | 166 | unsigned int pcm_params_get_max(struct pcm_params *pcm_params, |
165 | enum pcm_param param); | 167 | enum pcm_param param); |
168 | void pcm_params_set_max(struct pcm_params *pcm_params, | ||
169 | enum pcm_param param, unsigned int val); | ||
166 | 170 | ||
167 | /* Converts the pcm parameters to a human readable string. | 171 | /* Converts the pcm parameters to a human readable string. |
168 | * The string parameter is a caller allocated buffer of size bytes, | 172 | * The string parameter is a caller allocated buffer of size bytes, |