OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | From 7e9c82c499592f518e45cf9d049529470971dac7 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 215/454] ASoC: iqaudio-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 | Signed-off-by: Matthias Reichl <hias@horus.com> |
||
10 | --- |
||
11 | sound/soc/bcm/iqaudio-dac.c | 18 ------------------ |
||
12 | 1 file changed, 18 deletions(-) |
||
13 | |||
14 | --- a/sound/soc/bcm/iqaudio-dac.c |
||
15 | +++ b/sound/soc/bcm/iqaudio-dac.c |
||
16 | @@ -43,18 +43,6 @@ static int snd_rpi_iqaudio_dac_init(stru |
||
17 | return 0; |
||
18 | } |
||
19 | |||
20 | -static int snd_rpi_iqaudio_dac_hw_params(struct snd_pcm_substream *substream, |
||
21 | - struct snd_pcm_hw_params *params) |
||
22 | -{ |
||
23 | - struct snd_soc_pcm_runtime *rtd = substream->private_data; |
||
24 | - struct snd_soc_dai *cpu_dai = rtd->cpu_dai; |
||
25 | - |
||
26 | - unsigned int sample_bits = |
||
27 | - snd_pcm_format_physical_width(params_format(params)); |
||
28 | - |
||
29 | - return snd_soc_dai_set_bclk_ratio(cpu_dai, sample_bits * 2); |
||
30 | -} |
||
31 | - |
||
32 | static void snd_rpi_iqaudio_gpio_mute(struct snd_soc_card *card) |
||
33 | { |
||
34 | if (mute_gpio) { |
||
35 | @@ -109,11 +97,6 @@ static int snd_rpi_iqaudio_set_bias_leve |
||
36 | return 0; |
||
37 | } |
||
38 | |||
39 | -/* machine stream operations */ |
||
40 | -static struct snd_soc_ops snd_rpi_iqaudio_dac_ops = { |
||
41 | - .hw_params = snd_rpi_iqaudio_dac_hw_params, |
||
42 | -}; |
||
43 | - |
||
44 | static struct snd_soc_dai_link snd_rpi_iqaudio_dac_dai[] = { |
||
45 | { |
||
46 | .cpu_dai_name = "bcm2708-i2s.0", |
||
47 | @@ -122,7 +105,6 @@ static struct snd_soc_dai_link snd_rpi_i |
||
48 | .codec_name = "pcm512x.1-004c", |
||
49 | .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | |
||
50 | SND_SOC_DAIFMT_CBS_CFS, |
||
51 | - .ops = &snd_rpi_iqaudio_dac_ops, |
||
52 | .init = snd_rpi_iqaudio_dac_init, |
||
53 | }, |
||
54 | }; |