]> git.ipfire.org Git - thirdparty/openwrt.git/blob
9684da81da79adc1c344f134f32f0de7c85895b4
[thirdparty/openwrt.git] /
1 From 81dd89d13d7e605be8622bf09fafccc8711e7e50 Mon Sep 17 00:00:00 2001
2 From: j-schambacher <joerg@hifiberry.com>
3 Date: Wed, 13 Mar 2024 10:31:18 +0100
4 Subject: [PATCH 0976/1085] ASoC: Fix 16bit sample support for Hifiberry
5 DACplusADC
6
7 Same issue as #5919.
8 'width' needs to be set independent of clocking mode.
9
10 Signed-off-by: j-schambacher <joerg@hifiberry.com>
11 ---
12 sound/soc/bcm/hifiberry_dacplusadc.c | 4 +---
13 1 file changed, 1 insertion(+), 3 deletions(-)
14
15 --- a/sound/soc/bcm/hifiberry_dacplusadc.c
16 +++ b/sound/soc/bcm/hifiberry_dacplusadc.c
17 @@ -229,13 +229,11 @@ static int snd_rpi_hifiberry_dacplusadc_
18 int ret = 0;
19 struct snd_soc_pcm_runtime *rtd = substream->private_data;
20 int channels = params_channels(params);
21 - int width = 32;
22 + int width = snd_pcm_format_width(params_format(params));
23
24 if (snd_rpi_hifiberry_is_dacpro) {
25 struct snd_soc_component *component = asoc_rtd_to_codec(rtd, 0)->component;
26
27 - width = snd_pcm_format_width(params_format(params));
28 -
29 snd_rpi_hifiberry_dacplusadc_set_sclk(component,
30 params_rate(params));
31