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
6 Remove set_bclk_ratio call so 24-bit data is transmitted in
9 Also remove hw_params as it's no longer needed.
11 Signed-off-by: Matthias Reichl <hias@horus.com>
13 sound/soc/bcm/raspidac3.c | 14 --------------
14 1 file changed, 14 deletions(-)
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
22 -/* set hw parameters */
23 -static int snd_rpi_raspidac3_hw_params(struct snd_pcm_substream *substream,
24 - struct snd_pcm_hw_params *params)
26 - struct snd_soc_pcm_runtime *rtd = substream->private_data;
27 - struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
29 - unsigned int sample_bits =
30 - snd_pcm_format_physical_width(params_format(params));
32 - return snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2);
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
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,