audio: Add some fall through comments
authorStefan Weil <sw@weilnetz.de>
Sat, 25 Feb 2012 13:46:55 +0000 (14:46 +0100)
committermalc <av1474@comtv.ru>
Sat, 25 Feb 2012 14:16:11 +0000 (18:16 +0400)
Static code analysers expect these comments for case statements without
a break statement.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: malc <av1474@comtv.ru>
audio/audio.c
audio/esdaudio.c

index 5fff6de966953067e6b824261e74baadf8b57c7f..398763fd7c94a10574a5226b75724d08ccc9b582 100644 (file)
@@ -585,17 +585,20 @@ static int audio_pcm_info_eq (struct audio_pcm_info *info, struct audsettings *a
     switch (as->fmt) {
     case AUD_FMT_S8:
         sign = 1;
+        /* fall through */
     case AUD_FMT_U8:
         break;
 
     case AUD_FMT_S16:
         sign = 1;
+        /* fall through */
     case AUD_FMT_U16:
         bits = 16;
         break;
 
     case AUD_FMT_S32:
         sign = 1;
+        /* fall through */
     case AUD_FMT_U32:
         bits = 32;
         break;
index bd6e1cc19b1148a3bfd48bf3479f290418779d45..eea9ccec0bc688f4cf0c26cfc8fe5632604425b5 100644 (file)
@@ -201,7 +201,7 @@ static int qesd_init_out (HWVoiceOut *hw, struct audsettings *as)
     case AUD_FMT_S32:
     case AUD_FMT_U32:
         dolog ("Will use 16 instead of 32 bit samples\n");
-
+        /* fall through */
     case AUD_FMT_S16:
     case AUD_FMT_U16:
     deffmt: