[PATCH] ASoC: mediatek: assign correct type to argument

Tzung-Bi Shih tzungbi at google.com
Thu Dec 9 08:45:53 CET 2021


On Thu, Dec 09, 2021 at 03:32:24PM +0800, Jiaxin Yu wrote:
> Fix the following sparse warning: (new ones prefixed by >>)
> >> sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33:
>      sparse: sparse: incorrect type in argument 3 (different base types)
>    sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33: sparse:
>      expected unsigned int to
>    sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c:370:33: sparse:
>      got restricted snd_pcm_format_t [usertype]
> 
> Correct discription of format, use S32_LE and S24_LE to distinguish the
> different 32bit.
> 
> Signed-off-by: Jiaxin Yu <jiaxin.yu at mediatek.com>
> Reported-by: kernel test robot <lkp at intel.com>

Reviewed-by: Tzung-Bi Shih <tzungbi at google.com>


More information about the Alsa-devel mailing list