Skip to content

Commit

Permalink
Drivers: Intel: DMIC: Remove in_active parameter from dmic_stop()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
singalsu authored and keyonjie committed Aug 9, 2021
1 parent ccfc9e6 commit 8eed33d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/drivers/intel/dmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8eed33d

Please sign in to comment.