brcm2708: add kernel 4.14 support
[openwrt/staging/hauke.git] / target / linux / brcm2708 / patches-4.14 / 950-0211-ASoC-allo-piano-dac-plus-fix-S24_LE-format.patch
1 From 43c0810969b4aee4e7a836212bc2eb8987f31d8a 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 211/454] ASoC: allo-piano-dac-plus: fix S24_LE format
5
6 Remove set_bclk_ratio call so 24-bit data is transmitted in
7 24 bclk cycles.
8
9 Signed-off-by: Matthias Reichl <hias@horus.com>
10 ---
11 sound/soc/bcm/allo-piano-dac-plus.c | 5 -----
12 1 file changed, 5 deletions(-)
13
14 --- a/sound/soc/bcm/allo-piano-dac-plus.c
15 +++ b/sound/soc/bcm/allo-piano-dac-plus.c
16 @@ -795,9 +795,6 @@ static int snd_allo_piano_dac_hw_params(
17 struct snd_pcm_hw_params *params)
18 {
19 struct snd_soc_pcm_runtime *rtd = substream->private_data;
20 - struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
21 - unsigned int sample_bits =
22 - snd_pcm_format_physical_width(params_format(params));
23 unsigned int rate = params_rate(params);
24 struct snd_soc_card *card = rtd->card;
25 struct glb_pool *glb_ptr = card->drvdata;
26 @@ -839,8 +836,6 @@ static int snd_allo_piano_dac_hw_params(
27 if (ret < 0)
28 return ret;
29
30 - ret = snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2);
31 -
32 return ret;
33 }
34