ssp: only delay start for the first stream

The initialisation delay in SSP start-up sequence is only needed when
the first stream initialises the SSP. If an SSP port is used for both
playback and capture, the second stream doesn't need to delay start
up again.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2021-08-31 15:15:23 +02:00 committed by Liam Girdwood
parent 4095fefd6c
commit 8fa5ff5793
1 changed files with 3 additions and 0 deletions

View File

@ -1179,6 +1179,9 @@ static uint32_t ssp_get_init_delay_ms(struct dai *dai)
{
struct ssp_pdata *ssp = dai_get_drvdata(dai);
if (ssp->clk_active & SSP_CLK_BCLK_ACTIVE)
return 0;
/* drive BCLK early for guaranteed time,
* before first FSYNC, it is required by some codecs
*/