]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jan 2024 09:53:38 +0000 (10:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jan 2024 09:53:38 +0000 (10:53 +0100)
added patches:
asoc-meson-codec-glue-fix-pcm-format-cast-warning.patch

queue-5.4/asoc-meson-codec-glue-fix-pcm-format-cast-warning.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/asoc-meson-codec-glue-fix-pcm-format-cast-warning.patch b/queue-5.4/asoc-meson-codec-glue-fix-pcm-format-cast-warning.patch
new file mode 100644 (file)
index 0000000..1f890e4
--- /dev/null
@@ -0,0 +1,33 @@
+From 3cd23f021e2e5f3350125abcb39f12430df87d06 Mon Sep 17 00:00:00 2001
+From: Jerome Brunet <jbrunet@baylibre.com>
+Date: Fri, 14 Feb 2020 14:13:50 +0100
+Subject: ASoC: meson: codec-glue: fix pcm format cast warning
+
+From: Jerome Brunet <jbrunet@baylibre.com>
+
+commit 3cd23f021e2e5f3350125abcb39f12430df87d06 upstream.
+
+Clarify the cast of snd_pcm_format_t and fix the sparse warning:
+restricted snd_pcm_format_t degrades to integer
+
+Fixes: 9c29fd9bdf92 ("ASoC: meson: g12a: extract codec-to-codec utils")
+Reported-by: kbuild test robot <lkp@intel.com>
+Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
+Link: https://lore.kernel.org/r/20200214131350.337968-6-jbrunet@baylibre.com
+Signed-off-by: Mark Brown <broonie@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ sound/soc/meson/meson-codec-glue.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/sound/soc/meson/meson-codec-glue.c
++++ b/sound/soc/meson/meson-codec-glue.c
+@@ -74,7 +74,7 @@ int meson_codec_glue_input_hw_params(str
+       data->params.rates = snd_pcm_rate_to_rate_bit(params_rate(params));
+       data->params.rate_min = params_rate(params);
+       data->params.rate_max = params_rate(params);
+-      data->params.formats = 1 << params_format(params);
++      data->params.formats = 1ULL << (__force int) params_format(params);
+       data->params.channels_min = params_channels(params);
+       data->params.channels_max = params_channels(params);
+       data->params.sig_bits = dai->driver->playback.sig_bits;
index a61b673aaed747face0934b038b63ca49a18750a..1662c66c73142cf1abb9294005bcc8b20bc43945 100644 (file)
@@ -36,3 +36,4 @@ pci-disable-ats-for-specific-intel-ipu-e2000-devices.patch
 net-dst-use-a-smaller-percpu_counter-batch-for-dst-entries-accounting.patch
 ipv6-make-ip6_rt_gc_expire-an-atomic_t.patch
 ipv6-remove-max_size-check-inline-with-ipv4.patch
+asoc-meson-codec-glue-fix-pcm-format-cast-warning.patch