Skip to content

Commit 4f5f780

Browse files
plbossartmwasko
authored andcommitted
intel: ssp: fix missing return code on bclk configuration issue
when the bclk is not based on the default source, we will thrown an error message but return the result of the mclk configuration. Fix by adding an explicit -EINVAL return value. Reported-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Brent Lu <brent.lu@intel.com>
1 parent 07b9b87 commit 4f5f780

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/drivers/intel/ssp

src/drivers/intel/ssp/ssp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ static int ssp_pre_start(struct dai *dai)
657657
if (ssp_freq[SSP_DEFAULT_IDX].freq % config->ssp.bclk_rate != 0) {
658658
dai_err(dai, "invalid bclk_rate = %d for dai_index = %d",
659659
config->ssp.bclk_rate, config->dai_index);
660+
ret = -EINVAL;
660661
goto out;
661662
}
662663

0 commit comments

Comments
 (0)