ALSA: firewire-lib: simplify function to calculate the number of data blocks
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 22 May 2015 14:00:51 +0000 (23:00 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 23 May 2015 07:13:19 +0000 (09:13 +0200)
commit875be09160345442196d0889ddf48f747701e12c
tree6a8c8105c389a0b1a477e7f9d8873a37f567482f
parenta2064710ba2b38a4f07c1b273c389b70b14b2d18
ALSA: firewire-lib: simplify function to calculate the number of data blocks

This function is called according to conditions between the value of
syt and streaming mode(blocking or non-blocking).

To simplify caller's work, this commit push these conditions to the
function.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp.c