Skip to content

Commit cc33d27

Browse files
Joerg Schambacherpopcornmix
authored andcommitted
Fixes an onboard clock detection problem of the PRO versions
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 <[email protected]>
1 parent 6d117bd commit cc33d27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sound/soc/bcm/hifiberry_dacplus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static void snd_rpi_hifiberry_dacplus_select_clk(struct snd_soc_component *compo
111111
snd_soc_component_update_bits(component, PCM512x_GPIO_CONTROL_1, 0x24, 0x04);
112112
break;
113113
}
114-
usleep_range(2000, 2100);
114+
usleep_range(3000, 4000);
115115
}
116116

117117
static void snd_rpi_hifiberry_dacplus_clk_gpio(struct snd_soc_component *component)

sound/soc/bcm/hifiberry_dacplusadcpro.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static void snd_rpi_hifiberry_dacplusadcpro_select_clk(
190190
PCM512x_GPIO_CONTROL_1, 0x24, 0x04);
191191
break;
192192
}
193-
usleep_range(2000, 2100);
193+
usleep_range(3000, 4000);
194194
}
195195

196196
static void snd_rpi_hifiberry_dacplusadcpro_clk_gpio(struct snd_soc_component *component)

0 commit comments

Comments
 (0)