output/{alsa,oss}: add assertions
output/alsa: fix endless loop at end of file in dsd_usb mode