File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -355,18 +355,23 @@ static int sof_rt5682_hw_params(struct snd_pcm_substream *substream,
355
355
clk_id = RT5682_SCLK_S_PLL1 ;
356
356
break ;
357
357
case CODEC_RT5682S :
358
- /*
359
- * For MCLK = 24.576MHz and sample rate = 96KHz case, use PLL1 We don't test
360
- * pll_out or params_rate() here since rt5682s PLL2 doesn't support 24.576MHz
361
- * input, so we have no choice but to use PLL1. Besides, we will not use PLL at
362
- * all if pll_in == pll_out. ex, MCLK = 24.576Mhz and sample rate = 48KHz
363
- */
364
- if (pll_in == 24576000 ) {
358
+ /* check plla_table and pllb_table in rt5682s.c */
359
+ switch (pll_in ) {
360
+ case 3072000 :
361
+ case 24576000 :
362
+ /*
363
+ * For MCLK = 24.576MHz and sample rate = 96KHz case, use PLL1 We don't test
364
+ * pll_out or params_rate() here since rt5682s PLL2 doesn't support 24.576MHz
365
+ * input, so we have no choice but to use PLL1. Besides, we will not use PLL at
366
+ * all if pll_in == pll_out. ex, MCLK = 24.576Mhz and sample rate = 48KHz
367
+ */
365
368
pll_id = RT5682S_PLL1 ;
366
369
clk_id = RT5682S_SCLK_S_PLL1 ;
367
- } else {
370
+ break ;
371
+ default :
368
372
pll_id = RT5682S_PLL2 ;
369
373
clk_id = RT5682S_SCLK_S_PLL2 ;
374
+ break ;
370
375
}
371
376
break ;
372
377
default :
You can’t perform that action at this time.
0 commit comments