Skip to content

Commit 8fa5ff5

Browse files
lyakhlgirdwood
authored andcommitted
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>
1 parent 4095fef commit 8fa5ff5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/drivers/intel/ssp

src/drivers/intel/ssp/ssp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,9 @@ static uint32_t ssp_get_init_delay_ms(struct dai *dai)
11791179
{
11801180
struct ssp_pdata *ssp = dai_get_drvdata(dai);
11811181

1182+
if (ssp->clk_active & SSP_CLK_BCLK_ACTIVE)
1183+
return 0;
1184+
11821185
/* drive BCLK early for guaranteed time,
11831186
* before first FSYNC, it is required by some codecs
11841187
*/

0 commit comments

Comments
 (0)