All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: topology: fix endianness issues
@ 2019-04-04 19:13 Pierre-Louis Bossart
  2019-04-04 19:13 ` [PATCH 1/2] " Pierre-Louis Bossart
  2019-04-04 19:13 ` [PATCH 2/2] ASoC: topology: fix big-endian check Pierre-Louis Bossart
  0 siblings, 2 replies; 5+ messages in thread
From: Pierre-Louis Bossart @ 2019-04-04 19:13 UTC (permalink / raw)
  To: alsa-devel; +Cc: tiwai, liam.r.girdwood, vkoul, broonie, Pierre-Louis Bossart

Sparse reports dozens of issues with the topology code due to
endianness. Fix as needed.  There are still a handful of issues that I
could not figure out (see below), but at least now the logs become
usable.

The only remaining problematic files are the SST loader and Skylake
topology handling, which are likely to remain as is without any
updates.


sound/soc/soc-ops.c:657:33: warning: invalid assignment: &=
sound/soc/soc-ops.c:657:33:    left side has type unsigned short
sound/soc/soc-ops.c:657:33:    right side has type restricted __be16
sound/soc/soc-ops.c:661:33: warning: invalid assignment: &=
sound/soc/soc-ops.c:661:33:    left side has type unsigned int
sound/soc/soc-ops.c:661:33:    right side has type restricted __be32
sound/soc/soc-topology.c:616:70: warning: restricted __le32 degrades to integer
sound/soc/soc-topology.c:618:70: warning: restricted __le32 degrades to integer
sound/soc/soc-topology.c:633:60: warning: restricted __le32 degrades to integer
sound/soc/soc-topology.c:635:60: warning: restricted __le32 degrades to integer
sound/soc/soc-topology.c:637:61: warning: restricted __le32 degrades to integer
sound/soc/soc-topology.c:650:60: warning: restricted __le32 degrades to integer
sound/soc/soc-topology.c:652:60: warning: restricted __le32 degrades to integer
sound/soc/soc-topology.c:654:61: warning: restricted __le32 degrades to integer
sound/soc/soc-topology.c:2507:16: warning: restricted __le32 degrades to integer

Pierre-Louis Bossart (2):
  ASoC: topology: fix endianness issues
  ASoC: topology: fix big-endian check

 sound/soc/soc-topology.c | 295 +++++++++++++++++++++++----------------
 1 file changed, 173 insertions(+), 122 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-04-05  2:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-04 19:13 [PATCH 0/2] ASoC: topology: fix endianness issues Pierre-Louis Bossart
2019-04-04 19:13 ` [PATCH 1/2] " Pierre-Louis Bossart
2019-04-05  2:43   ` Applied "ASoC: topology: fix endianness issues" to the asoc tree Mark Brown
2019-04-04 19:13 ` [PATCH 2/2] ASoC: topology: fix big-endian check Pierre-Louis Bossart
2019-04-05  2:42   ` Applied "ASoC: topology: fix big-endian check" to the asoc tree Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.