ASoC: Fix fall-through annotations
Subsystems (6)
cover ASoC: Fix fall-through annotations
Hi,
this is a patch set to add / fix the "fall through" annotations to be compliant with gcc's -Wimplicit-fallthrough option.
Takashi
===
Takashi Iwai (5):
ASoC: adau1761: Use the standard fall-through annotation
ASoC: pcm186x: Use the standard fall-through annotation
ASoC: rt274: Add fall-through annotations
ASoC: intel: skylake: Add fall-through annotation
ASoC: topology: Use the standard fall-through annotations
sound/soc/codecs/adau1761.c | 3 ++- sound/soc/codecs/pcm186x.c | 3 ++- sound/soc/codecs/rt274.c | 2 ++ sound/soc/intel/skylake/skl-pcm.c | 1 + sound/soc/soc-topology.c | 4 ++-- 5 files changed, 9 insertions(+), 4 deletions(-)
Signature · 1 line
2.18.0
PATCH 1/5 ASoC: adau1761: Use the standard fall-through annotation
As a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, replace with the standard "fall through" annotation at the right place. It has to be put right before the next label.
--- sound/soc/codecs/adau1761.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/adau1761.c +2 -1
@@ -518,7 +518,8 @@ static int adau1761_setup_digmic_jackdetect(struct snd_soc_component *component) ARRAY_SIZE(adau1761_jack_detect_controls));if (ret)return ret; -case ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE :/* fallthrough */ +/* fall through */ +case ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE : ret =snd_soc_dapm_add_routes (dapm, adau1761_no_dmic_routes,ARRAY_SIZE (adau1761_no_dmic_routes));if (ret)
Signature · 1 line
2.18.0
Lars-Peter Clausen
maintainerRe: [PATCH 1/5] ASoC: adau1761: Use the standard fall-through annotation
Quoted 5 lines · Takashi Iwai
As a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, replace with the standard "fall through" annotation at the right place. It has to be put right before the next label.
Signed-off-by Takashi Iwai <[email protected]>
Looks good, but somebody else already sent the same awhile ago. I'm not sure, maybe it did not get picked up:
https://patchwork.kernel.org/patch/10560465/?
Quoted 19 lines
--- sound/soc/codecs/adau1761.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)sound/soc/codecs/adau1761.c +2
-1@@ -518,7 +518,8 @@ static int adau1761_setup_digmic_jackdetect(struct snd_soc_component *component) ARRAY_SIZE(adau1761_jack_detect_controls));if (ret)return ret; -case ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE :/* fallthrough */ +/* fall through */ +case ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE : ret =snd_soc_dapm_add_routes (dapm, adau1761_no_dmic_routes,ARRAY_SIZE (adau1761_no_dmic_routes));if (ret)
Re: [PATCH 1/5] ASoC: adau1761: Use the standard fall-through annotation
Quoted 11 lines · Lars-Peter Clausen
Quoted 5 lines · Takashi Iwai
As a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, replace with the standard "fall through" annotation at the right place. It has to be put right before the next label.
Signed-off-by Takashi Iwai <[email protected]>Looks good, but somebody else already sent the same awhile ago. I'm not sure, maybe it did not get picked up:
https://patchwork.kernel.org/patch/10560465/?
Yeah, seems to have slipped from Mark's hands.
I don't mind which patch is taken, of course.
thanks,
Takashi
Quoted 21 lines
Quoted 20 lines
--- sound/soc/codecs/adau1761.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)sound/soc/codecs/adau1761.c +2
-1@@ -518,7 +518,8 @@ static int adau1761_setup_digmic_jackdetect(struct snd_soc_component *component) ARRAY_SIZE(adau1761_jack_detect_controls));if (ret)return ret; -case ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE :/* fallthrough */ +/* fall through */ +case ADAU1761_DIGMIC_JACKDET_PIN_MODE_NONE : ret =snd_soc_dapm_add_routes (dapm, adau1761_no_dmic_routes,ARRAY_SIZE (adau1761_no_dmic_routes));if (ret)
Mark Brown
maintainerRe: [PATCH 1/5] ASoC: adau1761: Use the standard fall-through annotation
Quoted 7 lines · Takashi Iwai
Quoted 5 lines · Lars-Peter Clausen
Quoted 3 lines · Takashi Iwai
As a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, replace with the standard "fall through" annotation at the right place. It has to be put right before the next label.
Quoted 7 lines
Quoted 3 lines
Looks good, but somebody else already sent the same awhile ago. I'm not sure, maybe it did not get picked up:
https://patchwork.kernel.org/patch/10560465/?Yeah, seems to have slipped from Mark's hands.
I don't mind which patch is taken, of course.
IIRC I had a query about it as it was part of a series that had some oversights.
PATCH 2/5 ASoC: pcm186x: Use the standard fall-through annotation
In reply to Takashi IwaiAs a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, replace with the standard "fall through" annotation. Unfortunately gcc doesn't understand the mixed comment lines.
--- sound/soc/codecs/pcm186x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/pcm186x.c +2 -1
@@ -401,7 +401,8 @@ static int pcm186x_set_fmt(struct snd_soc_dai *dai, unsigned int format)break ;case SND_SOC_DAIFMT_DSP_A : priv->tdm_offset +=1 ; -/* Fall through... DSP_A uses the same basic config as DSP_B +/* fall through */ +/* DSP_A uses the same basic config as DSP_B * except we need to shift the TDM output by one BCK cycle */ case SND_SOC_DAIFMT_DSP_B :
Signature · 1 line
2.18.0
Mark Brown
maintainerApplied "ASoC: pcm186x: Use the standard fall-through annotation" to the asoc tree
The patch
ASoC: pcm186x: Use the standard fall-through annotation
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
641f7f2195735b4fe93b541ea3a792fe4fee2415Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Thu, 4 Oct 2018 20:30:03 +0200
Subject: [PATCH] ASoC: pcm186x: Use the standard fall-through annotation
As a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, replace with the standard "fall through" annotation. Unfortunately gcc doesn't understand the mixed comment lines.
--- sound/soc/codecs/pcm186x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/codecs/pcm186x.c +2 -1
@@ -401,7 +401,8 @@ static int pcm186x_set_fmt(struct snd_soc_dai *dai, unsigned int format)break ;case SND_SOC_DAIFMT_DSP_A : priv->tdm_offset +=1 ; -/* Fall through... DSP_A uses the same basic config as DSP_B +/* fall through */ +/* DSP_A uses the same basic config as DSP_B * except we need to shift the TDM output by one BCK cycle */ case SND_SOC_DAIFMT_DSP_B :
Signature · 1 line
2.19.0.rc2
PATCH 3/5 ASoC: rt274: Add fall-through annotations
In reply to Takashi IwaiAs a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, add the "fall through" annotations in rt274 driver.
--- sound/soc/codecs/rt274.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/rt274.c +2 -0
@@ -755,6 +755,7 @@ static int rt274_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,break ;default :dev_warn (component->dev,"invalid pll source, use BCLK\n" ); +/* fall through */ case RT274_PLL2_S_BCLK :snd_soc_component_update_bits (component,RT274_PLL2_CTRL ,RT274_PLL2_SRC_MASK ,RT274_PLL2_SRC_BCLK );
@@ -782,6 +783,7 @@ static int rt274_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,break ;default :dev_warn (component->dev,"invalid freq_in, assume 4.8M\n" ); +/* fall through */ case 100 :snd_soc_component_write (component,0x7a ,0xaab6 );snd_soc_component_write (component,0x7b ,0x0301 );
Signature · 1 line
2.18.0
Mark Brown
maintainerApplied "ASoC: rt274: Add fall-through annotations" to the asoc tree
The patch
ASoC: rt274: Add fall-through annotations
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
0beeb4baf56bd9deb920712a4034541fb33bbbe0Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Thu, 4 Oct 2018 20:30:04 +0200
Subject: [PATCH] ASoC: rt274: Add fall-through annotations
As a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, add the "fall through" annotations in rt274 driver.
--- sound/soc/codecs/rt274.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/rt274.c +2 -0
@@ -755,6 +755,7 @@ static int rt274_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,break ;default :dev_warn (component->dev,"invalid pll source, use BCLK\n" ); +/* fall through */ case RT274_PLL2_S_BCLK :snd_soc_component_update_bits (component,RT274_PLL2_CTRL ,RT274_PLL2_SRC_MASK ,RT274_PLL2_SRC_BCLK );
@@ -782,6 +783,7 @@ static int rt274_set_dai_pll(struct snd_soc_dai *dai, int pll_id, int source,break ;default :dev_warn (component->dev,"invalid freq_in, assume 4.8M\n" ); +/* fall through */ case 100 :snd_soc_component_write (component,0x7a ,0xaab6 );snd_soc_component_write (component,0x7b ,0x0301 );
Signature · 1 line
2.19.0.rc2
PATCH 4/5 ASoC: intel: skylake: Add fall-through annotation
In reply to Takashi IwaiAs a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, add the "fall through" annotation in Intel SST skylake driver.
--- sound/soc/intel/skylake/skl-pcm.c | 1 + 1 file changed, 1 insertion(+)
sound/soc/intel/skylake/skl-pcm.c +1 -0
@@ -494,6 +494,7 @@ static int skl_pcm_trigger(struct snd_pcm_substream *substream, int cmd, stream->lpib);snd_hdac_ext_stream_set_lpib (stream, stream->lpib); } +/* fall through */ case SNDRV_PCM_TRIGGER_START :case SNDRV_PCM_TRIGGER_PAUSE_RELEASE :
Signature · 1 line
2.18.0
PATCH 5/5 ASoC: topology: Use the standard fall-through annotations
In reply to Takashi IwaiAs a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, replace with the standard "fall through" annotation. gcc can't understand the mixed texts, unfortunately.
--- sound/soc/soc-topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-topology.c +2 -2
@@ -993,7 +993,7 @@ static int soc_tplg_denum_create(struct soc_tplg *tplg, unsigned int count,kfree (se);continue ; } -/* fall through and create texts */ +/* fall through */ case SND_SOC_TPLG_CTL_ENUM :case SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE :case SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT :
@@ -1310,7 +1310,7 @@ static struct snd_kcontrol_new *soc_tplg_dapm_widget_denum_create( ec->hdr.name); goto err_se; } -/* fall through to create texts */ +/* fall through */ case SND_SOC_TPLG_CTL_ENUM :case SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE :case SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT :
Signature · 1 line
2.18.0
Mark Brown
maintainerApplied "ASoC: topology: Use the standard fall-through annotations" to the asoc tree
The patch
ASoC: topology: Use the standard fall-through annotations
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
9c6c4d961e634413add345ee030e108e6d19cea2Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Thu, 4 Oct 2018 20:30:06 +0200
Subject: [PATCH] ASoC: topology: Use the standard fall-through annotations
As a preparatory patch for the upcoming -Wimplicit-fallthrough compiler checks, replace with the standard "fall through" annotation. gcc can't understand the mixed texts, unfortunately.
--- sound/soc/soc-topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-topology.c +2 -2
@@ -993,7 +993,7 @@ static int soc_tplg_denum_create(struct soc_tplg *tplg, unsigned int count,kfree (se);continue ; } -/* fall through and create texts */ +/* fall through */ case SND_SOC_TPLG_CTL_ENUM :case SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE :case SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT :
@@ -1310,7 +1310,7 @@ static struct snd_kcontrol_new *soc_tplg_dapm_widget_denum_create( ec->hdr.name); goto err_se; } -/* fall through to create texts */ +/* fall through */ case SND_SOC_TPLG_CTL_ENUM :case SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE :case SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT :
Signature · 1 line
2.19.0.rc2