From 66ec5863f2b5508be1d3aec721313a4a25144222 Mon Sep 17 00:00:00 2001 From: Walker Chen Date: Tue, 30 Aug 2022 21:26:52 +0800 Subject: [PATCH] CR_2018_TDM_Playback_and_Record_Simultaneously 1.Resolved redmine #2018, playback and record simultaneously with 11.025k, 22.05k or 44.1k sample rate. Signed-off-by: Walker Chen --- sound/soc/codecs/wm8960.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c index d32ffc8..b2ee143 100755 --- a/sound/soc/codecs/wm8960.c +++ b/sound/soc/codecs/wm8960.c @@ -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; -- 2.7.4