Commit b4bd0b16 authored by Stefan Weil's avatar Stefan Weil Committed by malc
Browse files

audio: Add some fall through comments



Static code analysers expect these comments for case statements without
a break statement.

Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarmalc <av1474@comtv.ru>
parent cdf84806
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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: