mirror of https://github.com/thesofproject/sof.git
ssp: remove unnecessary direction parameter in ssp_stop
No longer needed since we do the same thing for playback and capture Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
This commit is contained in:
parent
e079f9eb96
commit
66bc346267
|
@ -313,7 +313,7 @@ static void ssp_start(struct dai *dai, int direction)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* stop the SSP for either playback or capture */
|
/* 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);
|
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_STOP:
|
||||||
case COMP_CMD_PAUSE:
|
case COMP_CMD_PAUSE:
|
||||||
ssp->state[direction] = COMP_STATE_PAUSED;
|
ssp->state[direction] = COMP_STATE_PAUSED;
|
||||||
ssp_stop(dai, direction);
|
ssp_stop(dai);
|
||||||
break;
|
break;
|
||||||
case COMP_CMD_RESUME:
|
case COMP_CMD_RESUME:
|
||||||
ssp_context_restore(dai);
|
ssp_context_restore(dai);
|
||||||
|
|
Loading…
Reference in New Issue