diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-05-20 16:19:56 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-05-27 02:30:58 +0200 |
commit | 965cc040bf0698e81b0c0aef359ae650b42b428e (patch) | |
tree | 4cf14b17702ad838ab506eb2d2e8083cd9bb5065 /sound/soc/codecs/cs35l41.c | |
parent | Linux 6.10-rc1 (diff) | |
download | linux-965cc040bf0698e81b0c0aef359ae650b42b428e.tar.xz linux-965cc040bf0698e81b0c0aef359ae650b42b428e.zip |
ASoC: Constify channel mapping array arguments in set_channel_map()
There is no need for implementations of DAI set_channel_map() to modify
contents of passed arrays with actual channel mapping. Additionally,
the caller keeps full ownership of the array.
Constify these pointer arguments so the code will be safer and easier to
read (documenting the caller's ownership).
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240520-asoc-x1e80100-4-channel-mapping-v4-1-f657159b4aad@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/cs35l41.c')
-rw-r--r-- | sound/soc/codecs/cs35l41.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs35l41.c b/sound/soc/codecs/cs35l41.c index cb25c33cc9b9..1688c2c688f0 100644 --- a/sound/soc/codecs/cs35l41.c +++ b/sound/soc/codecs/cs35l41.c @@ -673,7 +673,8 @@ static const struct snd_soc_dapm_route cs35l41_audio_map[] = { }; static int cs35l41_set_channel_map(struct snd_soc_dai *dai, unsigned int tx_n, - unsigned int *tx_slot, unsigned int rx_n, unsigned int *rx_slot) + const unsigned int *tx_slot, + unsigned int rx_n, const unsigned int *rx_slot) { struct cs35l41_private *cs35l41 = snd_soc_component_get_drvdata(dai->component); |