Skip to content

Commit f87bf7d

Browse files
j-schambacherpelwell
authored andcommitted
ASoC: Fix 16bit sample support for Hifiberry DACplusADC
Same issue as #5919. 'width' needs to be set independent of clocking mode. Signed-off-by: j-schambacher <[email protected]>
1 parent fae2848 commit f87bf7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sound/soc/bcm/hifiberry_dacplusadc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,11 @@ static int snd_rpi_hifiberry_dacplusadc_hw_params(
229229
int ret = 0;
230230
struct snd_soc_pcm_runtime *rtd = substream->private_data;
231231
int channels = params_channels(params);
232-
int width = 32;
232+
int width = snd_pcm_format_width(params_format(params));
233233

234234
if (snd_rpi_hifiberry_is_dacpro) {
235235
struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component;
236236

237-
width = snd_pcm_format_physical_width(params_format(params));
238-
239237
snd_rpi_hifiberry_dacplusadc_set_sclk(component,
240238
params_rate(params));
241239

0 commit comments

Comments
 (0)