Skip to content
Commit 763e5067 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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



Introduce two new direction-neutral helpers to calculate the avail and
hw_avail values, and clean up the code with them.

The two separated forward and rewind functions are gathered to the
unified functions.

No functional change but only code reductions.

Reviewed-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 057666b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment