[Sound-open-firmware] [PATCH 08/10] ssp: remove unnecessary direction parameter in ssp_stop
Pierre-Louis Bossart
pierre-louis.bossart at linux.intel.com
Mon Sep 25 21:52:16 CEST 2017
No longer needed since we do the same thing for playback and capture
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
---
src/drivers/ssp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/drivers/ssp.c b/src/drivers/ssp.c
index c12c7f1..a472974 100644
--- a/src/drivers/ssp.c
+++ b/src/drivers/ssp.c
@@ -313,7 +313,7 @@ static void ssp_start(struct dai *dai, int direction)
}
/* stop the SSP for either playback or capture */
-static void ssp_stop(struct dai *dai, int direction)
+static void ssp_stop(struct dai *dai)
{
struct ssp_pdata *ssp = dai_get_drvdata(dai);
@@ -362,7 +362,7 @@ static int ssp_trigger(struct dai *dai, int cmd, int direction)
case COMP_CMD_STOP:
case COMP_CMD_PAUSE:
ssp->state[direction] = COMP_STATE_PAUSED;
- ssp_stop(dai, direction);
+ ssp_stop(dai);
break;
case COMP_CMD_RESUME:
ssp_context_restore(dai);
--
2.11.0
More information about the Sound-open-firmware
mailing list