提交 b4bd0b16 编写于 作者: S Stefan Weil 提交者: malc

audio: Add some fall through comments

Static code analysers expect these comments for case statements without
a break statement.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: Nmalc <av1474@comtv.ru>
上级 cdf84806
...@@ -585,17 +585,20 @@ static int audio_pcm_info_eq (struct audio_pcm_info *info, struct audsettings *a ...@@ -585,17 +585,20 @@ static int audio_pcm_info_eq (struct audio_pcm_info *info, struct audsettings *a
switch (as->fmt) { switch (as->fmt) {
case AUD_FMT_S8: case AUD_FMT_S8:
sign = 1; sign = 1;
/* fall through */
case AUD_FMT_U8: case AUD_FMT_U8:
break; break;
case AUD_FMT_S16: case AUD_FMT_S16:
sign = 1; sign = 1;
/* fall through */
case AUD_FMT_U16: case AUD_FMT_U16:
bits = 16; bits = 16;
break; break;
case AUD_FMT_S32: case AUD_FMT_S32:
sign = 1; sign = 1;
/* fall through */
case AUD_FMT_U32: case AUD_FMT_U32:
bits = 32; bits = 32;
break; break;
......
...@@ -201,7 +201,7 @@ static int qesd_init_out (HWVoiceOut *hw, struct audsettings *as) ...@@ -201,7 +201,7 @@ static int qesd_init_out (HWVoiceOut *hw, struct audsettings *as)
case AUD_FMT_S32: case AUD_FMT_S32:
case AUD_FMT_U32: case AUD_FMT_U32:
dolog ("Will use 16 instead of 32 bit samples\n"); dolog ("Will use 16 instead of 32 bit samples\n");
/* fall through */
case AUD_FMT_S16: case AUD_FMT_S16:
case AUD_FMT_U16: case AUD_FMT_U16:
deffmt: deffmt:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册