linux/sound/soc
Herve Codina 5befe22b3e
ASoC: fsl: fsl_qmc_audio: Fix snd_pcm_format_t values handling
Running sparse on fsl_qmc_audio (make C=1) raises the following warnings:
 fsl_qmc_audio.c:387:26: warning: restricted snd_pcm_format_t degrades to integer
 fsl_qmc_audio.c:389:59: warning: incorrect type in argument 1 (different base types)
 fsl_qmc_audio.c:389:59:    expected restricted snd_pcm_format_t [usertype] format
 fsl_qmc_audio.c:389:59:    got unsigned int [assigned] i
 fsl_qmc_audio.c:564:26: warning: restricted snd_pcm_format_t degrades to integer
 fsl_qmc_audio.c:569:50: warning: incorrect type in argument 1 (different base types)
 fsl_qmc_audio.c:569:50:    expected restricted snd_pcm_format_t [usertype] format
 fsl_qmc_audio.c:569:50:    got int [assigned] i
 fsl_qmc_audio.c:573:62: warning: incorrect type in argument 1 (different base types)
 fsl_qmc_audio.c:573:62:    expected restricted snd_pcm_format_t [usertype] format
 fsl_qmc_audio.c:573:62:    got int [assigned] i

These warnings are due to snd_pcm_format_t values handling done in the
driver. Some macros and functions exist to handle safely these values.

Use dedicated macros and functions to remove these warnings.

Fixes: 075c7125b1 ("ASoC: fsl: Add support for QMC audio")
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20230726161620.495298-1-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-07-26 19:08:15 +01:00
..
adi
amd Linux 6.5-rc3 2023-07-23 23:33:05 +01:00
apple
atmel ASoC: atmel: use use new trigger ordering method 2023-06-13 12:11:21 +01:00
au1x
bcm ASoC: bcm: bcm63xx-i2s-whistler: Convert to devm_platform_ioremap_resource() 2023-07-17 06:15:53 +01:00
cirrus ASoC: ep93xx: Add OF support 2023-04-12 12:54:23 +01:00
codecs ASoC: rt1316: fix key tone missing 2023-07-26 12:49:44 +01:00
dwc ASoC: dwc: Add TDM mode support 2023-07-09 22:51:01 +01:00
fsl ASoC: fsl: fsl_qmc_audio: Fix snd_pcm_format_t values handling 2023-07-26 19:08:15 +01:00
generic ASoC: simple-card.c: enable multi Component support 2023-07-17 06:15:47 +01:00
google ASoC: Add Google Chameleon v3 i2s driver 2023-05-17 10:37:07 +09:00
hisilicon
img
intel ASoC: intel: avs: refactor strncpy usage in topology 2023-07-26 12:49:44 +01:00
jz4740 ASoC: Merge up fixes for CI 2023-05-15 19:55:52 +09:00
kirkwood
loongson ASoC: loongson: drop of_match_ptr for OF device id 2023-07-26 12:49:45 +01:00
mediatek ASoC: mediatek: mt8188: DPCM used FE and BE merged parameters 2023-07-19 17:40:19 +01:00
meson ASoC: meson: use snd_soc_{of_}get_dlc() 2023-06-20 12:49:25 +01:00
mxs
pxa ASoC: pxa: Use devm_platform_get_and_ioremap_resource() 2023-07-17 06:15:55 +01:00
qcom ASoC: q6dsp: q6apm: make g_apm static 2023-07-13 16:20:25 +01:00
rockchip ALSA/ASoC: Convert to platform remove callback 2023-03-21 16:29:48 +00:00
samsung ASoC: samsung: use snd_soc_{of_}get_dlc() 2023-06-20 12:49:26 +01:00
sh ASoC: siu: Add MODULE_FIRMWARE macro 2023-06-13 12:15:12 +01:00
sof Linux 6.5-rc3 2023-07-23 23:33:05 +01:00
spear
sprd
starfive ASoC: starfive: jh7110_tdm: Convert to platform remove callback returning void 2023-07-09 22:47:14 +01:00
sti
stm ASoC: stm32: sai: Use the devm_clk_get_optional() helper 2023-05-22 11:18:55 +01:00
sunxi ASoC: sunxi: sun8i-codec: Convert to platform remove callback returning void 2023-03-20 13:09:10 +00:00
tegra ASoC: tegra: tegra20_ac97: Use devm_platform_get_and_ioremap_resource() 2023-07-17 06:15:56 +01:00
ti ASoC: ti: omap-mcbsp: Ignore errors for getting fck_src 2023-07-19 17:40:20 +01:00
uniphier ASoC: uniphier: evea: Convert to platform remove callback returning void 2023-03-20 13:09:31 +00:00
ux500 ASoC: ux500: ux500_msp_dai: Convert to platform remove callback returning void 2023-03-20 13:09:32 +00:00
xilinx ASoC: xilinx: xlnx_spdif: Convert to platform remove callback returning void 2023-03-20 13:09:34 +00:00
xtensa ASoC: xtensa: xtfpga-i2s: Convert to platform remove callback returning void 2023-03-20 13:09:35 +00:00
Kconfig ASoC: topology: Add explicit build option 2023-07-18 15:19:03 +01:00
Makefile ASoC: Add support for Loongson I2S controller 2023-06-15 13:53:24 +01:00
soc-ac97.c
soc-acpi.c
soc-card.c
soc-component.c ASoC: soc-component: Add notify control helper function 2023-05-15 20:11:17 +09:00
soc-compress.c ASoC: do not include pm_runtime.h if not used 2023-05-23 13:55:55 +01:00
soc-core.c ASoC: soc-core.c: add snd_soc_copy_dai_args() 2023-07-17 06:15:46 +01:00
soc-dai.c ASoC: soc-dai: don't call PCM audio ops if the stream is not supported 2023-07-25 12:11:49 +01:00
soc-dapm.c ASoC: add N cpus to M codecs dai link support 2023-06-13 12:11:15 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-jack.c
soc-link.c
soc-ops.c
soc-pcm.c ASoC: Merge fixes due to dependencies 2023-06-16 14:55:20 +01:00
soc-topology-test.c
soc-topology.c ASoC: topology: suppress probe deferral errors 2023-07-06 13:46:31 +01:00
soc-utils-test.c
soc-utils.c ASoC: soc-utils.c: add asoc_dummy_dlc 2023-05-08 08:47:05 +09:00