Skip to content
Snippets Groups Projects
mnt2001-audio-sai-workaround-rate-matching.patch 706 B
Newer Older
  • Learn to ignore specific revisions
  • diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
    index 9d436b0c5718..6f408ee6043c 100644
    --- a/sound/soc/fsl/fsl_sai.c
    +++ b/sound/soc/fsl/fsl_sai.c
    @@ -348,21 +348,12 @@ static int fsl_sai_set_bclk(struct snd_soc_dai *dai, bool tx, u32 freq)
     
     		ret = clk_rate - ratio * freq;
     
    -		/*
    -		 * Drop the source that can not be
    -		 * divided into the required rate.
    -		 */
    -		if (ret != 0 && clk_rate / ret < 1000)
    -			continue;
    -
    -		dev_dbg(dai->dev,
    +		dev_info(dai->dev,
     			"ratio %d for freq %dHz based on clock %ldHz\n",
     			ratio, freq, clk_rate);
     
     		if (ratio % 2 == 0 && ratio >= 2 && ratio <= 512)
     			ratio /= 2;
    -		else
    -			continue;
     
     		if (ret < savesub) {
     			savediv = ratio;