ASoC: Intel: avs: Correctly access topology fields

Fixes following warning:
sound/soc/intel/avs/topology.c:1636:20: sparse: sparse: restricted __le32 degrades to integer

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20230113190310.1451693-3-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Amadeusz Sławiński 2023-01-13 20:03:09 +01:00 committed by Mark Brown
parent 5eab926575
commit 19cfd69cd3
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -1633,7 +1633,7 @@ avs_control_load(struct snd_soc_component *comp, int index, struct snd_kcontrol_
size_t block_size; size_t block_size;
int ret; int ret;
switch (hdr->type) { switch (le32_to_cpu(hdr->type)) {
case SND_SOC_TPLG_TYPE_MIXER: case SND_SOC_TPLG_TYPE_MIXER:
tmc = container_of(hdr, typeof(*tmc), hdr); tmc = container_of(hdr, typeof(*tmc), hdr);
tuples = tmc->priv.array; tuples = tmc->priv.array;