Hi igorpadykov,
It might not be ctrl+c problem. Because aplay got a new ps id and alsa do not pop 'Device is busy'
I've been also using snd_pcm_writei() in a demo to test this. This function returns the exact frames that
I wrote but still sometimes no sound(meaning that starting demo several times and some times are good, few are gone
no sound).
I doubt I might be wm8962 was in a wrong state (caused by power, clock, etc) in our board. Though /proc/asound/card0/pcm0p/sub0/status show the device is RUNNING.
If you want to see the codes of demo, I'll paste here later.
Regards
Xu