Replace some assert() with runtime checks
Replace some assert() with runtime checks

assert() for sanity checks that can happen in runtime isn't a good idea.
Replaced it with the real check.

Signed-off-by: Takashi Iwai <4596b3305151c7ee743192a95d394341e3d3b644@suse.de>

lgirdwood/alsa-lib,tiwai/alsa-lib,alsa-project/alsa-lib,mikelima/alsa-lib,tiwai/alsa-lib,mengdonglin/alsa-lib,lgirdwood/alsa-lib,mikelima/alsa-lib,Distrotech/alsa-lib,gittup/alsa-lib,mengdonglin/alsa-lib,zedongchen/alsa-lib,lgirdwood/alsa-lib,lgirdwood/alsa-lib,zedongchen/alsa-lib,Distrotech/alsa-lib,takaswie/alsa-lib,alsa-project/alsa-lib,mikelima/alsa-lib,zedongchen/alsa-lib,Distrotech/alsa-lib,mikelima/alsa-lib,tiwai/alsa-lib,lgirdwood/alsa-lib,zedongchen/alsa-lib,tiwai/alsa-lib,Distrotech/alsa-lib,zedongchen/alsa-lib,alsa-project/alsa-lib,mikelima/alsa-lib,takaswie/alsa-lib,mengdonglin/alsa-lib,gittup/alsa-lib,takaswie/alsa-lib,Distrotech/alsa-lib,takaswie/alsa-lib,mengdonglin/alsa-lib,mengdonglin/alsa-lib,gittup/alsa-lib,alsa-project/alsa-lib,gittup/alsa-lib,takaswie/alsa-lib