ASoC: wm_adsp: Use snd_ctl_elem_type_t for control types
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 30 Dec 2020 17:24:27 +0000 (17:24 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 31 Dec 2020 13:26:24 +0000 (13:26 +0000)
commitf6212e0ab3ff28d4e2e53a520496a052c241df39
tree952194d97caad89be26bc873f8312688e96fb805
parenta0b653e89a3afd2a833f23589a83488fac842ddb
ASoC: wm_adsp: Use snd_ctl_elem_type_t for control types

Sparse will complain about trying to convert between values declared
as snd_ctl_elem_type_t and other types. This patch converts to
consistently use snd_ctl_elem_type_t for control type values. A __force
cast is needed in a couple of cases where the control type value is
parsed out of a DSP data block.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20201230172427.13865-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wmfw.h