[PATCH] ASoC: pcm512x: Remove hardcoding of pll-lock to GPIO4

2015-03-23 Thread Howard Mitchell
Currently GPIO4 is hardcoded to output the pll-lock signal. Unfortunately this is after the pll-out GPIO is configured which is selectable in the device tree. Therefore it is not possible to use GPIO4 for pll-out. Therefore this patch removes the configuration of GPIO4. Signed-off-by: Howard

Re: [PATCH] ASoC:pcm512x: Make PLL lock output selectable via device tree.

2015-03-23 Thread Howard Mitchell
On 23/03/15 16:56, Mark Brown wrote: On Mon, Mar 23, 2015 at 11:00:53AM +, Peter Rosin wrote: Strongly agreed that we should fix this before it is published (I assumed that is was included in 3.19, it felt so long ago that Mark merged it...). My preference would be to remove the pll-lock th

Re: [PATCH] ASoC:pcm512x: Make PLL lock output selectable via device tree.

2015-03-23 Thread Howard Mitchell
On 23/03/15 11:00, Peter Rosin wrote: Howard Mitchell wrote: On 22/03/15 16:24, Mark Brown wrote: On Fri, Mar 20, 2015 at 09:22:43PM +, Howard Mitchell wrote: + if (pcm512x->pll_lock) { +if (of_property_read_u32(np, "pll-lock"

Re: [PATCH] ASoC:pcm512x: Make PLL lock output selectable via device tree.

2015-03-23 Thread Howard Mitchell
On 22/03/15 16:24, Mark Brown wrote: On Fri, Mar 20, 2015 at 09:22:43PM +, Howard Mitchell wrote: + if (pcm512x->pll_lock) { +if (of_property_read_u32(np, "pll-lock", &val) >= 0) { +if (val > 6) { +

[PATCH] ASoC:pcm512x: Make PLL lock output selectable via device tree.

2015-03-20 Thread Howard Mitchell
Currently the PLL Lock output signal is hardcoded to GPIO4. This makes it seletable in the same way as pll-in and pll-out. Signed-off-by: Howard Mitchell --- .../devicetree/bindings/sound/pcm512x.txt |3 ++ sound/soc/codecs/pcm512x.c | 47

[PATCH] ASoC:pcm512x: Fix divide by zero issue.

2015-03-20 Thread Howard Mitchell
If den=1 and pllin_rate>20MHz then den and num are adjusted to 0 causing a divide by zero error a few lines further on. Therefore this patch correctly scales num and den such that pllin_rate/den < 20MHz as required in the device data sheet. Signed-off-by: Howard Mitchell --- sound/soc/

[PATCH 1/2] ALSA:ControlName.txt: Add 'Analogue' as a prefix for volume controls

2015-03-19 Thread Howard Mitchell
0db and -6dB of gain that is intended to set the fullscale ouput voltage of a DAC. The TI pcm512x family of DAcs have such a control. In this case the device/driver reset defaults are preferred. Signed-off-by: Howard Mitchell --- Documentation/sound/alsa/ControlNames.txt | 10 +- 1 file c

[PATCH 2/2] ASoC:pcm512x: Add 'Analogue' prefix to analogue volume controls

2015-03-19 Thread Howard Mitchell
This is to ensure that 'alsactl restore' does not apply default initialisation as the chip reset defaults are preferred. Signed-off-by: Howard Mitchell --- sound/soc/codecs/pcm512x.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/pcm512x

[PATCH] soc-core: Fix volsw_range funcs so SOC_DOUBLE_R_RANGE_TLV works.

2014-09-19 Thread Howard Mitchell
_RANGE_TLV("", , , 0, 40, 255, 1, ) the range 215..0 was being sent to the hardware. This commit corrects this to 255..40 so it is consistent with the non-invert case. Signed-off-by: Howard Mitchell --- sound/soc/soc-core.c | 20