ongoing alsa_capture refactoring