Added flag to allow alsa to do software resampling if supported

This allows capturing streams of lower/higher sample rate than the hardware might support, for example pulling an 8K ulaw sample from a card that only supports 48k sampling.
The flag is by default off, and is optional, so existing code should work just fine.