diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-05-24 18:15:26 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-02 19:38:22 +0200 |
commit | 9f60063094ba72e2767be18289baf5151f1f1c2f (patch) | |
tree | 780af35592fc93b2e600c13b661a37ed0e5e7923 /crypto/anubis.c | |
parent | c48f12ee0acbd431d6c3ed249f79a6d68b757058 (diff) | |
download | linux-9f60063094ba72e2767be18289baf5151f1f1c2f.tar.bz2 |
ALSA: pcm: More unification of PCM transfer codes
This patch proceeds more abstraction of PCM read/write loop codes.
For both interleaved and non-interleaved transfers, the same copy or
silence transfer code (which is defined as pcm_transfer_f) is used
now. This became possible since we switched to byte size to copy_*
and fill_silence ops argument instead of frames.
And, for both read and write, we can use the same copy function (which
is defined as pcm_copy_f), just depending on whether interleaved or
non-interleaved mode.
The transfer function is determined at the beginning of the loop,
depending on whether the driver gives the specific copy ops or it's
the standard read/write.
Another bonus by this change is that we now guarantee the silencing
behavior when NULL buffer is passed to write helpers. It'll simplify
some codes later.
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'crypto/anubis.c')
0 files changed, 0 insertions, 0 deletions