Fixes an onboard clock detection problem of the PRO versions
authorJoerg Schambacher <joerg@i2audio.com>
Thu, 10 Jun 2021 11:14:05 +0000 (13:14 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 10 Jun 2021 11:54:04 +0000 (12:54 +0100)
Increasing the sleep time after clock selection to 3-4ms
allows the correct detection of all combinations of DAC+ Pro
and DAC+ADC Pro sound cards and the various PI revisions.

Signed-off-by: Joerg Schambacher <joerg@hifiberry.com>
sound/soc/bcm/hifiberry_dacplus.c
sound/soc/bcm/hifiberry_dacplusadcpro.c

index bdcac1b..1d89854 100644 (file)
@@ -111,7 +111,7 @@ static void snd_rpi_hifiberry_dacplus_select_clk(struct snd_soc_component *compo
                snd_soc_component_update_bits(component, PCM512x_GPIO_CONTROL_1, 0x24, 0x04);
                break;
        }
-       usleep_range(2000, 2100);
+       usleep_range(3000, 4000);
 }
 
 static void snd_rpi_hifiberry_dacplus_clk_gpio(struct snd_soc_component *component)
index 8b04d30..79eccdb 100644 (file)
@@ -190,7 +190,7 @@ static void snd_rpi_hifiberry_dacplusadcpro_select_clk(
                                PCM512x_GPIO_CONTROL_1, 0x24, 0x04);
                break;
        }
-       usleep_range(2000, 2100);
+       usleep_range(3000, 4000);
 }
 
 static void snd_rpi_hifiberry_dacplusadcpro_clk_gpio(struct snd_soc_component *component)