summaryrefslogtreecommitdiff
path: root/android/system
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-12-02 18:28:35 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-12-08 14:00:29 +0100
commit42f16f8db01bbea1ec3d6b76b271c056110e1f42 (patch)
treeda80be642ec5ffdc3510c07915100d2f970820f3 /android/system
parent995692c718a8b1ef67acabcaeba25498b4e4ee7c (diff)
downloadbluez-42f16f8db01bbea1ec3d6b76b271c056110e1f42.tar.gz
android: List all enum values in switch
As described in coding style M10.
Diffstat (limited to 'android/system')
-rw-r--r--android/system/audio.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/android/system/audio.h b/android/system/audio.h
index 1d045b378..d2da76db1 100644
--- a/android/system/audio.h
+++ b/android/system/audio.h
@@ -1295,6 +1295,30 @@ static inline bool audio_is_valid_format(audio_format_t format)
case AUDIO_FORMAT_PCM_FLOAT:
case AUDIO_FORMAT_PCM_24_BIT_PACKED:
return true;
+ case AUDIO_FORMAT_INVALID:
+ case AUDIO_FORMAT_DEFAULT:
+ case AUDIO_FORMAT_MP3:
+ case AUDIO_FORMAT_AMR_NB:
+ case AUDIO_FORMAT_AMR_WB:
+ case AUDIO_FORMAT_AAC:
+ case AUDIO_FORMAT_HE_AAC_V1:
+ case AUDIO_FORMAT_HE_AAC_V2:
+ case AUDIO_FORMAT_VORBIS:
+ case AUDIO_FORMAT_OPUS:
+ case AUDIO_FORMAT_AC3:
+ case AUDIO_FORMAT_E_AC3:
+ case AUDIO_FORMAT_MAIN_MASK:
+ case AUDIO_FORMAT_SUB_MASK:
+ case AUDIO_FORMAT_AAC_MAIN:
+ case AUDIO_FORMAT_AAC_LC:
+ case AUDIO_FORMAT_AAC_SSR:
+ case AUDIO_FORMAT_AAC_LTP:
+ case AUDIO_FORMAT_AAC_HE_V1:
+ case AUDIO_FORMAT_AAC_SCALABLE:
+ case AUDIO_FORMAT_AAC_ERLC:
+ case AUDIO_FORMAT_AAC_LD:
+ case AUDIO_FORMAT_AAC_HE_V2:
+ case AUDIO_FORMAT_AAC_ELD:
default:
return false;
}
@@ -1341,6 +1365,30 @@ static inline size_t audio_bytes_per_sample(audio_format_t format)
case AUDIO_FORMAT_PCM_FLOAT:
size = sizeof(float);
break;
+ case AUDIO_FORMAT_INVALID:
+ case AUDIO_FORMAT_DEFAULT:
+ case AUDIO_FORMAT_MP3:
+ case AUDIO_FORMAT_AMR_NB:
+ case AUDIO_FORMAT_AMR_WB:
+ case AUDIO_FORMAT_AAC:
+ case AUDIO_FORMAT_HE_AAC_V1:
+ case AUDIO_FORMAT_HE_AAC_V2:
+ case AUDIO_FORMAT_VORBIS:
+ case AUDIO_FORMAT_OPUS:
+ case AUDIO_FORMAT_AC3:
+ case AUDIO_FORMAT_E_AC3:
+ case AUDIO_FORMAT_MAIN_MASK:
+ case AUDIO_FORMAT_SUB_MASK:
+ case AUDIO_FORMAT_AAC_MAIN:
+ case AUDIO_FORMAT_AAC_LC:
+ case AUDIO_FORMAT_AAC_SSR:
+ case AUDIO_FORMAT_AAC_LTP:
+ case AUDIO_FORMAT_AAC_HE_V1:
+ case AUDIO_FORMAT_AAC_SCALABLE:
+ case AUDIO_FORMAT_AAC_ERLC:
+ case AUDIO_FORMAT_AAC_LD:
+ case AUDIO_FORMAT_AAC_HE_V2:
+ case AUDIO_FORMAT_AAC_ELD:
default:
break;
}