Fix snd_pcm_write*() return values at start up
Fix snd_pcm_write*() return values at start up

If an error occurs at starting the stream, snd_pcm_write*() should return
an error value instead of the size to be written.

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