ALSA: pcm: Clean up with snd_pcm_avail() and snd_pcm_hw_avail() helpers