ALSA: test off by one in setsamplerate()