ASoC: omap-mcbsp: Move out the FIFO check from set_threshold and get_delay
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 8 Nov 2018 07:29:57 +0000 (09:29 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 13 Nov 2018 17:50:19 +0000 (09:50 -0800)
commitbe51c576e8495fd2cffbababad6de7e0a0a562ba
treed70d1e182d86a0eb6db00a5afb61e0a81e0f4935
parent59d177f65f50df07f5f0b461c968d2fab7597af1
ASoC: omap-mcbsp: Move out the FIFO check from set_threshold and get_delay

Check if the McBSP have FIFO in the omap_mcbsp_set_threshold() and
omap_mcbsp_dai_delay() delay function to skip calling the lower layer if
it is not needed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Tested-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/omap/mcbsp.c
sound/soc/omap/omap-mcbsp.c