commit | 5c7264cfbb209efea04bbbd69b8b4f5f2fc5f86d | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed May 24 22:36:23 2017 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Fri Jun 02 19:38:22 2017 +0200 |
tree | 851ec067b37a9fd5bfdae9e8211f3cabf25a53d2 | |
parent | 9f60063094ba72e2767be18289baf5151f1f1c2f [diff] |
ALSA: pcm: Unify read/write loop Both __snd_pcm_lib_read() and __snd_pcm_write() functions have almost the same code to loop over samples. For simplification, this patch unifies both as the single helper, __snd_pcm_lib_xfer(). Other than that, there should be no functional change by this patch. Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>