1 From d94d483e5f0798294aa1eb738c203acc4a7f415e Mon Sep 17 00:00:00 2001
2 From: Matthias Reichl <hias@horus.com>
3 Date: Fri, 2 Feb 2018 20:30:42 +0100
4 Subject: [PATCH 214/454] ASoC: hifiberry_dacplus: fix S24_LE format
6 Remove set_bclk_ratio call so 24-bit data is transmitted in
9 Signed-off-by: Matthias Reichl <hias@horus.com>
11 sound/soc/bcm/hifiberry_dacplus.c | 20 +++-----------------
12 1 file changed, 3 insertions(+), 17 deletions(-)
14 --- a/sound/soc/bcm/hifiberry_dacplus.c
15 +++ b/sound/soc/bcm/hifiberry_dacplus.c
16 @@ -216,20 +216,11 @@ static int snd_rpi_hifiberry_dacplus_upd
20 -static int snd_rpi_hifiberry_dacplus_set_bclk_ratio_pro(
21 - struct snd_soc_dai *cpu_dai, struct snd_pcm_hw_params *params)
23 - int bratio = snd_pcm_format_physical_width(params_format(params))
24 - * params_channels(params);
25 - return snd_soc_dai_set_bclk_ratio(cpu_dai, bratio);
28 static int snd_rpi_hifiberry_dacplus_hw_params(
29 struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params)
33 struct snd_soc_pcm_runtime *rtd = substream->private_data;
34 - struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
36 if (snd_rpi_hifiberry_is_dacpro) {
37 struct snd_soc_codec *codec = rtd->codec;
38 @@ -237,13 +228,8 @@ static int snd_rpi_hifiberry_dacplus_hw_
39 snd_rpi_hifiberry_dacplus_set_sclk(codec,
42 - ret = snd_rpi_hifiberry_dacplus_set_bclk_ratio_pro(cpu_dai,
45 - ret = snd_rpi_hifiberry_dacplus_update_rate_den(
48 - ret = snd_soc_dai_set_bclk_ratio(cpu_dai, 64);
49 + ret = snd_rpi_hifiberry_dacplus_update_rate_den(