CR_2018_TDM_Playback_and_Record_Simultaneously
authorWalker Chen <walker.chen@starfivetech.com>
Tue, 30 Aug 2022 13:26:52 +0000 (21:26 +0800)
committerWalker Chen <walker.chen@starfivetech.com>
Tue, 30 Aug 2022 13:27:12 +0000 (21:27 +0800)
1.Resolved redmine #2018, playback and record simultaneously with 11.025k, 22.05k or 44.1k sample rate.

Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
sound/soc/codecs/wm8960.c

index d32ffc8..b2ee143 100755 (executable)
@@ -871,8 +871,6 @@ static int wm8960_hw_params(struct snd_pcm_substream *substream,
                snd_soc_component_write(component, WM8960_POWER1, 0xfe);
                snd_soc_component_write(component, WM8960_POWER2, 0x1f8);
                snd_soc_component_write(component, WM8960_POWER2, 0x1f9);
-               snd_soc_component_write(component, WM8960_PLL1, 0x28);
-               snd_soc_component_write(component, WM8960_PLL1, 0x38);
 
                freq_in = wm8960->freq_in;
                freq_out = wm8960_configure_pll(component, freq_in, &i, &j, &k);
@@ -1325,7 +1323,7 @@ static int wm8960_set_pll(struct snd_soc_component *component,
 
        /* Turn it on */
        snd_soc_component_update_bits(component, WM8960_POWER2, 0x1, 0x1);
-       msleep(250);
+       msleep(150);
        snd_soc_component_update_bits(component, WM8960_CLOCK1, 0x1, 0x1);
 
        return 0;