mirror of https://github.com/thesofproject/sof.git
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:
parent
4095fefd6c
commit
8fa5ff5793
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue