brcm2708: update to latest patches from the RPi foundation
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.14 / 950-0217-ASoC-raspidac3-fix-S24_LE-format.patch
1 From 0999f5ef037e213e87af656f23ae305d1885b006 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 217/454] ASoC: raspidac3: 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/raspidac3.c | 14 --------------
14 1 file changed, 14 deletions(-)
15
16 --- a/sound/soc/bcm/raspidac3.c
17 +++ b/sound/soc/bcm/raspidac3.c
18 @@ -68,19 +68,6 @@ static int snd_rpi_raspidac3_init(struct
19 return 0;
20 }
21
22 -/* set hw parameters */
23 -static int snd_rpi_raspidac3_hw_params(struct snd_pcm_substream *substream,
24 - struct snd_pcm_hw_params *params)
25 -{
26 - struct snd_soc_pcm_runtime *rtd = substream->private_data;
27 - struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
28 -
29 - unsigned int sample_bits =
30 - snd_pcm_format_physical_width(params_format(params));
31 -
32 - return snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2);
33 -}
34 -
35 /* startup */
36 static int snd_rpi_raspidac3_startup(struct snd_pcm_substream *substream) {
37 struct snd_soc_pcm_runtime *rtd = substream->private_data;
38 @@ -98,7 +85,6 @@ static void snd_rpi_raspidac3_shutdown(s
39
40 /* machine stream operations */
41 static struct snd_soc_ops snd_rpi_raspidac3_ops = {
42 - .hw_params = snd_rpi_raspidac3_hw_params,
43 .startup = snd_rpi_raspidac3_startup,
44 .shutdown = snd_rpi_raspidac3_shutdown,
45 };