From: Greg Kroah-Hartman Date: Sat, 13 Jan 2024 09:53:38 +0000 (+0100) Subject: 5.4-stable patches X-Git-Tag: v4.19.305~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd9f7d1db8341bfd6afb06fb9a4132df4f758c59;p=thirdparty%2Fkernel%2Fstable-queue.git 5.4-stable patches added patches: asoc-meson-codec-glue-fix-pcm-format-cast-warning.patch --- 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 index 00000000000..1f890e4ddfa --- /dev/null +++ b/queue-5.4/asoc-meson-codec-glue-fix-pcm-format-cast-warning.patch @@ -0,0 +1,33 @@ +From 3cd23f021e2e5f3350125abcb39f12430df87d06 Mon Sep 17 00:00:00 2001 +From: Jerome Brunet +Date: Fri, 14 Feb 2020 14:13:50 +0100 +Subject: ASoC: meson: codec-glue: fix pcm format cast warning + +From: Jerome Brunet + +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 +Signed-off-by: Jerome Brunet +Link: https://lore.kernel.org/r/20200214131350.337968-6-jbrunet@baylibre.com +Signed-off-by: Mark Brown +Signed-off-by: Greg Kroah-Hartman +--- + 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; diff --git a/queue-5.4/series b/queue-5.4/series index a61b673aaed..1662c66c731 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -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