ASoC: Intel: remove compilation/static analysis warnings
Subsystems (3)
cover ASoC: Intel: remove compilation/static analysis warnings
More trivial fixes for Intel machine drivers in my quixotic quest for zero warnings. None of them are critical but they generate noise that prevents developers from using those tools to detect real issues.
Pierre-Louis Bossart (18):
ASoC: Intel: bxt_da7219_max98357a: rename shadowed variable
ASoC: Intel: bxt_rt298: rename shadowed variable
ASoC: Intel: glk_rt5682_max98357a: rename shadowed variable
ASoC: Intel: glk_rt5682_max98357a: removed unused variables
ASoC: Intel: kbl_da7219_max98357a: rename shadowed variable
ASoC: Intel: kbl_da7219_max98927: test return value on route add
ASoC: Intel: kbl_da7219_max98927: rename shadowed variable
ASoC: Intel: kbl_da7219_max98927: remove unnecessary initialization
ASoC: Intel: kbl_rt5660: rename shadowed variable
ASoC: Intel: kbl_rt5663_max98927: rename shadowed variable
ASoC: Intel: kbl_rt5663_rt5514_max98927: rename shadowed variable
ASOC: Intel: kbl_rt5663_rt5514_max98927: remove useless initialization
ASoC: Intel: skl_nau88l25_max98357a: rename shadowed variable
ASoC: Intel: skl_nau88l25_ssm4567: rename shadowed variable
ASoC: Intel: skl_rt286: rename shadowed variable
ASoC: Intel: bytcht_es8316: removed unused variable
ASoC: Intel: bytcr_rt5640: remove unused variable
ASoC: Intel: bytcr_rt5651: remove unused variable
sound/soc/intel/boards/bxt_da7219_max98357a.c | 10 +++++----- sound/soc/intel/boards/bxt_rt298.c | 8 ++++---- sound/soc/intel/boards/bytcht_es8316.c | 8 -------- sound/soc/intel/boards/bytcr_rt5640.c | 8 -------- sound/soc/intel/boards/bytcr_rt5651.c | 8 -------- sound/soc/intel/boards/glk_rt5682_max98357a.c | 18 ++++-------------- sound/soc/intel/boards/kbl_da7219_max98357a.c | 10 +++++----- sound/soc/intel/boards/kbl_da7219_max98927.c | 19 +++++++++++-------- sound/soc/intel/boards/kbl_rt5660.c | 4 ++-- sound/soc/intel/boards/kbl_rt5663_max98927.c | 10 +++++----- .../intel/boards/kbl_rt5663_rt5514_max98927.c | 10 +++++----- .../soc/intel/boards/skl_nau88l25_max98357a.c | 10 +++++----- sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 10 +++++----- sound/soc/intel/boards/skl_rt286.c | 10 +++++----- 14 files changed, 56 insertions(+), 87 deletions(-)
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 1/18 ASoC: Intel: bxt_da7219_max98357a: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/bxt_da7219_max98357a.c:265] -> [sound/soc/intel/boards/bxt_da7219_max98357a.c:164]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/bxt_da7219_max98357a.c:265] -> [sound/soc/intel/boards/bxt_da7219_max98357a.c:316]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/bxt_da7219_max98357a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/bxt_da7219_max98357a.c +5 -5
@@ -161,13 +161,13 @@ static int broxton_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP to 24 bit */ snd_mask_none (fmt);
@@ -313,12 +313,12 @@ static const struct snd_soc_ops broxton_da7219_fe_ops = {static int broxton_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: bxt_da7219_max98357a: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: bxt_da7219_max98357a: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 01bfee0d1d945a24061b12b8a9268365fceef518 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:11 -0600
Subject: [PATCH] ASoC: Intel: bxt_da7219_max98357a: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/bxt_da7219_max98357a.c:265] -> [sound/soc/intel/boards/bxt_da7219_max98357a.c:164]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/bxt_da7219_max98357a.c:265] -> [sound/soc/intel/boards/bxt_da7219_max98357a.c:316]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/bxt_da7219_max98357a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/bxt_da7219_max98357a.c +5 -5
@@ -161,13 +161,13 @@ static int broxton_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP to 24 bit */ snd_mask_none (fmt);
@@ -313,12 +313,12 @@ static const struct snd_soc_ops broxton_da7219_fe_ops = {static int broxton_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 2/18 ASoC: Intel: bxt_rt298: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/bxt_rt298.c:291] -> [sound/soc/intel/boards/bxt_rt298.c:209]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/bxt_rt298.c:291] -> [sound/soc/intel/boards/bxt_rt298.c:258]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/bxt_rt298.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/intel/boards/bxt_rt298.c +4 -4
@@ -206,13 +206,13 @@ static int broxton_ssp5_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will covert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;/* set SSP5 to 24 bit */ snd_mask_none (fmt);
@@ -255,9 +255,9 @@ static const struct snd_pcm_hw_constraint_list constraints_rates = {static int broxton_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS ); - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: bxt_rt298: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: bxt_rt298: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From c1b765362bf8c2dc8bde93613f25d97a772709fa Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:12 -0600
Subject: [PATCH] ASoC: Intel: bxt_rt298: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/bxt_rt298.c:291] -> [sound/soc/intel/boards/bxt_rt298.c:209]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/bxt_rt298.c:291] -> [sound/soc/intel/boards/bxt_rt298.c:258]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/bxt_rt298.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/intel/boards/bxt_rt298.c +4 -4
@@ -206,13 +206,13 @@ static int broxton_ssp5_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will covert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;/* set SSP5 to 24 bit */ snd_mask_none (fmt);
@@ -255,9 +255,9 @@ static const struct snd_pcm_hw_constraint_list constraints_rates = {static int broxton_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS ); - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 3/18 ASoC: Intel: glk_rt5682_max98357a: rename shadowed variable
In reply to Pierre-Louis Bossart[sound/soc/intel/boards/glk_rt5682_max98357a.c:252] -> [sound/soc/intel/boards/glk_rt5682_max98357a.c:121]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/glk_rt5682_max98357a.c:252] -> [sound/soc/intel/boards/glk_rt5682_max98357a.c:275]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +4 -4
@@ -118,13 +118,13 @@ static int geminilake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP to 24 bit */ snd_mask_none (fmt);
@@ -272,13 +272,13 @@ static struct snd_pcm_hw_constraint_list constraints_channels_quad = {static int geminilake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );/* * set BE channel constraint as user FE channels */ - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: glk_rt5682_max98357a: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: glk_rt5682_max98357a: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 83fa677581daddd301b4f0337a0643fef7746689 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:13 -0600
Subject: [PATCH] ASoC: Intel: glk_rt5682_max98357a: rename shadowed variable
[sound/soc/intel/boards/glk_rt5682_max98357a.c:252] -> [sound/soc/intel/boards/glk_rt5682_max98357a.c:121]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/glk_rt5682_max98357a.c:252] -> [sound/soc/intel/boards/glk_rt5682_max98357a.c:275]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +4 -4
@@ -118,13 +118,13 @@ static int geminilake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP to 24 bit */ snd_mask_none (fmt);
@@ -272,13 +272,13 @@ static struct snd_pcm_hw_constraint_list constraints_channels_quad = {static int geminilake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );/* * set BE channel constraint as user FE channels */ - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 4/18 ASoC: Intel: glk_rt5682_max98357a: removed unused variables
In reply to Pierre-Louis BossartFix GCC warning with W=1
sound/soc/intel/boards/glk_rt5682_max98357a.c:256:48: warning:
‘constraints_channels’ defined but not used [-Wunused-const-variable=]
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 10 ---------- 1 file changed, 10 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +0 -10
@@ -249,16 +249,6 @@ static const struct snd_pcm_hw_constraint_list constraints_rates = { .mask = 0, }; -static const unsigned int channels[] = { -DUAL_CHANNEL , -}; - -static const struct snd_pcm_hw_constraint_list constraints_channels = { - .count =ARRAY_SIZE (channels), - .list = channels, - .mask =0 , -}; -static unsigned int channels_quad[] = {QUAD_CHANNEL , };
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: glk_rt5682_max98357a: removed unused variables" to the asoc tree
The patch
ASoC: Intel: glk_rt5682_max98357a: removed unused variables
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 988b414775fe34278b1ca898f0b3a607eb49986b Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:14 -0600
Subject: [PATCH] ASoC: Intel: glk_rt5682_max98357a: removed unused variables
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fix GCC warning with W=1
sound/soc/intel/boards/glk_rt5682_max98357a.c:256:48: warning:
‘constraints_channels’ defined but not used [-Wunused-const-variable=]
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 10 ---------- 1 file changed, 10 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +0 -10
@@ -249,16 +249,6 @@ static const struct snd_pcm_hw_constraint_list constraints_rates = { .mask = 0, }; -static const unsigned int channels[] = { -DUAL_CHANNEL , -}; - -static const struct snd_pcm_hw_constraint_list constraints_channels = { - .count =ARRAY_SIZE (channels), - .list = channels, - .mask =0 , -}; -static unsigned int channels_quad[] = {QUAD_CHANNEL , };
Signature · 1 line
2.20.1
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 5/18 ASoC: Intel: kbl_da7219_max98357a: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/kbl_da7219_max98357a.c:257] -> [sound/soc/intel/boards/kbl_da7219_max98357a.c:144]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/kbl_da7219_max98357a.c:257] -> [sound/soc/intel/boards/kbl_da7219_max98357a.c:308]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_da7219_max98357a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/kbl_da7219_max98357a.c +5 -5
@@ -141,13 +141,13 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP to 24 bit */ snd_mask_none (fmt);
@@ -305,7 +305,7 @@ static const struct snd_soc_ops kabylake_da7219_fe_ops = {static int kabylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );/*
@@ -313,9 +313,9 @@ static int kabylake_dmic_fixup(struct snd_soc_pcm_runtime *rtd,*/ if (params_channels (params) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: kbl_da7219_max98357a: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: kbl_da7219_max98357a: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 2e539cf72a349bb593718f7f500c96dcfc23d911 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:15 -0600
Subject: [PATCH] ASoC: Intel: kbl_da7219_max98357a: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/kbl_da7219_max98357a.c:257] -> [sound/soc/intel/boards/kbl_da7219_max98357a.c:144]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/kbl_da7219_max98357a.c:257] -> [sound/soc/intel/boards/kbl_da7219_max98357a.c:308]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_da7219_max98357a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/kbl_da7219_max98357a.c +5 -5
@@ -141,13 +141,13 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP to 24 bit */ snd_mask_none (fmt);
@@ -305,7 +305,7 @@ static const struct snd_soc_ops kabylake_da7219_fe_ops = {static int kabylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );/*
@@ -313,9 +313,9 @@ static int kabylake_dmic_fixup(struct snd_soc_pcm_runtime *rtd,*/ if (params_channels (params) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 6/18 ASoC: Intel: kbl_da7219_max98927: test return value on route add
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/kbl_da7219_max98927.c:340] -> [sound/soc/intel/boards/kbl_da7219_max98927.c:348]: (style) Variable 'ret' is reassigned a value before the old one has been used.
--- sound/soc/intel/boards/kbl_da7219_max98927.c | 3 +++ 1 file changed, 3 insertions(+)
sound/soc/intel/boards/kbl_da7219_max98927.c +3 -0
@@ -341,6 +341,9 @@ static int kabylake_da7219_codec_init(struct snd_soc_pcm_runtime *rtd) kabylake_ssp1_map, ARRAY_SIZE(kabylake_ssp1_map)); +if (ret) +return ret; +/* * Headset buttons map to the google Reference headset. * These can be configured by userspace.
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: kbl_da7219_max98927: test return value on route add" to the asoc tree
The patch
ASoC: Intel: kbl_da7219_max98927: test return value on route add
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 2b66c70fbe64c8fd47abd62e601f2405c7810f04 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:16 -0600
Subject: [PATCH] ASoC: Intel: kbl_da7219_max98927: test return value on route
add
Fix cppcheck warning:
[sound/soc/intel/boards/kbl_da7219_max98927.c:340] -> [sound/soc/intel/boards/kbl_da7219_max98927.c:348]: (style) Variable 'ret' is reassigned a value before the old one has been used.
--- sound/soc/intel/boards/kbl_da7219_max98927.c | 3 +++ 1 file changed, 3 insertions(+)
sound/soc/intel/boards/kbl_da7219_max98927.c +3 -0
@@ -341,6 +341,9 @@ static int kabylake_da7219_codec_init(struct snd_soc_pcm_runtime *rtd) kabylake_ssp1_map, ARRAY_SIZE(kabylake_ssp1_map)); +if (ret) +return ret; +/* * Headset buttons map to the google Reference headset. * These can be configured by userspace.
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 7/18 ASoC: Intel: kbl_da7219_max98927: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/kbl_da7219_max98927.c:432] -> [sound/soc/intel/boards/kbl_da7219_max98927.c:282]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/kbl_da7219_max98927.c:432] -> [sound/soc/intel/boards/kbl_da7219_max98927.c:494]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_da7219_max98927.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
sound/soc/intel/boards/kbl_da7219_max98927.c +6 -6
@@ -279,7 +279,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT ); struct snd_soc_dpcm *dpcm = container_of(
@@ -298,7 +298,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, !strcmp(rtd->card->name, "kblmax98373")) {/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP to 24 bit */ snd_mask_none (fmt);
@@ -313,7 +313,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, !strcmp(fe_dai_link->name, "Kbl Audio Headset Playback") || !strcmp(fe_dai_link->name, "Kbl Audio Capture Port")) { rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;snd_mask_none (fmt);snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }
@@ -494,7 +494,7 @@ static const struct snd_soc_ops kabylake_da7219_fe_ops = {static int kabylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );/*
@@ -502,9 +502,9 @@ static int kabylake_dmic_fixup(struct snd_soc_pcm_runtime *rtd,*/ if (params_channels (params) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: kbl_da7219_max98927: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: kbl_da7219_max98927: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 1a29c760663624b0160c0143819c70db99343904 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:17 -0600
Subject: [PATCH] ASoC: Intel: kbl_da7219_max98927: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/kbl_da7219_max98927.c:432] -> [sound/soc/intel/boards/kbl_da7219_max98927.c:282]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/kbl_da7219_max98927.c:432] -> [sound/soc/intel/boards/kbl_da7219_max98927.c:494]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_da7219_max98927.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
sound/soc/intel/boards/kbl_da7219_max98927.c +6 -6
@@ -279,7 +279,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT ); struct snd_soc_dpcm *dpcm = container_of(
@@ -298,7 +298,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, !strcmp(rtd->card->name, "kblmax98373")) {/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP to 24 bit */ snd_mask_none (fmt);
@@ -313,7 +313,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, !strcmp(fe_dai_link->name, "Kbl Audio Headset Playback") || !strcmp(fe_dai_link->name, "Kbl Audio Capture Port")) { rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;snd_mask_none (fmt);snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }
@@ -494,7 +494,7 @@ static const struct snd_soc_ops kabylake_da7219_fe_ops = {static int kabylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );/*
@@ -502,9 +502,9 @@ static int kabylake_dmic_fixup(struct snd_soc_pcm_runtime *rtd,*/ if (params_channels (params) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 8/18 ASoC: Intel: kbl_da7219_max98927: remove unnecessary initialization
In reply to Pierre-Louis BossartFix cppcheck warning
[sound/soc/intel/boards/kbl_da7219_max98927.c:179]: (style) Variable 'ret' is assigned a value that is never used.
[sound/soc/intel/boards/kbl_da7219_max98927.c:1098]: (style) Variable 'i' is assigned a value that is never used.
--- sound/soc/intel/boards/kbl_da7219_max98927.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/boards/kbl_da7219_max98927.c +2 -2
@@ -176,7 +176,7 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) {struct snd_soc_pcm_runtime *runtime = substream->private_data; -int ret =0 , j; +int ret, j;for (j =0 ; j < runtime->num_codecs; j++) {struct snd_soc_dai *codec_dai = runtime->codec_dais[j];
@@ -1095,7 +1095,7 @@ static int kabylake_audio_probe(struct platform_device *pdev)struct kbl_codec_private *ctx;struct snd_soc_dai_link *kbl_dai_link;struct snd_soc_dai_link_component **codecs; -int i =0 ; +int i; ctx =devm_kzalloc (&pdev->dev,sizeof (*ctx),GFP_KERNEL );if (!ctx)
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: kbl_da7219_max98927: remove unnecessary initialization" to the asoc tree
The patch
ASoC: Intel: kbl_da7219_max98927: remove unnecessary initialization
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 379336e30ff728c1c06e818ff4427dfe053f2102 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:18 -0600
Subject: [PATCH] ASoC: Intel: kbl_da7219_max98927: remove unnecessary
initialization
Fix cppcheck warning
[sound/soc/intel/boards/kbl_da7219_max98927.c:179]: (style) Variable 'ret' is assigned a value that is never used.
[sound/soc/intel/boards/kbl_da7219_max98927.c:1098]: (style) Variable 'i' is assigned a value that is never used.
--- sound/soc/intel/boards/kbl_da7219_max98927.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/boards/kbl_da7219_max98927.c +2 -2
@@ -176,7 +176,7 @@ static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) {struct snd_soc_pcm_runtime *runtime = substream->private_data; -int ret =0 , j; +int ret, j;for (j =0 ; j < runtime->num_codecs; j++) {struct snd_soc_dai *codec_dai = runtime->codec_dais[j];
@@ -1095,7 +1095,7 @@ static int kabylake_audio_probe(struct platform_device *pdev)struct kbl_codec_private *ctx;struct snd_soc_dai_link *kbl_dai_link;struct snd_soc_dai_link_component **codecs; -int i =0 ; +int i; ctx =devm_kzalloc (&pdev->dev,sizeof (*ctx),GFP_KERNEL );if (!ctx)
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 9/18 ASoC: Intel: kbl_rt5660: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/kbl_rt5660.c:282] -> [sound/soc/intel/boards/kbl_rt5660.c:141]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_rt5660.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/boards/kbl_rt5660.c +2 -2
@@ -138,13 +138,13 @@ static int kabylake_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP0 to 24 bit */ snd_mask_none (fmt);
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: kbl_rt5660: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: kbl_rt5660: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 74e7c6b0030c36a9e9e3c8da4d3b08160b5dda4d Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:19 -0600
Subject: [PATCH] ASoC: Intel: kbl_rt5660: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/kbl_rt5660.c:282] -> [sound/soc/intel/boards/kbl_rt5660.c:141]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_rt5660.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/boards/kbl_rt5660.c +2 -2
@@ -138,13 +138,13 @@ static int kabylake_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will convert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =DUAL_CHANNEL ; + chan->min = chan->max =DUAL_CHANNEL ;/* set SSP0 to 24 bit */ snd_mask_none (fmt);
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 10/18 ASoC: Intel: kbl_rt5663_max98927: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/kbl_rt5663_max98927.c:358] -> [sound/soc/intel/boards/kbl_rt5663_max98927.c:401]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/kbl_rt5663_max98927.c:358] -> [sound/soc/intel/boards/kbl_rt5663_max98927.c:457]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_rt5663_max98927.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/kbl_rt5663_max98927.c +5 -5
@@ -398,7 +398,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT ); struct snd_soc_dpcm *dpcm = container_of(
@@ -413,7 +413,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, !strcmp(fe_dai_link->name, "Kbl Audio Headset Playback") || !strcmp(fe_dai_link->name, "Kbl Audio Capture Port")) { rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;snd_mask_none (fmt);snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }
@@ -454,13 +454,13 @@ static struct snd_soc_ops kabylake_rt5663_ops = {static int kabylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ||DMIC_CH (dmic_constraints) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: kbl_rt5663_max98927: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: kbl_rt5663_max98927: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 13a5d5edcf0607ec1584b2c05b1bf3e6600f6533 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:20 -0600
Subject: [PATCH] ASoC: Intel: kbl_rt5663_max98927: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/kbl_rt5663_max98927.c:358] -> [sound/soc/intel/boards/kbl_rt5663_max98927.c:401]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/kbl_rt5663_max98927.c:358] -> [sound/soc/intel/boards/kbl_rt5663_max98927.c:457]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_rt5663_max98927.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/kbl_rt5663_max98927.c +5 -5
@@ -398,7 +398,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT ); struct snd_soc_dpcm *dpcm = container_of(
@@ -413,7 +413,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, !strcmp(fe_dai_link->name, "Kbl Audio Headset Playback") || !strcmp(fe_dai_link->name, "Kbl Audio Capture Port")) { rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;snd_mask_none (fmt);snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }
@@ -454,13 +454,13 @@ static struct snd_soc_ops kabylake_rt5663_ops = {static int kabylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ||DMIC_CH (dmic_constraints) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 11/18 ASoC: Intel: kbl_rt5663_rt5514_max98927: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c:293] -> [sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c:336]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c +4 -4
@@ -333,7 +333,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT ); struct snd_soc_dpcm *dpcm = container_of(
@@ -348,15 +348,15 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, !strcmp (fe_dai_link->name,"Kbl Audio Headset Playback" ) || !strcmp(fe_dai_link->name, "Kbl Audio Capture Port")) { rate->min = rate->max = 48000; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;snd_mask_none (fmt);snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); } else if (!strcmp(fe_dai_link->name, "Kbl Audio DMIC cap")) {if (params_channels (params) ==2 ||DMIC_CH (dmic_constraints) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ; }/* * The speaker on the SSP0 supports S16_LE and not S24_LE.
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: kbl_rt5663_rt5514_max98927: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: kbl_rt5663_rt5514_max98927: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 1157613863e0ec8ef9b5f8840b88e78ae13db5d7 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:21 -0600
Subject: [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: rename shadowed
variable
Fix cppcheck warning:
[sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c:293] -> [sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c:336]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c +4 -4
@@ -333,7 +333,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT ); struct snd_soc_dpcm *dpcm = container_of(
@@ -348,15 +348,15 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, !strcmp (fe_dai_link->name,"Kbl Audio Headset Playback" ) || !strcmp(fe_dai_link->name, "Kbl Audio Capture Port")) { rate->min = rate->max = 48000; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;snd_mask_none (fmt);snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); } else if (!strcmp(fe_dai_link->name, "Kbl Audio DMIC cap")) {if (params_channels (params) ==2 ||DMIC_CH (dmic_constraints) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ; }/* * The speaker on the SSP0 supports S16_LE and not S24_LE.
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 12/18 ASOC: Intel: kbl_rt5663_rt5514_max98927: remove useless initialization
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c:764]: (style) Variable 'ret' is assigned a value that is never used.
--- sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c +1 -1
@@ -761,7 +761,7 @@ static int kabylake_audio_probe(struct platform_device *pdev) {struct kbl_codec_private *ctx;struct snd_soc_acpi_mach *mach; -int ret =0 ; +int ret; ctx =devm_kzalloc (&pdev->dev,sizeof (*ctx),GFP_KERNEL );if (!ctx)
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASOC: Intel: kbl_rt5663_rt5514_max98927: remove useless initialization" to the asoc tree
The patch
ASOC: Intel: kbl_rt5663_rt5514_max98927: remove useless initialization
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 38e58021a950a108215107e22148dfe04a30728a Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:22 -0600
Subject: [PATCH] ASOC: Intel: kbl_rt5663_rt5514_max98927: remove useless
initialization
Fix cppcheck warning:
[sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c:764]: (style) Variable 'ret' is assigned a value that is never used.
--- sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c +1 -1
@@ -761,7 +761,7 @@ static int kabylake_audio_probe(struct platform_device *pdev) {struct kbl_codec_private *ctx;struct snd_soc_acpi_mach *mach; -int ret =0 ; +int ret; ctx =devm_kzalloc (&pdev->dev,sizeof (*ctx),GFP_KERNEL );if (!ctx)
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 13/18 ASoC: Intel: skl_nau88l25_max98357a: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/skl_nau88l25_max98357a.c:257] -> [sound/soc/intel/boards/skl_nau88l25_max98357a.c:142]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/skl_nau88l25_max98357a.c:257] -> [sound/soc/intel/boards/skl_nau88l25_max98357a.c:318]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/skl_nau88l25_max98357a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/skl_nau88l25_max98357a.c +5 -5
@@ -139,13 +139,13 @@ static int skylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will covert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;/* set SSP0 to 24 bit */ snd_mask_none (fmt);
@@ -315,13 +315,13 @@ static const struct snd_soc_ops skylake_nau8825_ops = {static int skylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ||DMIC_CH (dmic_constraints) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: skl_nau88l25_max98357a: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: skl_nau88l25_max98357a: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 119cc7841403d1f1889ce17358ed98de023bf387 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:23 -0600
Subject: [PATCH] ASoC: Intel: skl_nau88l25_max98357a: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/skl_nau88l25_max98357a.c:257] -> [sound/soc/intel/boards/skl_nau88l25_max98357a.c:142]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/skl_nau88l25_max98357a.c:257] -> [sound/soc/intel/boards/skl_nau88l25_max98357a.c:318]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/skl_nau88l25_max98357a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/skl_nau88l25_max98357a.c +5 -5
@@ -139,13 +139,13 @@ static int skylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will covert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;/* set SSP0 to 24 bit */ snd_mask_none (fmt);
@@ -315,13 +315,13 @@ static const struct snd_soc_ops skylake_nau8825_ops = {static int skylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ||DMIC_CH (dmic_constraints) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 14/18 ASoC: Intel: skl_nau88l25_ssm4567: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning
[sound/soc/intel/boards/skl_nau88l25_ssm4567.c:277] -> [sound/soc/intel/boards/skl_nau88l25_ssm4567.c:320]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/skl_nau88l25_ssm4567.c:277] -> [sound/soc/intel/boards/skl_nau88l25_ssm4567.c:337]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/skl_nau88l25_ssm4567.c +5 -5
@@ -317,13 +317,13 @@ static int skylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will covert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;/* set SSP0 to 24 bit */ snd_mask_none (fmt);
@@ -334,12 +334,12 @@ static int skylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,static int skylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ||DMIC_CH (dmic_constraints) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: skl_nau88l25_ssm4567: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: skl_nau88l25_ssm4567: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From ddce36afd59f7adb92dbbd3aa0eaab4bdcc6b530 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:24 -0600
Subject: [PATCH] ASoC: Intel: skl_nau88l25_ssm4567: rename shadowed variable
Fix cppcheck warning
[sound/soc/intel/boards/skl_nau88l25_ssm4567.c:277] -> [sound/soc/intel/boards/skl_nau88l25_ssm4567.c:320]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/skl_nau88l25_ssm4567.c:277] -> [sound/soc/intel/boards/skl_nau88l25_ssm4567.c:337]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/skl_nau88l25_ssm4567.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/skl_nau88l25_ssm4567.c +5 -5
@@ -317,13 +317,13 @@ static int skylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The ADSP will covert the FE rate to 48k, stereo */ rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;/* set SSP0 to 24 bit */ snd_mask_none (fmt);
@@ -334,12 +334,12 @@ static int skylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,static int skylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ||DMIC_CH (dmic_constraints) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 15/18 ASoC: Intel: skl_rt286: rename shadowed variable
In reply to Pierre-Louis BossartFix cppcheck warning:
[sound/soc/intel/boards/skl_rt286.c:171] -> [sound/soc/intel/boards/skl_rt286.c:214]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/skl_rt286.c:171] -> [sound/soc/intel/boards/skl_rt286.c:250]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/skl_rt286.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/skl_rt286.c +5 -5
@@ -211,13 +211,13 @@ static int skylake_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The output is 48KHz, stereo, 16bits */ rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;/* set SSP0 to 24 bit */ snd_mask_none (fmt);
@@ -247,12 +247,12 @@ static const struct snd_soc_ops skylake_rt286_ops = {static int skylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: skl_rt286: rename shadowed variable" to the asoc tree
The patch
ASoC: Intel: skl_rt286: rename shadowed variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 0c7288f49135c27211c3a39e16788db41b22bf93 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:25 -0600
Subject: [PATCH] ASoC: Intel: skl_rt286: rename shadowed variable
Fix cppcheck warning:
[sound/soc/intel/boards/skl_rt286.c:171] -> [sound/soc/intel/boards/skl_rt286.c:214]: (style) Local variable 'channels' shadows outer variable
[sound/soc/intel/boards/skl_rt286.c:171] -> [sound/soc/intel/boards/skl_rt286.c:250]: (style) Local variable 'channels' shadows outer variable
--- sound/soc/intel/boards/skl_rt286.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/boards/skl_rt286.c +5 -5
@@ -211,13 +211,13 @@ static int skylake_ssp0_fixup(struct snd_soc_pcm_runtime *rtd, {struct snd_interval *rate =hw_param_interval (params,SNDRV_PCM_HW_PARAM_RATE ); -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );struct snd_mask *fmt =hw_param_mask (params,SNDRV_PCM_HW_PARAM_FORMAT );/* The output is 48KHz, stereo, 16bits */ rate->min = rate->max =48000 ; - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;/* set SSP0 to 24 bit */ snd_mask_none (fmt);
@@ -247,12 +247,12 @@ static const struct snd_soc_ops skylake_rt286_ops = {static int skylake_dmic_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) { -struct snd_interval *channels =hw_param_interval (params, +struct snd_interval *chan =hw_param_interval (params,SNDRV_PCM_HW_PARAM_CHANNELS );if (params_channels (params) ==2 ) - channels->min = channels->max =2 ; + chan->min = chan->max =2 ;else - channels->min = channels->max =4 ; + chan->min = chan->max =4 ;return 0 ; }
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 16/18 ASoC: Intel: bytcht_es8316: removed unused variable
In reply to Pierre-Louis Bossartfix GCC warning with W=1
sound/soc/intel//boards/bytcht_es8316.c:237:40: warning:
‘byt_cht_es8316_dai_params’ defined but not used [-Wunused-const-variable=]
--- sound/soc/intel/boards/bytcht_es8316.c | 8 -------- 1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcht_es8316.c +0 -8
@@ -234,14 +234,6 @@ static int byt_cht_es8316_init(struct snd_soc_pcm_runtime *runtime)return 0 ; } -static const struct snd_soc_pcm_stream byt_cht_es8316_dai_params = { - .formats =SNDRV_PCM_FMTBIT_S24_LE , - .rate_min =48000 , - .rate_max =48000 , - .channels_min =2 , - .channels_max =2 , -}; -static int byt_cht_es8316_codec_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) {
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: bytcht_es8316: removed unused variable" to the asoc tree
The patch
ASoC: Intel: bytcht_es8316: removed unused variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 1b2c868083195f9ae374707bab83739f09a5b261 Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:26 -0600
Subject: [PATCH] ASoC: Intel: bytcht_es8316: removed unused variable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
fix GCC warning with W=1
sound/soc/intel//boards/bytcht_es8316.c:237:40: warning:
‘byt_cht_es8316_dai_params’ defined but not used [-Wunused-const-variable=]
--- sound/soc/intel/boards/bytcht_es8316.c | 8 -------- 1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcht_es8316.c +0 -8
@@ -234,14 +234,6 @@ static int byt_cht_es8316_init(struct snd_soc_pcm_runtime *runtime)return 0 ; } -static const struct snd_soc_pcm_stream byt_cht_es8316_dai_params = { - .formats =SNDRV_PCM_FMTBIT_S24_LE , - .rate_min =48000 , - .rate_max =48000 , - .channels_min =2 , - .channels_max =2 , -}; -static int byt_cht_es8316_codec_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) {
Signature · 1 line
2.20.1
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 17/18 ASoC: Intel: bytcr_rt5640: remove unused variable
In reply to Pierre-Louis BossartFix GCC warning with W=1
sound/soc/intel//boards/bytcr_rt5640.c:936:40: warning:
‘byt_rt5640_dai_params’ defined but not used [-Wunused-const-variable=]
--- sound/soc/intel/boards/bytcr_rt5640.c | 8 -------- 1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcr_rt5640.c +0 -8
@@ -933,14 +933,6 @@ static int byt_rt5640_init(struct snd_soc_pcm_runtime *runtime)return 0 ; } -static const struct snd_soc_pcm_stream byt_rt5640_dai_params = { - .formats =SNDRV_PCM_FMTBIT_S24_LE , - .rate_min =48000 , - .rate_max =48000 , - .channels_min =2 , - .channels_max =2 , -}; -static int byt_rt5640_codec_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) {
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: bytcr_rt5640: remove unused variable" to the asoc tree
The patch
ASoC: Intel: bytcr_rt5640: remove unused variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From 38c059399519f88a93d8873fc500ccb3e73348ac Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:27 -0600
Subject: [PATCH] ASoC: Intel: bytcr_rt5640: remove unused variable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fix GCC warning with W=1
sound/soc/intel//boards/bytcr_rt5640.c:936:40: warning:
‘byt_rt5640_dai_params’ defined but not used [-Wunused-const-variable=]
--- sound/soc/intel/boards/bytcr_rt5640.c | 8 -------- 1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcr_rt5640.c +0 -8
@@ -933,14 +933,6 @@ static int byt_rt5640_init(struct snd_soc_pcm_runtime *runtime)return 0 ; } -static const struct snd_soc_pcm_stream byt_rt5640_dai_params = { - .formats =SNDRV_PCM_FMTBIT_S24_LE , - .rate_min =48000 , - .rate_max =48000 , - .channels_min =2 , - .channels_max =2 , -}; -static int byt_rt5640_codec_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) {
Signature · 1 line
2.20.1
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 18/18 ASoC: Intel: bytcr_rt5651: remove unused variable
In reply to Pierre-Louis BossartFix GCC warning with W=1
sound/soc/intel//boards/bytcr_rt5651.c:659:40: warning:
‘byt_rt5651_dai_params’ defined but not used [-Wunused-const-variable=]
--- sound/soc/intel/boards/bytcr_rt5651.c | 8 -------- 1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +0 -8
@@ -656,14 +656,6 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime)return 0 ; } -static const struct snd_soc_pcm_stream byt_rt5651_dai_params = { - .formats =SNDRV_PCM_FMTBIT_S24_LE , - .rate_min =48000 , - .rate_max =48000 , - .channels_min =2 , - .channels_max =2 , -}; -static int byt_rt5651_codec_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) {
Signature · 6 lines
2.20.1 _______________________________________________ Alsa-devel mailing list [email protected] https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
maintainer[alsa-devel] Applied "ASoC: Intel: bytcr_rt5651: remove unused variable" to the asoc tree
The patch
ASoC: Intel: bytcr_rt5651: remove unused variable
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From c1b34230a37d6c167bee0fc2c7204871cf5e875f Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Mon, 13 Jan 2020 15:04:28 -0600
Subject: [PATCH] ASoC: Intel: bytcr_rt5651: remove unused variable
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fix GCC warning with W=1
sound/soc/intel//boards/bytcr_rt5651.c:659:40: warning:
‘byt_rt5651_dai_params’ defined but not used [-Wunused-const-variable=]
--- sound/soc/intel/boards/bytcr_rt5651.c | 8 -------- 1 file changed, 8 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +0 -8
@@ -656,14 +656,6 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime)return 0 ; } -static const struct snd_soc_pcm_stream byt_rt5651_dai_params = { - .formats =SNDRV_PCM_FMTBIT_S24_LE , - .rate_min =48000 , - .rate_max =48000 , - .channels_min =2 , - .channels_max =2 , -}; -static int byt_rt5651_codec_fixup (struct snd_soc_pcm_runtime *rtd,struct snd_pcm_hw_params *params) {
Signature · 1 line
2.20.1
_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel