Fixing ALSA bugs introduced while implementing OpenSLES