From 8eed33d6a7e81456d3893d0af75ebdd4a94a2382 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> Date: Fri, 4 Jun 2021 15:47:41 +0300 Subject: [PATCH] Drivers: Intel: DMIC: Remove in_active parameter from dmic_stop() Cleanup to trigger() since the parameter is not needed to protect from errors with bit mask active FIFOs tracking. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com> --- src/drivers/intel/dmic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/intel/dmic.c b/src/drivers/intel/dmic.c index d3b9f0a412e8..8f20a0a4a0e1 100644 --- a/src/drivers/intel/dmic.c +++ b/src/drivers/intel/dmic.c @@ -1437,7 +1437,7 @@ static void dmic_stop_fifo_packers(struct dai *dai, int fifo_index) } /* stop the DMIC for capture */ -static void dmic_stop(struct dai *dai, bool in_active) +static void dmic_stop(struct dai *dai) { struct dmic_pdata *dmic = dai_get_drvdata(dai); int *uncached_dmic_active_fifos_mask = cache_to_uncache(&dmic_active_fifos_mask); @@ -1527,11 +1527,11 @@ static int dmic_trigger(struct dai *dai, int cmd, int direction) break; case COMP_TRIGGER_STOP: dmic->state = COMP_STATE_PREPARE; - dmic_stop(dai, true); + dmic_stop(dai); break; case COMP_TRIGGER_PAUSE: dmic->state = COMP_STATE_PAUSED; - dmic_stop(dai, false); + dmic_stop(dai); break; case COMP_TRIGGER_RESUME: dmic_context_restore(dai);