ASoC: Intel: fix Coccinelle and Sparse warnings
Subsystems (3)
cover ASoC: Intel: fix Coccinelle and Sparse warnings
Make minor warnings go away to make sure Intel/SOF CI checks don't fail and new issues are detected.
Sparse checks are not complete, the legacy stuff is just too messy to fix, we only check for soc/sof/intel/boards since it's the only part reused by SOF.
Pierre-Louis Bossart (9):
ASoC: Intel: Skylake: remove useless cast
ASoC: Intel: Skylake: simplify boolean tests
ASoC: Intel: Haswell: remove unneeded semicolon
ASoC: Intel: Haswell: assign booleans to true/false
ASoC: Intel: Baytrail: remove unneeded variable
ASoC: Intel: Baytrail: simplify boolean test
ASoC: Intel: Atom: simplify boolean tests
ASoC: Intel: Atom: work-around Coccinelle false-alarm
ASoC: Intel: boards: use snd_mask_set_format in all machine drivers
sound/soc/intel/atom/sst-atom-controls.c | 4 ++-- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/atom/sst/sst_acpi.c | 2 +- sound/soc/intel/atom/sst/sst_drv_interface.c | 2 +- sound/soc/intel/atom/sst/sst_loader.c | 2 +- sound/soc/intel/baytrail/sst-baytrail-ipc.c | 3 +-- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 4 ++-- sound/soc/intel/haswell/sst-haswell-ipc.c | 2 +- sound/soc/intel/haswell/sst-haswell-pcm.c | 4 ++-- sound/soc/intel/skylake/skl-messages.c | 2 +- sound/soc/intel/skylake/skl-pcm.c | 2 +- sound/soc/intel/skylake/skl-topology.c | 2 +- 14 files changed, 17 insertions(+), 18 deletions(-)
base-commit: ba26f635bf7253b42b08135152b18a2c8082abb7
Signature · 1 line
2.17.1
PATCH 1/9 ASoC: Intel: Skylake: remove useless cast
Detected with Coccinelle
sound/soc/intel/skylake/skl-topology.c:3106:16-20: WARNING: casting value returned by memory allocation function to (char *) is useless.
--- sound/soc/intel/skylake/skl-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +1 -1
@@ -3103,7 +3103,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be, ac->size = dfw_ac->max;if (ac->max) { - ac->params = (char *)devm_kzalloc (dev, ac->max,GFP_KERNEL ); + ac->params =devm_kzalloc (dev, ac->max,GFP_KERNEL );if (!ac->params)return -ENOMEM ;
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: remove useless cast" to the asoc tree
The patch
ASoC: Intel: Skylake: remove useless cast
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
9a3bf4b889c088874064f8353ae48e305c670bbbMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:02 -0600
Subject: [PATCH] ASoC: Intel: Skylake: remove useless cast
Detected with Coccinelle
sound/soc/intel/skylake/skl-topology.c:3106:16-20: WARNING: casting value returned by memory allocation function to (char *) is useless.
--- sound/soc/intel/skylake/skl-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +1 -1
@@ -3103,7 +3103,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be, ac->size = dfw_ac->max;if (ac->max) { - ac->params = (char *)devm_kzalloc (dev, ac->max,GFP_KERNEL ); + ac->params =devm_kzalloc (dev, ac->max,GFP_KERNEL );if (!ac->params)return -ENOMEM ;
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: remove useless cast" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Skylake: remove useless cast
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
431b67c27c57bc6a752482727c87f6dda988aae5Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:02 -0600
Subject: [PATCH] ASoC: Intel: Skylake: remove useless cast
Detected with Coccinelle
sound/soc/intel/skylake/skl-topology.c:3106:16-20: WARNING: casting value returned by memory allocation function to (char *) is useless.
--- sound/soc/intel/skylake/skl-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +1 -1
@@ -3103,7 +3103,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be, ac->size = dfw_ac->max;if (ac->max) { - ac->params = (char *)devm_kzalloc (dev, ac->max,GFP_KERNEL ); + ac->params =devm_kzalloc (dev, ac->max,GFP_KERNEL );if (!ac->params)return -ENOMEM ;
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: remove useless cast" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Skylake: remove useless cast
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
431b67c27c57bc6a752482727c87f6dda988aae5Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:02 -0600
Subject: [PATCH] ASoC: Intel: Skylake: remove useless cast
Detected with Coccinelle
sound/soc/intel/skylake/skl-topology.c:3106:16-20: WARNING: casting value returned by memory allocation function to (char *) is useless.
--- sound/soc/intel/skylake/skl-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +1 -1
@@ -3103,7 +3103,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be, ac->size = dfw_ac->max;if (ac->max) { - ac->params = (char *)devm_kzalloc (dev, ac->max,GFP_KERNEL ); + ac->params =devm_kzalloc (dev, ac->max,GFP_KERNEL );if (!ac->params)return -ENOMEM ;
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: remove useless cast" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Skylake: remove useless cast
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
431b67c27c57bc6a752482727c87f6dda988aae5Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:02 -0600
Subject: [PATCH] ASoC: Intel: Skylake: remove useless cast
Detected with Coccinelle
sound/soc/intel/skylake/skl-topology.c:3106:16-20: WARNING: casting value returned by memory allocation function to (char *) is useless.
--- sound/soc/intel/skylake/skl-topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-topology.c +1 -1
@@ -3103,7 +3103,7 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be, ac->size = dfw_ac->max;if (ac->max) { - ac->params = (char *)devm_kzalloc (dev, ac->max,GFP_KERNEL ); + ac->params =devm_kzalloc (dev, ac->max,GFP_KERNEL );if (!ac->params)return -ENOMEM ;
Signature · 1 line
2.20.1
PATCH 2/9 ASoC: Intel: Skylake: simplify boolean tests
In reply to Pierre-Louis BossartDetected with Coccinelle
skl-messages.c:419:5-32: WARNING: Comparison to bool skl-pcm.c:1426:6-33: WARNING: Comparison to bool
--- sound/soc/intel/skylake/skl-messages.c | 2 +- sound/soc/intel/skylake/skl-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/skylake/skl-messages.c +1 -1
@@ -416,7 +416,7 @@ int skl_resume_dsp(struct skl *skl)snd_hdac_ext_bus_ppcap_int_enable (bus, true);/* check if DSP 1st boot is done */ -if (skl->skl_sst->is_first_boot == true) +if (skl->skl_sst->is_first_boot)return 0 ;/*
sound/soc/intel/skylake/skl-pcm.c +1 -1
@@ -1423,7 +1423,7 @@ static int skl_platform_soc_probe(struct snd_soc_component *component)if (!ops)return -EIO ; -if (skl->skl_sst->is_first_boot == false) { +if (!skl->skl_sst->is_first_boot) {dev_err (component->dev,"DSP reports first boot done!!!\n" );return -EIO ; }
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: simplify boolean tests" to the asoc tree
The patch
ASoC: Intel: Skylake: simplify boolean tests
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
e7b6afc7472f2b0edaad443814451cd2bf7267acMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:03 -0600
Subject: [PATCH] ASoC: Intel: Skylake: simplify boolean tests
Detected with Coccinelle
skl-messages.c:419:5-32: WARNING: Comparison to bool skl-pcm.c:1426:6-33: WARNING: Comparison to bool
--- sound/soc/intel/skylake/skl-messages.c | 2 +- sound/soc/intel/skylake/skl-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/skylake/skl-messages.c +1 -1
@@ -416,7 +416,7 @@ int skl_resume_dsp(struct skl *skl)snd_hdac_ext_bus_ppcap_int_enable (bus, true);/* check if DSP 1st boot is done */ -if (skl->skl_sst->is_first_boot == true) +if (skl->skl_sst->is_first_boot)return 0 ;/*
sound/soc/intel/skylake/skl-pcm.c +1 -1
@@ -1423,7 +1423,7 @@ static int skl_platform_soc_probe(struct snd_soc_component *component)if (!ops)return -EIO ; -if (skl->skl_sst->is_first_boot == false) { +if (!skl->skl_sst->is_first_boot) {dev_err (component->dev,"DSP reports first boot done!!!\n" );return -EIO ; }
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: simplify boolean tests" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Skylake: simplify boolean tests
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
d8747d30aa7f9e7dc6123709d7ca1d8429d648b0Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:03 -0600
Subject: [PATCH] ASoC: Intel: Skylake: simplify boolean tests
Detected with Coccinelle
skl-messages.c:419:5-32: WARNING: Comparison to bool skl-pcm.c:1426:6-33: WARNING: Comparison to bool
--- sound/soc/intel/skylake/skl-messages.c | 2 +- sound/soc/intel/skylake/skl-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/skylake/skl-messages.c +1 -1
@@ -416,7 +416,7 @@ int skl_resume_dsp(struct skl *skl)snd_hdac_ext_bus_ppcap_int_enable (bus, true);/* check if DSP 1st boot is done */ -if (skl->skl_sst->is_first_boot == true) +if (skl->skl_sst->is_first_boot)return 0 ;/*
sound/soc/intel/skylake/skl-pcm.c +1 -1
@@ -1423,7 +1423,7 @@ static int skl_platform_soc_probe(struct snd_soc_component *component)if (!ops)return -EIO ; -if (skl->skl_sst->is_first_boot == false) { +if (!skl->skl_sst->is_first_boot) {dev_err (component->dev,"DSP reports first boot done!!!\n" );return -EIO ; }
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: simplify boolean tests" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Skylake: simplify boolean tests
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
d8747d30aa7f9e7dc6123709d7ca1d8429d648b0Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:03 -0600
Subject: [PATCH] ASoC: Intel: Skylake: simplify boolean tests
Detected with Coccinelle
skl-messages.c:419:5-32: WARNING: Comparison to bool skl-pcm.c:1426:6-33: WARNING: Comparison to bool
--- sound/soc/intel/skylake/skl-messages.c | 2 +- sound/soc/intel/skylake/skl-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/skylake/skl-messages.c +1 -1
@@ -416,7 +416,7 @@ int skl_resume_dsp(struct skl *skl)snd_hdac_ext_bus_ppcap_int_enable (bus, true);/* check if DSP 1st boot is done */ -if (skl->skl_sst->is_first_boot == true) +if (skl->skl_sst->is_first_boot)return 0 ;/*
sound/soc/intel/skylake/skl-pcm.c +1 -1
@@ -1423,7 +1423,7 @@ static int skl_platform_soc_probe(struct snd_soc_component *component)if (!ops)return -EIO ; -if (skl->skl_sst->is_first_boot == false) { +if (!skl->skl_sst->is_first_boot) {dev_err (component->dev,"DSP reports first boot done!!!\n" );return -EIO ; }
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: simplify boolean tests" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Skylake: simplify boolean tests
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
d8747d30aa7f9e7dc6123709d7ca1d8429d648b0Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:03 -0600
Subject: [PATCH] ASoC: Intel: Skylake: simplify boolean tests
Detected with Coccinelle
skl-messages.c:419:5-32: WARNING: Comparison to bool skl-pcm.c:1426:6-33: WARNING: Comparison to bool
--- sound/soc/intel/skylake/skl-messages.c | 2 +- sound/soc/intel/skylake/skl-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/skylake/skl-messages.c +1 -1
@@ -416,7 +416,7 @@ int skl_resume_dsp(struct skl *skl)snd_hdac_ext_bus_ppcap_int_enable (bus, true);/* check if DSP 1st boot is done */ -if (skl->skl_sst->is_first_boot == true) +if (skl->skl_sst->is_first_boot)return 0 ;/*
sound/soc/intel/skylake/skl-pcm.c +1 -1
@@ -1423,7 +1423,7 @@ static int skl_platform_soc_probe(struct snd_soc_component *component)if (!ops)return -EIO ; -if (skl->skl_sst->is_first_boot == false) { +if (!skl->skl_sst->is_first_boot) {dev_err (component->dev,"DSP reports first boot done!!!\n" );return -EIO ; }
Signature · 1 line
2.20.1
PATCH 3/9 ASoC: Intel: Haswell: remove unneeded semicolon
In reply to Pierre-Louis BossartDetected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -544,7 +544,7 @@ static int hsw_pcm_hw_params(struct snd_pcm_substream *substream,dev_err (rtd->dev,"error: invalid DAI ID %d\n" , rtd->cpu_dai->id);return -EINVAL ; - }; + } ret =sst_hsw_stream_format (hsw, pcm_data->stream, path_id, stream_type,SST_HSW_STREAM_FORMAT_PCM_FORMAT );
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: Haswell: remove unneeded semicolon" to the asoc tree
The patch
ASoC: Intel: Haswell: remove unneeded semicolon
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
fef363fc4efb28de3f40c8315df9b6a3102062b1Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:04 -0600
Subject: [PATCH] ASoC: Intel: Haswell: remove unneeded semicolon
Detected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -544,7 +544,7 @@ static int hsw_pcm_hw_params(struct snd_pcm_substream *substream,dev_err (rtd->dev,"error: invalid DAI ID %d\n" , rtd->cpu_dai->id);return -EINVAL ; - }; + } ret =sst_hsw_stream_format (hsw, pcm_data->stream, path_id, stream_type,SST_HSW_STREAM_FORMAT_PCM_FORMAT );
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Haswell: remove unneeded semicolon" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Haswell: remove unneeded semicolon
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
6c5414589721d696fe300dc0b8720e0368e3907aMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:04 -0600
Subject: [PATCH] ASoC: Intel: Haswell: remove unneeded semicolon
Detected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -544,7 +544,7 @@ static int hsw_pcm_hw_params(struct snd_pcm_substream *substream,dev_err (rtd->dev,"error: invalid DAI ID %d\n" , rtd->cpu_dai->id);return -EINVAL ; - }; + } ret =sst_hsw_stream_format (hsw, pcm_data->stream, path_id, stream_type,SST_HSW_STREAM_FORMAT_PCM_FORMAT );
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Haswell: remove unneeded semicolon" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Haswell: remove unneeded semicolon
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
6c5414589721d696fe300dc0b8720e0368e3907aMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:04 -0600
Subject: [PATCH] ASoC: Intel: Haswell: remove unneeded semicolon
Detected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -544,7 +544,7 @@ static int hsw_pcm_hw_params(struct snd_pcm_substream *substream,dev_err (rtd->dev,"error: invalid DAI ID %d\n" , rtd->cpu_dai->id);return -EINVAL ; - }; + } ret =sst_hsw_stream_format (hsw, pcm_data->stream, path_id, stream_type,SST_HSW_STREAM_FORMAT_PCM_FORMAT );
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Haswell: remove unneeded semicolon" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Haswell: remove unneeded semicolon
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
6c5414589721d696fe300dc0b8720e0368e3907aMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:04 -0600
Subject: [PATCH] ASoC: Intel: Haswell: remove unneeded semicolon
Detected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -544,7 +544,7 @@ static int hsw_pcm_hw_params(struct snd_pcm_substream *substream,dev_err (rtd->dev,"error: invalid DAI ID %d\n" , rtd->cpu_dai->id);return -EINVAL ; - }; + } ret =sst_hsw_stream_format (hsw, pcm_data->stream, path_id, stream_type,SST_HSW_STREAM_FORMAT_PCM_FORMAT );
Signature · 1 line
2.20.1
PATCH 4/9 ASoC: Intel: Haswell: assign booleans to true/false
In reply to Pierre-Louis BossartDetected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-ipc.c | 2 +- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/haswell/sst-haswell-ipc.c +1 -1
@@ -1216,7 +1216,7 @@ int sst_hsw_stream_commit(struct sst_hsw *hsw, struct sst_hsw_stream *stream)return ret; } - stream->commited =1 ; + stream->commited = true;trace_hsw_stream_alloc_reply (stream);return 0 ;
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -861,7 +861,7 @@ static int hsw_pcm_close(struct snd_pcm_substream *substream)dev_dbg (rtd->dev,"error: free stream failed %d\n" , ret); goto out; } - pcm_data->allocated =0 ; + pcm_data->allocated = false; pcm_data->stream =NULL ; out:
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: Haswell: assign booleans to true/false" to the asoc tree
The patch
ASoC: Intel: Haswell: assign booleans to true/false
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
cf93f2ac4366fff97bfa816dd1fd128ca1f44447Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:05 -0600
Subject: [PATCH] ASoC: Intel: Haswell: assign booleans to true/false
Detected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-ipc.c | 2 +- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/haswell/sst-haswell-ipc.c +1 -1
@@ -1216,7 +1216,7 @@ int sst_hsw_stream_commit(struct sst_hsw *hsw, struct sst_hsw_stream *stream)return ret; } - stream->commited =1 ; + stream->commited = true;trace_hsw_stream_alloc_reply (stream);return 0 ;
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -861,7 +861,7 @@ static int hsw_pcm_close(struct snd_pcm_substream *substream)dev_dbg (rtd->dev,"error: free stream failed %d\n" , ret); goto out; } - pcm_data->allocated =0 ; + pcm_data->allocated = false; pcm_data->stream =NULL ; out:
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Haswell: assign booleans to true/false" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Haswell: assign booleans to true/false
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
bf88b3c3c277c8138d688a0fc3199b57fecfaf56Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:05 -0600
Subject: [PATCH] ASoC: Intel: Haswell: assign booleans to true/false
Detected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-ipc.c | 2 +- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/haswell/sst-haswell-ipc.c +1 -1
@@ -1216,7 +1216,7 @@ int sst_hsw_stream_commit(struct sst_hsw *hsw, struct sst_hsw_stream *stream)return ret; } - stream->commited =1 ; + stream->commited = true;trace_hsw_stream_alloc_reply (stream);return 0 ;
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -861,7 +861,7 @@ static int hsw_pcm_close(struct snd_pcm_substream *substream)dev_dbg (rtd->dev,"error: free stream failed %d\n" , ret); goto out; } - pcm_data->allocated =0 ; + pcm_data->allocated = false; pcm_data->stream =NULL ; out:
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Haswell: assign booleans to true/false" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Haswell: assign booleans to true/false
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
bf88b3c3c277c8138d688a0fc3199b57fecfaf56Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:05 -0600
Subject: [PATCH] ASoC: Intel: Haswell: assign booleans to true/false
Detected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-ipc.c | 2 +- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/haswell/sst-haswell-ipc.c +1 -1
@@ -1216,7 +1216,7 @@ int sst_hsw_stream_commit(struct sst_hsw *hsw, struct sst_hsw_stream *stream)return ret; } - stream->commited =1 ; + stream->commited = true;trace_hsw_stream_alloc_reply (stream);return 0 ;
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -861,7 +861,7 @@ static int hsw_pcm_close(struct snd_pcm_substream *substream)dev_dbg (rtd->dev,"error: free stream failed %d\n" , ret); goto out; } - pcm_data->allocated =0 ; + pcm_data->allocated = false; pcm_data->stream =NULL ; out:
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Haswell: assign booleans to true/false" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Haswell: assign booleans to true/false
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
bf88b3c3c277c8138d688a0fc3199b57fecfaf56Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:05 -0600
Subject: [PATCH] ASoC: Intel: Haswell: assign booleans to true/false
Detected with Coccinelle
--- sound/soc/intel/haswell/sst-haswell-ipc.c | 2 +- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/intel/haswell/sst-haswell-ipc.c +1 -1
@@ -1216,7 +1216,7 @@ int sst_hsw_stream_commit(struct sst_hsw *hsw, struct sst_hsw_stream *stream)return ret; } - stream->commited =1 ; + stream->commited = true;trace_hsw_stream_alloc_reply (stream);return 0 ;
sound/soc/intel/haswell/sst-haswell-pcm.c +1 -1
@@ -861,7 +861,7 @@ static int hsw_pcm_close(struct snd_pcm_substream *substream)dev_dbg (rtd->dev,"error: free stream failed %d\n" , ret); goto out; } - pcm_data->allocated =0 ; + pcm_data->allocated = false; pcm_data->stream =NULL ; out:
Signature · 1 line
2.20.1
PATCH 5/9 ASoC: Intel: Baytrail: remove unneeded variable
In reply to Pierre-Louis BossartDetected with Coccinelle
--- sound/soc/intel/baytrail/sst-baytrail-ipc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/intel/baytrail/sst-baytrail-ipc.c +1 -2
@@ -278,7 +278,6 @@ static int sst_byt_process_notification(struct sst_byt *byt,struct sst_byt_stream *stream;u64 header;u8 msg_id, stream_id; -int handled =1 ; header =sst_dsp_shim_read64_unlocked (sst,SST_IPCD ); msg_id =sst_byt_header_msg_id (header);
@@ -298,7 +297,7 @@ static int sst_byt_process_notification(struct sst_byt *byt,break ; } -return handled; +return 1 ; }static irqreturn_t sst_byt_irq_thread (int irq,void *context)
Signature · 1 line
2.17.1
PATCH 6/9 ASoC: Intel: Baytrail: simplify boolean test
In reply to Pierre-Louis BossartDetected with Coccinelle
--- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/baytrail/sst-baytrail-pcm.c +1 -1
@@ -188,7 +188,7 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)sst_byt_stream_start (byt, pcm_data->stream,0 );break ;case SNDRV_PCM_TRIGGER_RESUME : -if (pdata->restore_stream == true) +if (pdata->restore_stream)schedule_work (&pcm_data->work);else sst_byt_stream_resume (byt, pcm_data->stream);
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: Baytrail: simplify boolean test" to the asoc tree
The patch
ASoC: Intel: Baytrail: simplify boolean test
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
3647b4ca3a98fa5cf7a9f38b67c99d00bb41e8e3Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:07 -0600
Subject: [PATCH] ASoC: Intel: Baytrail: simplify boolean test
Detected with Coccinelle
--- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/baytrail/sst-baytrail-pcm.c +1 -1
@@ -188,7 +188,7 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)sst_byt_stream_start (byt, pcm_data->stream,0 );break ;case SNDRV_PCM_TRIGGER_RESUME : -if (pdata->restore_stream == true) +if (pdata->restore_stream)schedule_work (&pcm_data->work);else sst_byt_stream_resume (byt, pcm_data->stream);
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Baytrail: simplify boolean test" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Baytrail: simplify boolean test
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
e295450dd86d974861e1e9e302d67b0a23457ea8Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:07 -0600
Subject: [PATCH] ASoC: Intel: Baytrail: simplify boolean test
Detected with Coccinelle
--- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/baytrail/sst-baytrail-pcm.c +1 -1
@@ -188,7 +188,7 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)sst_byt_stream_start (byt, pcm_data->stream,0 );break ;case SNDRV_PCM_TRIGGER_RESUME : -if (pdata->restore_stream == true) +if (pdata->restore_stream)schedule_work (&pcm_data->work);else sst_byt_stream_resume (byt, pcm_data->stream);
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Baytrail: simplify boolean test" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Baytrail: simplify boolean test
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
e295450dd86d974861e1e9e302d67b0a23457ea8Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:07 -0600
Subject: [PATCH] ASoC: Intel: Baytrail: simplify boolean test
Detected with Coccinelle
--- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/baytrail/sst-baytrail-pcm.c +1 -1
@@ -188,7 +188,7 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)sst_byt_stream_start (byt, pcm_data->stream,0 );break ;case SNDRV_PCM_TRIGGER_RESUME : -if (pdata->restore_stream == true) +if (pdata->restore_stream)schedule_work (&pcm_data->work);else sst_byt_stream_resume (byt, pcm_data->stream);
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Baytrail: simplify boolean test" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Baytrail: simplify boolean test
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
e295450dd86d974861e1e9e302d67b0a23457ea8Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:07 -0600
Subject: [PATCH] ASoC: Intel: Baytrail: simplify boolean test
Detected with Coccinelle
--- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/baytrail/sst-baytrail-pcm.c +1 -1
@@ -188,7 +188,7 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)sst_byt_stream_start (byt, pcm_data->stream,0 );break ;case SNDRV_PCM_TRIGGER_RESUME : -if (pdata->restore_stream == true) +if (pdata->restore_stream)schedule_work (&pcm_data->work);else sst_byt_stream_resume (byt, pcm_data->stream);
Signature · 1 line
2.20.1
PATCH 7/9 ASoC: Intel: Atom: simplify boolean tests
In reply to Pierre-Louis BossartDetected with Coccinelle
--- sound/soc/intel/atom/sst-atom-controls.c | 2 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/atom/sst/sst_acpi.c | 2 +- sound/soc/intel/atom/sst/sst_drv_interface.c | 2 +- sound/soc/intel/atom/sst/sst_loader.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/atom/sst-atom-controls.c +1 -1
@@ -647,7 +647,7 @@ static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w, set_mixer = false; } -if (set_mixer == false) +if (!set_mixer)return 0 ; if (SND_SOC_DAPM_EVENT_ON(event) ||
sound/soc/intel/atom/sst-mfld-platform-pcm.c +1 -1
@@ -190,7 +190,7 @@ int sst_fill_stream_params(void *substream, map = ctx->pdata->pdev_strm_map; map_size = ctx->pdata->strm_map_size; -if (is_compress == true) +if (is_compress) cstream = (struct snd_compr_stream *)substream;else pstream = (struct snd_pcm_substream *)substream;
sound/soc/intel/atom/sst/sst_acpi.c +1 -1
@@ -334,7 +334,7 @@ static int sst_acpi_probe(struct platform_device *pdev)return ret; ret =is_byt_cr (dev, &bytcr); -if (!((ret <0 ) || (bytcr == false))) { +if (!(ret <0 || !bytcr)) {dev_info (dev,"Detected Baytrail-CR platform\n" );/* override resource info */
sound/soc/intel/atom/sst/sst_drv_interface.c +1 -1
@@ -146,7 +146,7 @@ static int sst_power_control(struct device *dev, bool state)int ret =0 ;int usage_count =0 ; -if (state == true) { +if (state) { ret =pm_runtime_get_sync (dev); usage_count =GET_USAGE_COUNT (dev);dev_dbg (ctx->dev,"Enable: pm usage count: %d\n" , usage_count);
sound/soc/intel/atom/sst/sst_loader.c +1 -1
@@ -269,7 +269,7 @@ static void sst_do_memcpy(struct list_head *memcpy_list)struct sst_memcpy_list *listnode;list_for_each_entry (listnode, memcpy_list, memcpylist) { -if (listnode->is_io == true) +if (listnode->is_io)memcpy32_toio ((void __iomem *)listnode->dstn, listnode->src, listnode->size);else
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: Atom: simplify boolean tests" to the asoc tree
The patch
ASoC: Intel: Atom: simplify boolean tests
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
724d68e11efe4385838d4cdcd3e2ab2168c40e27Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:08 -0600
Subject: [PATCH] ASoC: Intel: Atom: simplify boolean tests
Detected with Coccinelle
--- sound/soc/intel/atom/sst-atom-controls.c | 2 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/atom/sst/sst_acpi.c | 2 +- sound/soc/intel/atom/sst/sst_drv_interface.c | 2 +- sound/soc/intel/atom/sst/sst_loader.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/atom/sst-atom-controls.c +1 -1
@@ -647,7 +647,7 @@ static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w, set_mixer = false; } -if (set_mixer == false) +if (!set_mixer)return 0 ; if (SND_SOC_DAPM_EVENT_ON(event) ||
sound/soc/intel/atom/sst-mfld-platform-pcm.c +1 -1
@@ -190,7 +190,7 @@ int sst_fill_stream_params(void *substream, map = ctx->pdata->pdev_strm_map; map_size = ctx->pdata->strm_map_size; -if (is_compress == true) +if (is_compress) cstream = (struct snd_compr_stream *)substream;else pstream = (struct snd_pcm_substream *)substream;
sound/soc/intel/atom/sst/sst_acpi.c +1 -1
@@ -334,7 +334,7 @@ static int sst_acpi_probe(struct platform_device *pdev)return ret; ret =is_byt_cr (dev, &bytcr); -if (!((ret <0 ) || (bytcr == false))) { +if (!(ret <0 || !bytcr)) {dev_info (dev,"Detected Baytrail-CR platform\n" );/* override resource info */
sound/soc/intel/atom/sst/sst_drv_interface.c +1 -1
@@ -146,7 +146,7 @@ static int sst_power_control(struct device *dev, bool state)int ret =0 ;int usage_count =0 ; -if (state == true) { +if (state) { ret =pm_runtime_get_sync (dev); usage_count =GET_USAGE_COUNT (dev);dev_dbg (ctx->dev,"Enable: pm usage count: %d\n" , usage_count);
sound/soc/intel/atom/sst/sst_loader.c +1 -1
@@ -269,7 +269,7 @@ static void sst_do_memcpy(struct list_head *memcpy_list)struct sst_memcpy_list *listnode;list_for_each_entry (listnode, memcpy_list, memcpylist) { -if (listnode->is_io == true) +if (listnode->is_io)memcpy32_toio ((void __iomem *)listnode->dstn, listnode->src, listnode->size);else
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Atom: simplify boolean tests" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Atom: simplify boolean tests
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
10583cdac237b32c0d3f6027b06c5eec8bf91211Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:08 -0600
Subject: [PATCH] ASoC: Intel: Atom: simplify boolean tests
Detected with Coccinelle
--- sound/soc/intel/atom/sst-atom-controls.c | 2 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/atom/sst/sst_acpi.c | 2 +- sound/soc/intel/atom/sst/sst_drv_interface.c | 2 +- sound/soc/intel/atom/sst/sst_loader.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/atom/sst-atom-controls.c +1 -1
@@ -647,7 +647,7 @@ static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w, set_mixer = false; } -if (set_mixer == false) +if (!set_mixer)return 0 ; if (SND_SOC_DAPM_EVENT_ON(event) ||
sound/soc/intel/atom/sst-mfld-platform-pcm.c +1 -1
@@ -190,7 +190,7 @@ int sst_fill_stream_params(void *substream, map = ctx->pdata->pdev_strm_map; map_size = ctx->pdata->strm_map_size; -if (is_compress == true) +if (is_compress) cstream = (struct snd_compr_stream *)substream;else pstream = (struct snd_pcm_substream *)substream;
sound/soc/intel/atom/sst/sst_acpi.c +1 -1
@@ -334,7 +334,7 @@ static int sst_acpi_probe(struct platform_device *pdev)return ret; ret =is_byt_cr (dev, &bytcr); -if (!((ret <0 ) || (bytcr == false))) { +if (!(ret <0 || !bytcr)) {dev_info (dev,"Detected Baytrail-CR platform\n" );/* override resource info */
sound/soc/intel/atom/sst/sst_drv_interface.c +1 -1
@@ -146,7 +146,7 @@ static int sst_power_control(struct device *dev, bool state)int ret =0 ;int usage_count =0 ; -if (state == true) { +if (state) { ret =pm_runtime_get_sync (dev); usage_count =GET_USAGE_COUNT (dev);dev_dbg (ctx->dev,"Enable: pm usage count: %d\n" , usage_count);
sound/soc/intel/atom/sst/sst_loader.c +1 -1
@@ -269,7 +269,7 @@ static void sst_do_memcpy(struct list_head *memcpy_list)struct sst_memcpy_list *listnode;list_for_each_entry (listnode, memcpy_list, memcpylist) { -if (listnode->is_io == true) +if (listnode->is_io)memcpy32_toio ((void __iomem *)listnode->dstn, listnode->src, listnode->size);else
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Atom: simplify boolean tests" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Atom: simplify boolean tests
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
10583cdac237b32c0d3f6027b06c5eec8bf91211Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:08 -0600
Subject: [PATCH] ASoC: Intel: Atom: simplify boolean tests
Detected with Coccinelle
--- sound/soc/intel/atom/sst-atom-controls.c | 2 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/atom/sst/sst_acpi.c | 2 +- sound/soc/intel/atom/sst/sst_drv_interface.c | 2 +- sound/soc/intel/atom/sst/sst_loader.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/atom/sst-atom-controls.c +1 -1
@@ -647,7 +647,7 @@ static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w, set_mixer = false; } -if (set_mixer == false) +if (!set_mixer)return 0 ; if (SND_SOC_DAPM_EVENT_ON(event) ||
sound/soc/intel/atom/sst-mfld-platform-pcm.c +1 -1
@@ -190,7 +190,7 @@ int sst_fill_stream_params(void *substream, map = ctx->pdata->pdev_strm_map; map_size = ctx->pdata->strm_map_size; -if (is_compress == true) +if (is_compress) cstream = (struct snd_compr_stream *)substream;else pstream = (struct snd_pcm_substream *)substream;
sound/soc/intel/atom/sst/sst_acpi.c +1 -1
@@ -334,7 +334,7 @@ static int sst_acpi_probe(struct platform_device *pdev)return ret; ret =is_byt_cr (dev, &bytcr); -if (!((ret <0 ) || (bytcr == false))) { +if (!(ret <0 || !bytcr)) {dev_info (dev,"Detected Baytrail-CR platform\n" );/* override resource info */
sound/soc/intel/atom/sst/sst_drv_interface.c +1 -1
@@ -146,7 +146,7 @@ static int sst_power_control(struct device *dev, bool state)int ret =0 ;int usage_count =0 ; -if (state == true) { +if (state) { ret =pm_runtime_get_sync (dev); usage_count =GET_USAGE_COUNT (dev);dev_dbg (ctx->dev,"Enable: pm usage count: %d\n" , usage_count);
sound/soc/intel/atom/sst/sst_loader.c +1 -1
@@ -269,7 +269,7 @@ static void sst_do_memcpy(struct list_head *memcpy_list)struct sst_memcpy_list *listnode;list_for_each_entry (listnode, memcpy_list, memcpylist) { -if (listnode->is_io == true) +if (listnode->is_io)memcpy32_toio ((void __iomem *)listnode->dstn, listnode->src, listnode->size);else
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: Atom: simplify boolean tests" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: Atom: simplify boolean tests
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
10583cdac237b32c0d3f6027b06c5eec8bf91211Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:08 -0600
Subject: [PATCH] ASoC: Intel: Atom: simplify boolean tests
Detected with Coccinelle
--- sound/soc/intel/atom/sst-atom-controls.c | 2 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/atom/sst/sst_acpi.c | 2 +- sound/soc/intel/atom/sst/sst_drv_interface.c | 2 +- sound/soc/intel/atom/sst/sst_loader.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
sound/soc/intel/atom/sst-atom-controls.c +1 -1
@@ -647,7 +647,7 @@ static int sst_swm_mixer_event(struct snd_soc_dapm_widget *w, set_mixer = false; } -if (set_mixer == false) +if (!set_mixer)return 0 ; if (SND_SOC_DAPM_EVENT_ON(event) ||
sound/soc/intel/atom/sst-mfld-platform-pcm.c +1 -1
@@ -190,7 +190,7 @@ int sst_fill_stream_params(void *substream, map = ctx->pdata->pdev_strm_map; map_size = ctx->pdata->strm_map_size; -if (is_compress == true) +if (is_compress) cstream = (struct snd_compr_stream *)substream;else pstream = (struct snd_pcm_substream *)substream;
sound/soc/intel/atom/sst/sst_acpi.c +1 -1
@@ -334,7 +334,7 @@ static int sst_acpi_probe(struct platform_device *pdev)return ret; ret =is_byt_cr (dev, &bytcr); -if (!((ret <0 ) || (bytcr == false))) { +if (!(ret <0 || !bytcr)) {dev_info (dev,"Detected Baytrail-CR platform\n" );/* override resource info */
sound/soc/intel/atom/sst/sst_drv_interface.c +1 -1
@@ -146,7 +146,7 @@ static int sst_power_control(struct device *dev, bool state)int ret =0 ;int usage_count =0 ; -if (state == true) { +if (state) { ret =pm_runtime_get_sync (dev); usage_count =GET_USAGE_COUNT (dev);dev_dbg (ctx->dev,"Enable: pm usage count: %d\n" , usage_count);
sound/soc/intel/atom/sst/sst_loader.c +1 -1
@@ -269,7 +269,7 @@ static void sst_do_memcpy(struct list_head *memcpy_list)struct sst_memcpy_list *listnode;list_for_each_entry (listnode, memcpy_list, memcpylist) { -if (listnode->is_io == true) +if (listnode->is_io)memcpy32_toio ((void __iomem *)listnode->dstn, listnode->src, listnode->size);else
Signature · 1 line
2.20.1
PATCH 8/9 ASoC: Intel: Atom: work-around Coccinelle false-alarm
In reply to Pierre-Louis BossartCoccinelle complains:
sst-atom-controls.c:1534:2-19: ERROR: Assignment of bool to non-0/1 constant
false alarm: that constant is declared as
Using a test that will be optimized away to work-around the issue
--- sound/soc/intel/atom/sst-atom-controls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/atom/sst-atom-controls.c +1 -1
@@ -1531,7 +1531,7 @@ int sst_dsp_init_v2_dpcm(struct snd_soc_component *component)snd_soc_dapm_new_widgets (dapm->card);for (i =0 ; i < gains; i++) { - sst_gains[i].mute =SST_GAIN_MUTE_DEFAULT ; + sst_gains[i].mute =SST_GAIN_MUTE_DEFAULT ? true : false; sst_gains[i].l_gain =SST_GAIN_VOLUME_DEFAULT ; sst_gains[i].r_gain =SST_GAIN_VOLUME_DEFAULT ; sst_gains[i].ramp_duration =SST_GAIN_RAMP_DURATION_DEFAULT ;
Signature · 1 line
2.17.1
Re: [PATCH 8/9] ASoC: Intel: Atom: work-around Coccinelle false-alarm
Quoted 7 lines · Pierre-Louis Bossart
Coccinelle complains:
sst-atom-controls.c:1534:2-19: ERROR: Assignment of bool to non-0/1 constantfalse alarm: that constant is declared as
Using a test that will be optimized away to work-around the issue
I'll improve the rule. It would be better to leave the code as it is.
julia
Quoted 23 lines
Cc Julia Lawall <[email protected]>Signed-off-by Pierre-Louis Bossart <[email protected]>--- sound/soc/intel/atom/sst-atom-controls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/intel/atom/sst-atom-controls.c +1
-2@@ -1531,7 +1531,7 @@ int sst_dsp_init_v2_dpcm(struct snd_soc_component *component)snd_soc_dapm_new_widgets (dapm->card);for (i =0 ; i < gains; i++) { - sst_gains[i].mute =SST_GAIN_MUTE_DEFAULT ; + sst_gains[i].mute =SST_GAIN_MUTE_DEFAULT ? true : false; sst_gains[i].l_gain =SST_GAIN_VOLUME_DEFAULT ; sst_gains[i].r_gain =SST_GAIN_VOLUME_DEFAULT ; sst_gains[i].ramp_duration =SST_GAIN_RAMP_DURATION_DEFAULT ; --2.17.1
Re: [PATCH 8/9] ASoC: Intel: Atom: work-around Coccinelle false-alarm
Quoted 11 lines · Julia Lawall
Quoted 7 lines · Pierre-Louis Bossart
Coccinelle complains:
sst-atom-controls.c:1534:2-19: ERROR: Assignment of bool to non-0/1 constantfalse alarm: that constant is declared as
Using a test that will be optimized away to work-around the issue
I'll improve the rule. It would be better to leave the code as it is.
Fine with me. I just wanted to go down to zero warnings left, if the tool is improved it achieves the same result. Thanks!
Quoted 30 lines
julia
Quoted 20 lines
Cc Julia Lawall <[email protected]>Signed-off-by Pierre-Louis Bossart <[email protected]>--- sound/soc/intel/atom/sst-atom-controls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/intel/atom/sst-atom-controls.c +1
-2@@ -1531,7 +1531,7 @@ int sst_dsp_init_v2_dpcm(struct snd_soc_component *component)snd_soc_dapm_new_widgets (dapm->card);for (i =0 ; i < gains; i++) { - sst_gains[i].mute =SST_GAIN_MUTE_DEFAULT ; + sst_gains[i].mute =SST_GAIN_MUTE_DEFAULT ? true : false; sst_gains[i].l_gain =SST_GAIN_VOLUME_DEFAULT ; sst_gains[i].r_gain =SST_GAIN_VOLUME_DEFAULT ; sst_gains[i].ramp_duration =SST_GAIN_RAMP_DURATION_DEFAULT ; --Quoted 3 lines
2.17.1
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 9/9 ASoC: Intel: boards: use snd_mask_set_format in all machine drivers
In reply to Pierre-Louis BossartFix Sparse warnings with two machine drivers which weren't updated
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +1 -1
@@ -164,7 +164,7 @@ static int geminilake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,/* set SSP to 24 bit */ snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE );return 0 ; }
sound/soc/intel/boards/kbl_da7219_max98927.c +2 -2
@@ -221,7 +221,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, rate->min = rate->max =48000 ; channels->min = channels->max =2 ;snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }/*
@@ -229,7 +229,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,* thus changing the mask here */ if (!strcmp (be_dai_link->name,"SSP0-Codec" )) -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S16_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S16_LE );return 0 ; }
Signature · 1 line
2.17.1
Mark Brown
maintainerApplied "ASoC: Intel: boards: use snd_mask_set_format in all machine drivers" to the asoc tree
The patch
ASoC: Intel: boards: use snd_mask_set_format in all machine drivers
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
cbb5f163b512f1e1992253dd47b88ed089961649Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:10 -0600
Subject: [PATCH] ASoC: Intel: boards: use snd_mask_set_format in all machine
drivers
Fix Sparse warnings with two machine drivers which weren't updated
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +1 -1
@@ -164,7 +164,7 @@ static int geminilake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,/* set SSP to 24 bit */ snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE );return 0 ; }
sound/soc/intel/boards/kbl_da7219_max98927.c +2 -2
@@ -221,7 +221,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, rate->min = rate->max =48000 ; channels->min = channels->max =2 ;snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }/*
@@ -229,7 +229,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,* thus changing the mask here */ if (!strcmp (be_dai_link->name,"SSP0-Codec" )) -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S16_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S16_LE );return 0 ; }
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: boards: use snd_mask_set_format in all machine drivers" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: boards: use snd_mask_set_format in all machine drivers
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
4e88068ed0888549acd1cbb2f6e271b007051203Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:10 -0600
Subject: [PATCH] ASoC: Intel: boards: use snd_mask_set_format in all machine
drivers
Fix Sparse warnings with two machine drivers which weren't updated
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +1 -1
@@ -164,7 +164,7 @@ static int geminilake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,/* set SSP to 24 bit */ snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE );return 0 ; }
sound/soc/intel/boards/kbl_da7219_max98927.c +2 -2
@@ -221,7 +221,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, rate->min = rate->max =48000 ; channels->min = channels->max =2 ;snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }/*
@@ -229,7 +229,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,* thus changing the mask here */ if (!strcmp (be_dai_link->name,"SSP0-Codec" )) -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S16_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S16_LE );return 0 ; }
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: boards: use snd_mask_set_format in all machine drivers" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: boards: use snd_mask_set_format in all machine drivers
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
4e88068ed0888549acd1cbb2f6e271b007051203Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:10 -0600
Subject: [PATCH] ASoC: Intel: boards: use snd_mask_set_format in all machine
drivers
Fix Sparse warnings with two machine drivers which weren't updated
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +1 -1
@@ -164,7 +164,7 @@ static int geminilake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,/* set SSP to 24 bit */ snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE );return 0 ; }
sound/soc/intel/boards/kbl_da7219_max98927.c +2 -2
@@ -221,7 +221,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, rate->min = rate->max =48000 ; channels->min = channels->max =2 ;snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }/*
@@ -229,7 +229,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,* thus changing the mask here */ if (!strcmp (be_dai_link->name,"SSP0-Codec" )) -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S16_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S16_LE );return 0 ; }
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: Intel: boards: use snd_mask_set_format in all machine drivers" to the asoc tree
In reply to Pierre-Louis BossartThe patch
ASoC: Intel: boards: use snd_mask_set_format in all machine drivers
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
4e88068ed0888549acd1cbb2f6e271b007051203Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Sun, 16 Dec 2018 16:49:10 -0600
Subject: [PATCH] ASoC: Intel: boards: use snd_mask_set_format in all machine
drivers
Fix Sparse warnings with two machine drivers which weren't updated
--- sound/soc/intel/boards/glk_rt5682_max98357a.c | 2 +- sound/soc/intel/boards/kbl_da7219_max98927.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
sound/soc/intel/boards/glk_rt5682_max98357a.c +1 -1
@@ -164,7 +164,7 @@ static int geminilake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,/* set SSP to 24 bit */ snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE );return 0 ; }
sound/soc/intel/boards/kbl_da7219_max98927.c +2 -2
@@ -221,7 +221,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd, rate->min = rate->max =48000 ; channels->min = channels->max =2 ;snd_mask_none (fmt); -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S24_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S24_LE ); }/*
@@ -229,7 +229,7 @@ static int kabylake_ssp_fixup(struct snd_soc_pcm_runtime *rtd,* thus changing the mask here */ if (!strcmp (be_dai_link->name,"SSP0-Codec" )) -snd_mask_set (fmt,SNDRV_PCM_FORMAT_S16_LE ); +snd_mask_set_format (fmt,SNDRV_PCM_FORMAT_S16_LE );return 0 ; }
Signature · 1 line
2.20.1