summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2012-03-05 15:38:15 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2012-03-15 10:18:42 -0700
commit427d2b43c23c48aedadca008482f495145411e2b (patch)
treed1df9c8a123f2e5086db39bd3e87dd3e557d6469
parent019524a60e979053b8b8ffef61eae162de522257 (diff)
downloadsystem_core-427d2b43c23c48aedadca008482f495145411e2b.zip
system_core-427d2b43c23c48aedadca008482f495145411e2b.tar.gz
system_core-427d2b43c23c48aedadca008482f495145411e2b.tar.bz2
Fix switch indentation in audio_bytes_per_sample
Align "case" keyword with "switch" keyword. Change-Id: I57ef96253fb1fc925315b557ea27ccc35f63c2f8
-rw-r--r--include/system/audio.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/system/audio.h b/include/system/audio.h
index 0980319..4aee2c0 100644
--- a/include/system/audio.h
+++ b/include/system/audio.h
@@ -447,18 +447,18 @@ static inline size_t audio_bytes_per_sample(audio_format_t format)
size_t size = 0;
switch (format) {
- case AUDIO_FORMAT_PCM_32_BIT:
- case AUDIO_FORMAT_PCM_8_24_BIT:
- size = sizeof(int32_t);
- break;
- case AUDIO_FORMAT_PCM_16_BIT:
- size = sizeof(int16_t);
- break;
- case AUDIO_FORMAT_PCM_8_BIT:
- size = sizeof(uint8_t);
- break;
- default:
- break;
+ case AUDIO_FORMAT_PCM_32_BIT:
+ case AUDIO_FORMAT_PCM_8_24_BIT:
+ size = sizeof(int32_t);
+ break;
+ case AUDIO_FORMAT_PCM_16_BIT:
+ size = sizeof(int16_t);
+ break;
+ case AUDIO_FORMAT_PCM_8_BIT:
+ size = sizeof(uint8_t);
+ break;
+ default:
+ break;
}
return size;
}