Added automatic source detection to ALSA.