ALSA: pcm: Simplify params_period_bytes()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 29 Dec 2014 18:41:43 +0000 (19:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 30 Dec 2014 15:41:55 +0000 (16:41 +0100)
commitcd9978f1d3dbb9596a7ab9c652cb0d9b355489b5
treef539b609f5adc32ddb701023170981d115feae30
parent89827ca9dd6173da7dcc035653bea67fa6ac0cbf
ALSA: pcm: Simplify params_period_bytes()

The hw_params struct has a parameter that contains the period size in bytes.
This can be used instead of deriving the value from other parameters. This
is similar to e.g. params_buffer_bytes()

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm_params.h