]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: Intel: avs: Fix parsing UUIDs in topology
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Fri, 10 Jun 2022 12:42:57 +0000 (14:42 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 24 Jun 2022 15:21:40 +0000 (16:21 +0100)
Use correct type for parsing UUIDs, this eliminates warning present,
when compiling with W=1.

Fixes: ade87075eae9 ("ASoC: Intel: avs: Add topology parsing infrastructure")
Reported-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.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/20220610124257.4160658-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/topology.c

index 0d11cc8aab0bdacc22665f8f47da2bd76a78612e..6a06fe387d13bde13a3356178ed804a185e65b81 100644 (file)
@@ -128,10 +128,10 @@ struct avs_tplg_token_parser {
 static int
 avs_parse_uuid_token(struct snd_soc_component *comp, void *elem, void *object, u32 offset)
 {
-       struct snd_soc_tplg_vendor_value_elem *tuple = elem;
+       struct snd_soc_tplg_vendor_uuid_elem *tuple = elem;
        guid_t *val = (guid_t *)((u8 *)object + offset);
 
-       guid_copy((guid_t *)val, (const guid_t *)&tuple->value);
+       guid_copy((guid_t *)val, (const guid_t *)&tuple->uuid);
 
        return 0;
 }