remove ruby 1.8.7
extract code to method in DeviceInterface::ALSA