brcm2708: update to latest patches from the RPi foundation
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.14 / 950-0216-ASoC-justboom-dac-fix-S24_LE-format.patch
1 From 27a3d69088ae59f17ec5cb2c8b757b422b1589a9 Mon Sep 17 00:00:00 2001
2 From: Matthias Reichl <hias@horus.com>
3 Date: Fri, 2 Feb 2018 20:30:43 +0100
4 Subject: [PATCH 216/454] ASoC: justboom-dac: fix S24_LE format
5
6 Remove set_bclk_ratio call so 24-bit data is transmitted in
7 24 bclk cycles.
8
9 Also remove hw_params as it's no longer needed.
10
11 Signed-off-by: Matthias Reichl <hias@horus.com>
12 ---
13 sound/soc/bcm/justboom-dac.c | 12 ------------
14 1 file changed, 12 deletions(-)
15
16 --- a/sound/soc/bcm/justboom-dac.c
17 +++ b/sound/soc/bcm/justboom-dac.c
18 @@ -49,17 +49,6 @@ static int snd_rpi_justboom_dac_init(str
19 return 0;
20 }
21
22 -static int snd_rpi_justboom_dac_hw_params(struct snd_pcm_substream *substream,
23 - struct snd_pcm_hw_params *params)
24 -{
25 - struct snd_soc_pcm_runtime *rtd = substream->private_data;
26 - struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
27 - /*return snd_soc_dai_set_bclk_ratio(cpu_dai, 64);*/
28 - unsigned int sample_bits =
29 - snd_pcm_format_physical_width(params_format(params));
30 - return snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2);
31 -}
32 -
33 static int snd_rpi_justboom_dac_startup(struct snd_pcm_substream *substream) {
34 struct snd_soc_pcm_runtime *rtd = substream->private_data;
35 struct snd_soc_codec *codec = rtd->codec;
36 @@ -75,7 +64,6 @@ static void snd_rpi_justboom_dac_shutdow
37
38 /* machine stream operations */
39 static struct snd_soc_ops snd_rpi_justboom_dac_ops = {
40 - .hw_params = snd_rpi_justboom_dac_hw_params,
41 .startup = snd_rpi_justboom_dac_startup,
42 .shutdown = snd_rpi_justboom_dac_shutdown,
43 };