Merge pull request #4443 from at-visions/GothamAlsaRecover

Added error recovery if snd_pcm_writei fails
Merge pull request #4434 from margro/gotham_vfs_crash

[Gotham] Crash fix: Add check for negative file length.