]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dpcm: rework runtime stream merge
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 5 Jul 2018 10:13:48 +0000 (12:13 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 11 Jul 2018 10:58:37 +0000 (11:58 +0100)
commit1cdd33b2d7b49ab28300183a37e68a394aa9de3a
tree0e4a1621faf1a0e566c82b576fdd73c934948048
parentfb76a4a7d9efd82296d89f8280f710b561a5b3f0
ASoC: dpcm: rework runtime stream merge

The goal of this patch is to simplify a bit dpcm runtime stream merge
by removing several local variables.

ATM, merge functions return the BE 'filter' values which should then be
filtered against the FE stream values. This create a lot of local
variable and unnecessary init of min and max.

Instead of this, we can pass the FE stream values directly and let the
BE filtering functions perform the merge 'in-place'

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c