Skip to content
Snippets Groups Projects
Commit e1f30bbd authored by Jason Liu's avatar Jason Liu
Browse files

MLK-20589 sound:soc:codecs:ak4458: Don't mixed declarations and code


The patch fixes the following build warnings:

sound/soc/codecs/ak4458.c: In function ‘ak4458_hw_params’:
warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  u8 dfs1, dfs2;
 ^~~

Signed-off-by: default avatarJason Liu <jason.hui.liu@nxp.com>
CC: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: default avatarShengjiu Wang <shengjiu.wang@nxp.com>
parent 55909fa9
No related branches found
No related tags found
No related merge requests found
...@@ -656,14 +656,14 @@ static int ak4458_hw_params(struct snd_pcm_substream *substream, ...@@ -656,14 +656,14 @@ static int ak4458_hw_params(struct snd_pcm_substream *substream,
int ret, dsd_bclk, channels, channels_max; int ret, dsd_bclk, channels, channels_max;
bool is_dsd = false; bool is_dsd = false;
channels = params_channels(params);
channels_max = dai->driver->playback.channels_max;
#ifdef AK4458_ACKS_USE_MANUAL_MODE #ifdef AK4458_ACKS_USE_MANUAL_MODE
u8 dfs1, dfs2; u8 dfs1, dfs2;
#endif #endif
int nfs1; int nfs1;
channels = params_channels(params);
channels_max = dai->driver->playback.channels_max;
dev_dbg(dai->dev, "%s(%d)\n", __func__, __LINE__); dev_dbg(dai->dev, "%s(%d)\n", __func__, __LINE__);
switch (params_format(params)) { switch (params_format(params)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment