Factored out OpenSL config code