[alsa-lib] Avoid zero division
[alsa-lib] Avoid zero division

Check the invalid parameters in snd_pcm_sw_params() beforehand to avoid
zero division.

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