brcm2708: add kernel 4.14 support
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.14 / 950-0212-ASoC-allo-piano-dac-fix-S24_LE-format.patch
1 From e2036314d5a510acfd84b2f9f22a6b39e324769e 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 212/454] ASoC: allo-piano-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 and ops as they are no longer needed.
10
11 Signed-off-by: Matthias Reichl <hias@horus.com>
12 ---
13 sound/soc/bcm/allo-piano-dac.c | 18 ------------------
14 1 file changed, 18 deletions(-)
15
16 --- a/sound/soc/bcm/allo-piano-dac.c
17 +++ b/sound/soc/bcm/allo-piano-dac.c
18 @@ -42,23 +42,6 @@ static int snd_allo_piano_dac_init(struc
19 return 0;
20 }
21
22 -static int snd_allo_piano_dac_hw_params(
23 - struct snd_pcm_substream *substream, 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 -
28 - unsigned int sample_bits =
29 - snd_pcm_format_physical_width(params_format(params));
30 -
31 - return snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2);
32 -}
33 -
34 -/* machine stream operations */
35 -static struct snd_soc_ops snd_allo_piano_dac_ops = {
36 - .hw_params = snd_allo_piano_dac_hw_params,
37 -};
38 -
39 static struct snd_soc_dai_link snd_allo_piano_dac_dai[] = {
40 {
41 .name = "Piano DAC",
42 @@ -70,7 +53,6 @@ static struct snd_soc_dai_link snd_allo_
43 .dai_fmt = SND_SOC_DAIFMT_I2S |
44 SND_SOC_DAIFMT_NB_NF |
45 SND_SOC_DAIFMT_CBS_CFS,
46 - .ops = &snd_allo_piano_dac_ops,
47 .init = snd_allo_piano_dac_init,
48 },
49 };