/* Compute the required header size. 
This function takes into account alignment of the q31 values that will follow the header. */
static uint32_t compute_header_size(int num_output_samples)
/* Compute the required header size. 
This function takes into account alignment of the q31 values that will follow the header. */
static uint32_t compute_header_size(int num_output_samples)
{
	uint32_t size = sizeof(struct sensor_data_generic_header) +
			(num_output_samples * sizeof(enum sensor_channel));
	return (size + 3) & ~0x3;
}