[PATCH 1/2] ALSA: hda: Fix potential access overflow in beep helper