Make snd_hctl_wait() respect the API
Make snd_hctl_wait() respect the API

snd_hctl_wait() currently makes a lot of assumptions that fall outside
the defined API. snd_pcm_wait(), however, follows the API nicely so the
new version is based on that.

Signed-off-by: Pierre Ossman <bab2716a102901578b484e069651afd4c1961234@cendio.se>

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