[ALSA] sound/core/: fix 3 off-by-one errors