ASoC: make snd_pcm_hardware const
Subsystems (7)
cover ASoC: make snd_pcm_hardware const
Make these const. Done using Coccinelle
Bhumika Goyal (6):
ASoC: fsl: make snd_pcm_hardware const
ASoC: Intel: Atom: make snd_pcm_hardware const
ASoC: Intel: Skylake: make snd_pcm_hardware const
ASoC: kirkwood: make snd_pcm_hardware const
ASoC: sh: make snd_pcm_hardware const
ASoC: qcom: make snd_pcm_hardware const
sound/soc/fsl/fsl_asrc_dma.c | 2 +- sound/soc/fsl/imx-pcm-fiq.c | 2 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/skylake/skl-pcm.c | 2 +- sound/soc/kirkwood/kirkwood-dma.c | 2 +- sound/soc/qcom/lpass-platform.c | 2 +- sound/soc/sh/dma-sh7760.c | 2 +- sound/soc/sh/fsi.c | 2 +- sound/soc/sh/rcar/core.c | 2 +- sound/soc/sh/siu_dai.c | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-)
Signature · 1 line
1.9.1
PATCH 1/6 ASoC: fsl: make snd_pcm_hardware const
Make these const as they are only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle.
--- sound/soc/fsl/fsl_asrc_dma.c | 2 +- sound/soc/fsl/imx-pcm-fiq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/fsl/fsl_asrc_dma.c +1 -1
@@ -20,7 +20,7 @@#define FSL_ASRC_DMABUF_SIZE (256 * 1024) -static struct snd_pcm_hardware snd_imx_hardware = { +static const struct snd_pcm_hardware snd_imx_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP |
sound/soc/fsl/imx-pcm-fiq.c +1 -1
@@ -154,7 +154,7 @@ static snd_pcm_uframes_t snd_imx_pcm_pointer(struct snd_pcm_substream *substreamreturn bytes_to_frames (substream->runtime, iprtd->offset); } -static struct snd_pcm_hardware snd_imx_hardware = { +static const struct snd_pcm_hardware snd_imx_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP |
Signature · 1 line
1.9.1
PATCH 2/6 ASoC: Intel: Atom: make snd_pcm_hardware const
In reply to Bhumika GoyalMake this const as it is only used in a copy operation. Done using Coccinelle.
--- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/atom/sst-mfld-platform-pcm.c +1 -1
@@ -76,7 +76,7 @@ int sst_unregister_dsp(struct sst_device *dev) }EXPORT_SYMBOL_GPL (sst_unregister_dsp); -static struct snd_pcm_hardware sst_platform_pcm_hw = { +static const struct snd_pcm_hardware sst_platform_pcm_hw = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_DOUBLE | SNDRV_PCM_INFO_PAUSE |
Signature · 1 line
1.9.1
PATCH 3/6 ASoC: Intel: Skylake: make snd_pcm_hardware const
In reply to Bhumika GoyalMake this const as it is only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle.
--- sound/soc/intel/skylake/skl-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-pcm.c +1 -1
@@ -33,7 +33,7 @@#define HDA_STEREO 2#define HDA_QUAD 4 -static struct snd_pcm_hardware azx_pcm_hw = { +static const struct snd_pcm_hardware azx_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
Signature · 1 line
1.9.1
PATCH 4/6 ASoC: kirkwood: make snd_pcm_hardware const
In reply to Bhumika GoyalMake this const as it is either passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const or used in a copy operation.
Done using Coccinelle.
--- sound/soc/kirkwood/kirkwood-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/kirkwood/kirkwood-dma.c +1 -1
@@ -27,7 +27,7 @@ static struct kirkwood_dma_data *kirkwood_priv(struct snd_pcm_substream *subs)return snd_soc_dai_get_drvdata (soc_runtime->cpu_dai); } -static struct snd_pcm_hardware kirkwood_dma_snd_hw = { +static const struct snd_pcm_hardware kirkwood_dma_snd_hw = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |
Signature · 1 line
1.9.1
PATCH 5/6 ASoC: sh: make snd_pcm_hardware const
In reply to Bhumika GoyalMake these const as they are only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle.
--- sound/soc/sh/dma-sh7760.c | 2 +- sound/soc/sh/fsi.c | 2 +- sound/soc/sh/rcar/core.c | 2 +- sound/soc/sh/siu_dai.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
sound/soc/sh/dma-sh7760.c +1 -1
@@ -89,7 +89,7 @@ struct camelot_pcm {#define DMABRG_PREALLOC_BUFFER 32 * 1024#define DMABRG_PREALLOC_BUFFER_MAX 32 * 1024 -static struct snd_pcm_hardware camelot_pcm_hardware = { +static const struct snd_pcm_hardware camelot_pcm_hardware = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
sound/soc/sh/fsi.c +1 -1
@@ -1710,7 +1710,7 @@ static int fsi_dai_hw_params(struct snd_pcm_substream *substream,* pcm ops */ -static struct snd_pcm_hardware fsi_pcm_hardware = { +static const struct snd_pcm_hardware fsi_pcm_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_MMAP |SNDRV_PCM_INFO_MMAP_VALID ,
sound/soc/sh/rcar/core.c +1 -1
@@ -843,7 +843,7 @@ static int rsnd_soc_hw_rule_channels(struct snd_pcm_hw_params *params, ir, &ic); } -static struct snd_pcm_hardware rsnd_pcm_hardware = { +static const struct snd_pcm_hardware rsnd_pcm_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_MMAP |SNDRV_PCM_INFO_MMAP_VALID ,
sound/soc/sh/siu_dai.c +1 -1
@@ -333,7 +333,7 @@ static void siu_dai_spbstop(struct siu_port *port_info)/* API functions */ /* Playback and capture hardware properties are identical */ -static struct snd_pcm_hardware siu_dai_pcm_hw = { +static const struct snd_pcm_hardware siu_dai_pcm_hw = { .info =SNDRV_PCM_INFO_INTERLEAVED , .formats =SNDRV_PCM_FMTBIT_S16 , .rates =SNDRV_PCM_RATE_8000_48000 ,
Signature · 1 line
1.9.1
PATCH 6/6 ASoC: qcom: make snd_pcm_hardware const
In reply to Bhumika GoyalMake this const as it is either passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const or used in a copy operation.
Done using Coccinelle.
--- sound/soc/qcom/lpass-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/qcom/lpass-platform.c +1 -1
@@ -32,7 +32,7 @@ struct lpass_pcm_data {#define LPASS_PLATFORM_BUFFER_SIZE (16 * 1024)#define LPASS_PLATFORM_PERIODS 2 -static struct snd_pcm_hardware lpass_platform_pcm_hardware = { +static const struct snd_pcm_hardware lpass_platform_pcm_hardware = { .info =SNDRV_PCM_INFO_MMAP |SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED |
Signature · 1 line
1.9.1
Mark Brown
maintainerApplied "ASoC: Intel: Atom: make snd_pcm_hardware const" to the asoc tree
In reply to Bhumika GoyalThe patch
ASoC: Intel: Atom: make snd_pcm_hardware const
has been applied to the asoc tree at
git://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
a7468e478a95db31c0f64e8497fadd9df5c49789Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
Date: Thu, 17 Aug 2017 15:46:08 +0530
Subject: [PATCH] ASoC: Intel: Atom: make snd_pcm_hardware const
Make this const as it is only used in a copy operation. Done using Coccinelle.
--- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/atom/sst-mfld-platform-pcm.c +1 -1
@@ -76,7 +76,7 @@ int sst_unregister_dsp(struct sst_device *dev) }EXPORT_SYMBOL_GPL (sst_unregister_dsp); -static struct snd_pcm_hardware sst_platform_pcm_hw = { +static const struct snd_pcm_hardware sst_platform_pcm_hw = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_DOUBLE | SNDRV_PCM_INFO_PAUSE |
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: qcom: make snd_pcm_hardware const" to the asoc tree
In reply to Bhumika GoyalThe patch
ASoC: qcom: make snd_pcm_hardware const
has been applied to the asoc tree at
git://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
193e25e1fe822f30a02aa9bf99880345eb242d35Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
Date: Thu, 17 Aug 2017 15:46:12 +0530
Subject: [PATCH] ASoC: qcom: make snd_pcm_hardware const
Make this const as it is either passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const or used in a copy operation.
Done using Coccinelle.
--- sound/soc/qcom/lpass-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/qcom/lpass-platform.c +1 -1
@@ -32,7 +32,7 @@ struct lpass_pcm_data {#define LPASS_PLATFORM_BUFFER_SIZE (16 * 1024)#define LPASS_PLATFORM_PERIODS 2 -static struct snd_pcm_hardware lpass_platform_pcm_hardware = { +static const struct snd_pcm_hardware lpass_platform_pcm_hardware = { .info =SNDRV_PCM_INFO_MMAP |SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED |
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: sh: make snd_pcm_hardware const" to the asoc tree
In reply to Bhumika GoyalThe patch
ASoC: sh: make snd_pcm_hardware const
has been applied to the asoc tree at
git://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
5c2e035e69ffff4c8b3f0a2ddfefa102ad9d9d42Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
Date: Thu, 17 Aug 2017 15:46:11 +0530
Subject: [PATCH] ASoC: sh: make snd_pcm_hardware const
Make these const as they are only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle.
--- sound/soc/sh/dma-sh7760.c | 2 +- sound/soc/sh/fsi.c | 2 +- sound/soc/sh/rcar/core.c | 2 +- sound/soc/sh/siu_dai.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
sound/soc/sh/dma-sh7760.c +1 -1
@@ -89,7 +89,7 @@ struct camelot_pcm {#define DMABRG_PREALLOC_BUFFER 32 * 1024#define DMABRG_PREALLOC_BUFFER_MAX 32 * 1024 -static struct snd_pcm_hardware camelot_pcm_hardware = { +static const struct snd_pcm_hardware camelot_pcm_hardware = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
sound/soc/sh/fsi.c +1 -1
@@ -1710,7 +1710,7 @@ static const struct snd_soc_dai_ops fsi_dai_ops = {* pcm ops */ -static struct snd_pcm_hardware fsi_pcm_hardware = { +static const struct snd_pcm_hardware fsi_pcm_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_MMAP |SNDRV_PCM_INFO_MMAP_VALID ,
sound/soc/sh/rcar/core.c +1 -1
@@ -843,7 +843,7 @@ static int rsnd_soc_hw_rule_channels(struct snd_pcm_hw_params *params, ir, &ic); } -static struct snd_pcm_hardware rsnd_pcm_hardware = { +static const struct snd_pcm_hardware rsnd_pcm_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_MMAP |SNDRV_PCM_INFO_MMAP_VALID ,
sound/soc/sh/siu_dai.c +1 -1
@@ -333,7 +333,7 @@ static void siu_dai_spbstop(struct siu_port *port_info)/* API functions */ /* Playback and capture hardware properties are identical */ -static struct snd_pcm_hardware siu_dai_pcm_hw = { +static const struct snd_pcm_hardware siu_dai_pcm_hw = { .info =SNDRV_PCM_INFO_INTERLEAVED , .formats =SNDRV_PCM_FMTBIT_S16 , .rates =SNDRV_PCM_RATE_8000_48000 ,
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: Intel: Skylake: make snd_pcm_hardware const" to the asoc tree
In reply to Bhumika GoyalThe patch
ASoC: Intel: Skylake: make snd_pcm_hardware const
has been applied to the asoc tree at
git://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
8df397ff0e281d5324d4b7a7e9fa56c4188e0a66Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
Date: Thu, 17 Aug 2017 15:46:09 +0530
Subject: [PATCH] ASoC: Intel: Skylake: make snd_pcm_hardware const
Make this const as it is only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle.
--- sound/soc/intel/skylake/skl-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/skylake/skl-pcm.c +1 -1
@@ -33,7 +33,7 @@#define HDA_STEREO 2#define HDA_QUAD 4 -static struct snd_pcm_hardware azx_pcm_hw = { +static const struct snd_pcm_hardware azx_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: kirkwood: make snd_pcm_hardware const" to the asoc tree
In reply to Bhumika GoyalThe patch
ASoC: kirkwood: make snd_pcm_hardware const
has been applied to the asoc tree at
git://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
636d7e289c0a59dd3febfe6a2e7e5bd56eaa91b8Mon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
Date: Thu, 17 Aug 2017 15:46:10 +0530
Subject: [PATCH] ASoC: kirkwood: make snd_pcm_hardware const
Make this const as it is either passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const or used in a copy operation.
Done using Coccinelle.
--- sound/soc/kirkwood/kirkwood-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/kirkwood/kirkwood-dma.c +1 -1
@@ -27,7 +27,7 @@ static struct kirkwood_dma_data *kirkwood_priv(struct snd_pcm_substream *subs)return snd_soc_dai_get_drvdata (soc_runtime->cpu_dai); } -static struct snd_pcm_hardware kirkwood_dma_snd_hw = { +static const struct snd_pcm_hardware kirkwood_dma_snd_hw = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |
Signature · 1 line
2.13.3
Mark Brown
maintainerApplied "ASoC: fsl: make snd_pcm_hardware const" to the asoc tree
In reply to Bhumika GoyalThe patch
ASoC: fsl: make snd_pcm_hardware const
has been applied to the asoc tree at
git://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
f77bb3b778e85d3477a9e3e0236545663f16793eMon Sep 17 00:00:00 2001
From: Bhumika Goyal <[email protected]>
Date: Thu, 17 Aug 2017 15:46:07 +0530
Subject: [PATCH] ASoC: fsl: make snd_pcm_hardware const
Make these const as they are only passed as the 2nd argument to the function snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle.
--- sound/soc/fsl/fsl_asrc_dma.c | 2 +- sound/soc/fsl/imx-pcm-fiq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/fsl/fsl_asrc_dma.c +1 -1
@@ -20,7 +20,7 @@#define FSL_ASRC_DMABUF_SIZE (256 * 1024) -static struct snd_pcm_hardware snd_imx_hardware = { +static const struct snd_pcm_hardware snd_imx_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP |
sound/soc/fsl/imx-pcm-fiq.c +1 -1
@@ -154,7 +154,7 @@ static snd_pcm_uframes_t snd_imx_pcm_pointer(struct snd_pcm_substream *substreamreturn bytes_to_frames (substream->runtime, iprtd->offset); } -static struct snd_pcm_hardware snd_imx_hardware = { +static const struct snd_pcm_hardware snd_imx_hardware = { .info =SNDRV_PCM_INFO_INTERLEAVED |SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP |
Signature · 1 line
2.13.3
Re: [PATCH 1/6] ASoC: fsl: make snd_pcm_hardware const
In reply to Bhumika GoyalQuoted 5 lines · Bhumika Goyal
Make these const as they are only passed as the 2nd argument to the function
snd_soc_set_runtime_hwparams, which is const. Done using Coccinelle.Signed-off-by Bhumika Goyal <[email protected]>