]> git.alsa-project.org Git - alsa-lib.git/commit
topology: fix the unaligned access
authorJaroslav Kysela <perex@perex.cz>
Mon, 31 Aug 2020 12:27:26 +0000 (14:27 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 31 Aug 2020 12:27:30 +0000 (14:27 +0200)
commitab73253924ad8d46f94ab1212e0f05ebc2e3dcc5
tree6747198e610a3f5f3960002f50a63a82ceeab465
parent84c6aeef5ca89c0686ae2a9ed90504010f8fe9e6
topology: fix the unaligned access

Introduce unaligned_get32/put32 helpers to deal with the
packed structures.

Use the gcc __BYTE_ORDER__ defines for the endian checks.
It may be improved to support other compilation environment.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/topology/parser.c
src/topology/pcm.c
src/topology/tplg_local.h