Hot answers tagged hot-plug
From the kernel documentation: The hotplug mechanism asynchronously notifies userspace when hardware is inserted, removed, or undergoes a similar significant state change. There is an event variable for modules, called DRIVER, that suggests a driver for handling the hotplugged device.
As Caleb mentioned, PulseAudio lets you migrate streams from one device to another. To switch automatically, rather than manually through pavucontrol, add the module-switch-on-connect module to your PulseAudio configuration as described here: http://askubuntu.com/questions/158241/automatically-change-sound-input-output-device/158250#158250
Only top voted, non community-wiki answers of a minimum length are eligible