Skip to content
Snippets Groups Projects
mnt2001-audio-sai-workaround-rate-matching.patch 684 B
Newer Older
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 9d436b0c5718..5423921535e9 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,
 			"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;