audio-kernel: Compilation fixes with "Break" and "fallthrough"

Compilation fixes with "Break" and "fallthrough".

Change-Id: Ica05d0410efc5e9dc52addcf4cd8c0253f49fada
This commit is contained in:
Yuhui Zhao
2022-07-21 13:54:52 +08:00
committed by Gerrit - the friendly Code Review server
parent ee00c83a92
commit 1dacaf014f
4 changed files with 8 additions and 2 deletions

View File

@@ -784,6 +784,7 @@ static int lpass_cdc_wsa2_macro_hw_params(struct snd_pcm_substream *substream,
case SNDRV_PCM_STREAM_CAPTURE:
if (dai->id == LPASS_CDC_WSA2_MACRO_AIF_VI)
wsa2_priv->pcm_rate_vi = params_rate(params);
switch (params_width(params)) {
case 16:
wsa2_priv->bit_width[dai->id] = 16;
@@ -798,7 +799,8 @@ static int lpass_cdc_wsa2_macro_hw_params(struct snd_pcm_substream *substream,
dev_err_ratelimited(component->dev, "%s: Invalid format 0x%x\n",
__func__, params_width(params));
return -EINVAL;
}
}
break;
default:
break;
}
@@ -1425,6 +1427,7 @@ static int lpass_cdc_wsa2_macro_config_compander(struct snd_soc_component *compo
case EXT_3S:
upper_gain = sys_gain_int;
lower_gain = 75;
break;
case EXT_ABOVE_3S:
upper_gain = sys_gain_int;
lower_gain = 120;