]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: imx-card: use snd_pcm_format_t type for asrc_format
authorShengjiu Wang <shengjiu.wang@nxp.com>
Thu, 21 Jul 2022 10:29:53 +0000 (18:29 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jul 2022 12:38:52 +0000 (13:38 +0100)
commit790bc76ab5cebc2c531ee70f92f6deca7a3cc69d
treef2a1792732f601bfba6c2a1d1639e8991a01bf51
parent247b460ba899b6101f6434c55eec39179cfb0381
ASoC: imx-card: use snd_pcm_format_t type for asrc_format

Fix sparse warning:
sound/soc/fsl/imx-card.c:653:59: sparse: warning: incorrect type in assignment (different base types)
sound/soc/fsl/imx-card.c:653:59: sparse:    expected unsigned int [usertype] asrc_format
sound/soc/fsl/imx-card.c:653:59: sparse:    got restricted snd_pcm_format_t [usertype]
sound/soc/fsl/imx-card.c:655:59: sparse: warning: incorrect type in assignment (different base types)
sound/soc/fsl/imx-card.c:655:59: sparse:    expected unsigned int [usertype] asrc_format
sound/soc/fsl/imx-card.c:655:59: sparse:    got restricted snd_pcm_format_t [usertype]

Fixes: 32569b1134f1 ("ASoC: imx-card: Add imx-card machine driver")
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1658399393-28777-6-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-card.c