summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-01-12 12:34:42 -0800
committerGlenn Kasten <gkasten@google.com>2012-01-12 13:20:35 -0800
commit828bf0cdf4e869fa7bb007331670328c834f8277 (patch)
tree0c4b50a4da90c9e8d9ce799d699fd9099263c186 /include
parente437f552d2e6a2e6874340754fc59c310d52e91b (diff)
downloadsystem_core-828bf0cdf4e869fa7bb007331670328c834f8277.zip
system_core-828bf0cdf4e869fa7bb007331670328c834f8277.tar.gz
system_core-828bf0cdf4e869fa7bb007331670328c834f8277.tar.bz2
Use audio_format_t consistently
Change-Id: I7eb489b1c1cbe9bfadd43cd7645da86b90fab652
Diffstat (limited to 'include')
-rw-r--r--include/system/audio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/system/audio.h b/include/system/audio.h
index 52ba5e7..0f19101 100644
--- a/include/system/audio.h
+++ b/include/system/audio.h
@@ -382,7 +382,7 @@ static inline bool audio_is_output_channel(uint32_t channel)
return false;
}
-static inline bool audio_is_valid_format(uint32_t format)
+static inline bool audio_is_valid_format(audio_format_t format)
{
switch (format & AUDIO_FORMAT_MAIN_MASK) {
case AUDIO_FORMAT_PCM:
@@ -403,12 +403,12 @@ static inline bool audio_is_valid_format(uint32_t format)
}
}
-static inline bool audio_is_linear_pcm(uint32_t format)
+static inline bool audio_is_linear_pcm(audio_format_t format)
{
return ((format & AUDIO_FORMAT_MAIN_MASK) == AUDIO_FORMAT_PCM);
}
-static inline size_t audio_bytes_per_sample(uint32_t format)
+static inline size_t audio_bytes_per_sample(audio_format_t format)
{
size_t size = 0;