1 From d2a6770500f0f284850834ec08fbee5fd6aaee3e Mon Sep 17 00:00:00 2001
2 From: Joerg Schambacher <joerg@i2audio.com>
3 Date: Thu, 10 Jun 2021 13:14:05 +0200
4 Subject: [PATCH] Fixes an onboard clock detection problem of the PRO
7 Increasing the sleep time after clock selection to 3-4ms
8 allows the correct detection of all combinations of DAC+ Pro
9 and DAC+ADC Pro sound cards and the various PI revisions.
11 Signed-off-by: Joerg Schambacher <joerg@hifiberry.com>
13 sound/soc/bcm/hifiberry_dacplus.c | 2 +-
14 sound/soc/bcm/hifiberry_dacplusadcpro.c | 2 +-
15 2 files changed, 2 insertions(+), 2 deletions(-)
17 --- a/sound/soc/bcm/hifiberry_dacplus.c
18 +++ b/sound/soc/bcm/hifiberry_dacplus.c
19 @@ -111,7 +111,7 @@ static void snd_rpi_hifiberry_dacplus_se
20 snd_soc_component_update_bits(component, PCM512x_GPIO_CONTROL_1, 0x24, 0x04);
23 - usleep_range(2000, 2100);
24 + usleep_range(3000, 4000);
27 static void snd_rpi_hifiberry_dacplus_clk_gpio(struct snd_soc_component *component)
28 --- a/sound/soc/bcm/hifiberry_dacplusadcpro.c
29 +++ b/sound/soc/bcm/hifiberry_dacplusadcpro.c
30 @@ -190,7 +190,7 @@ static void snd_rpi_hifiberry_dacplusadc
31 PCM512x_GPIO_CONTROL_1, 0x24, 0x04);
34 - usleep_range(2000, 2100);
35 + usleep_range(3000, 4000);
38 static void snd_rpi_hifiberry_dacplusadcpro_clk_gpio(struct snd_soc_component *component)