From 70a8148b5207273f3cef4aafe247a4dc229c91b3 Mon Sep 17 00:00:00 2001 From: Tomasz Wasilczyk Date: Mon, 9 Jan 2017 14:26:43 -0800 Subject: [PATCH] Make metadata field mandatory for program info struct. Also, make metadata struct aligned. Test: VTS, manual Change-Id: I7dbd62d36ac21475fdbc49723ba3ea6744460d21 --- include/system/radio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/system/radio.h b/include/system/radio.h index d73d3ae49..36e218889 100644 --- a/include/system/radio.h +++ b/include/system/radio.h @@ -170,7 +170,8 @@ typedef struct radio_program_info { bool stereo; /* program is stereo or not */ bool digital; /* digital program or not (e.g HD Radio program) */ unsigned int signal_strength; /* signal strength from 0 to 100 */ - radio_metadata_t *metadata; /* non null if meta data are present (e.g PTY, song title ...) */ + /* meta data (e.g PTY, song title ...), must not be NULL */ + __attribute__((aligned(8))) radio_metadata_t *metadata; } radio_program_info_t;