Skip to content

Commit 64dae31

Browse files
brentlumwasko
authored andcommitted
ssp: bclk/mclk control is ignored
The code to control bclk/mclk is skipped after the SSP is configured once. The clock control code should be executed always. Signed-off-by: Brent Lu <brent.lu@intel.com>
1 parent bdadfc9 commit 64dae31

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/drivers/intel/ssp

src/drivers/intel/ssp/ssp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static int ssp_set_config(struct dai *dai,
271271
if (ssp->state[DAI_DIR_PLAYBACK] > COMP_STATE_READY ||
272272
ssp->state[DAI_DIR_CAPTURE] > COMP_STATE_READY) {
273273
dai_info(dai, "ssp_set_config(): Already configured. Ignore config");
274-
goto out;
274+
goto clk;
275275
}
276276

277277
dai_info(dai, "ssp_set_config(), config->format = 0x%4x",
@@ -711,6 +711,7 @@ static int ssp_set_config(struct dai *dai,
711711
ssp->state[DAI_DIR_PLAYBACK] = COMP_STATE_PREPARE;
712712
ssp->state[DAI_DIR_CAPTURE] = COMP_STATE_PREPARE;
713713

714+
clk:
714715
switch (config->flags & SOF_DAI_CONFIG_FLAGS_MASK) {
715716
case SOF_DAI_CONFIG_FLAGS_HW_PARAMS:
716717
if (ssp->params.clks_control & SOF_DAI_INTEL_SSP_CLKCTRL_MCLK_ES) {

0 commit comments

Comments
 (0)