ASoC: compress: Add helper functions for component trigger/set_params
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 5 Feb 2019 11:18:13 +0000 (11:18 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 Feb 2019 15:51:04 +0000 (15:51 +0000)
commit4ef0ecb80e348f1888b0c7ebfa8f7c1ec3ed9006
tree39da67607132053654ccd382b7c12d2eef47ba1d
parent52cadf1fdbe87a3a3eee11d9cc4873796903c934
ASoC: compress: Add helper functions for component trigger/set_params

The trigger and set_params callbacks are called from 3 and 2 separate
loops respectively, tidy up the code a little by factoring these out
into helper functions.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-compress.c