[PATCH v5 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-11 Thread Richard Genoud
As atmel-ssc can be used with DMA, the documentation should be updated. Also, a configuration DMA example is given. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- .../devicetree/bindings/misc/atmel-ssc.txt | 23 +++- 1 file changed, 22 insertions(+), 1

[PATCH v5 6/7] ARM: AT91: DTS: sam9x5ek: enable SSC

2013-07-11 Thread Richard Genoud
Enable the SSC needed for the WM8731 codec Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5ek.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index e6fb309..f3e83f7

Re: [PATCH v4 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-10 Thread Richard Genoud
2013/7/9 Mark Brown : > On Tue, Jul 09, 2013 at 04:25:29PM +0200, Richard Genoud wrote: > >> - reg: Should contain SSC registers location and length >> - interrupts: Should contain SSC interrupt >> +For dma transfer: >> +- dmas: DMA specifier, consisting of a

Re: [PATCH v4 2/7] Documentation: DT: add sam9x5ek-wm8731 machine driver

2013-07-10 Thread Richard Genoud
2013/7/9 Mark Brown : > On Tue, Jul 09, 2013 at 04:25:28PM +0200, Richard Genoud wrote: >> This add the sound DT binding for sam9x5ek-wm8731 machine driver >> >> Signed-off-by: Richard Genoud >> --- >> .../bindings/sound/atmel-sam9x5-wm8731-audio.txt | 30 &g

Re: [PATCH v4 1/7] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-10 Thread Richard Genoud
2013/7/10 Bo Shen : > Hi Richard, Hi ! > On 7/9/2013 22:25, Richard Genoud wrote: > [snip] > > >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> + >

Re: [PATCH v4 1/7] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-10 Thread Richard Genoud
2013/7/9 Mark Brown : > On Tue, Jul 09, 2013 at 04:25:27PM +0200, Richard Genoud wrote: > >> +/* >> + * Authorized rates are: >> + * Rate = MCLK_RATE / (n * 2) >> + * Where n is in [1..4095] >> + * (cf register SSC_CMR) >> + */ >> +static unsign

Re: [PATCH v4 1/7] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-10 Thread Richard Genoud
2013/7/9 Mark Brown broo...@kernel.org: On Tue, Jul 09, 2013 at 04:25:27PM +0200, Richard Genoud wrote: +/* + * Authorized rates are: + * Rate = MCLK_RATE / (n * 2) + * Where n is in [1..4095] + * (cf register SSC_CMR) + */ +static unsigned int rates[] = { + 8000, + 16000

Re: [PATCH v4 1/7] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-10 Thread Richard Genoud
2013/7/10 Bo Shen voice.s...@atmel.com: Hi Richard, Hi ! On 7/9/2013 22:25, Richard Genoud wrote: [snip] +#include linux/module.h +#include linux/moduleparam.h +#include linux/kernel.h +#include linux/clk.h +#include linux/timer.h +#include linux/interrupt.h +#include linux

Re: [PATCH v4 2/7] Documentation: DT: add sam9x5ek-wm8731 machine driver

2013-07-10 Thread Richard Genoud
2013/7/9 Mark Brown broo...@kernel.org: On Tue, Jul 09, 2013 at 04:25:28PM +0200, Richard Genoud wrote: This add the sound DT binding for sam9x5ek-wm8731 machine driver Signed-off-by: Richard Genoud richard.gen...@gmail.com --- .../bindings/sound/atmel-sam9x5-wm8731-audio.txt | 30

Re: [PATCH v4 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-10 Thread Richard Genoud
2013/7/9 Mark Brown broo...@kernel.org: On Tue, Jul 09, 2013 at 04:25:29PM +0200, Richard Genoud wrote: - reg: Should contain SSC registers location and length - interrupts: Should contain SSC interrupt +For dma transfer: +- dmas: DMA specifier, consisting of a phandle to DMA controller

Re: [PATCH v4 0/7] Sound support for at91sam9x5-wm8731 based boards

2013-07-09 Thread Richard Genoud
2013/7/9 Mark Brown : > On Tue, Jul 09, 2013 at 04:25:26PM +0200, Richard Genoud wrote: >> [I've just seen that I forgot to cc Uwe to the cover letter, sorry for that.] > > This is the second or third copy of this patch set I've been sent > *today*. Worse, everything seem

[PATCH v4 4/7] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-09 Thread Richard Genoud
Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 57d45f5..cf78ac0 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts

[PATCH v4 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-09 Thread Richard Genoud
As atmel-ssc can be used with DMA, the documentation should be updated. Also, a configuration DMA example is given. Signed-off-by: Richard Genoud --- .../devicetree/bindings/misc/atmel-ssc.txt | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git

[PATCH v4 2/7] Documentation: DT: add sam9x5ek-wm8731 machine driver

2013-07-09 Thread Richard Genoud
This add the sound DT binding for sam9x5ek-wm8731 machine driver Signed-off-by: Richard Genoud --- .../bindings/sound/atmel-sam9x5-wm8731-audio.txt | 30 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-sam9x5-wm8731

[PATCH v4 1/7] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
from Nicolas that I forward ported and reworked to use only device tree] Signed-off-by: Nicolas Ferre Signed-off-by: Uwe Kleine-König Signed-off-by: Richard Genoud --- sound/soc/atmel/Kconfig | 10 ++ sound/soc/atmel/Makefile|2 + sound/soc/atmel/sam9x5_wm8731.c | 238

[PATCH v4 5/7] ARM: AT91: DTS: sam9x5ek: add WM8731 codec

2013-07-09 Thread Richard Genoud
The WM8731 codec on sam9x5ek board is on i2c, address 1A Signed-off-by: Richard Genoud Acked-by: Mark Brown --- arch/arm/boot/dts/at91sam9x5ek.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index

[PATCH v4 7/7] ARM: AT91: DTS: sam9x5ek: enable SSC

2013-07-09 Thread Richard Genoud
Enable the SSC needed for the WM8731 codec Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index 2bf51cc..0534c58 100644 --- a/arch/arm

[PATCH v4 6/7] ARM: AT91: DTS: sam9x5ek: add sound configuration

2013-07-09 Thread Richard Genoud
The sam9x5ek board has 2 jacks: headphone wired on RHPOUT/LHPOUT of the wm8731 line in wired on LLINEIN/RLINEIN of the wm8731 Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v4 0/7] Sound support for at91sam9x5-wm8731 based boards

2013-07-09 Thread Richard Genoud
8731: machine driver for at91sam9x5 wm8731 boards Richard Genoud (6): Documentation: DT: add sam9x5ek-wm8731 machine driver Documentation: DT: update atmel SSC with DMA binding ARM: AT91: DTS: sam9x5: add SSC DMA parameters ARM: AT91: DTS: sam9x5ek: add WM8731 codec ARM: AT91: DTS: sam9x5ek: add

Re: [PATCH v3 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-09 Thread Richard Genoud
2013/7/9 Nicolas Ferre : > On 09/07/2013 15:19, Richard Genoud : > >> 2013/7/9 Richard Genoud : >>> >>> As atmel-ssc can be used with DMA, the documentation should be updated. >>> Also, a configuration DMA example is given. >>> >>> Si

Re: [PATCH v3 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-09 Thread Richard Genoud
2013/7/9 Richard Genoud : > As atmel-ssc can be used with DMA, the documentation should be updated. > Also, a configuration DMA example is given. > > Signed-off-by: Richard Genoud > --- > .../devicetree/bindings/misc/atmel-ssc.txt | 24 > ++--

[PATCH v3 0/7] Sound support for at91sam9x5-wm8731 based boards

2013-07-09 Thread Richard Genoud
fig selection * use static snd_soc_card and snd_soc_dai_link structures. Best regards, Richard. Nicolas Ferre (1): sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards Richard Genoud (6): Documentation: DT: add sam9x5ek-wm8731 machine driver Documentation: DT: update atmel

[PATCH v3 7/7] ARM: AT91: DTS: sam9x5ek: enable SSC

2013-07-09 Thread Richard Genoud
Enable the SSC needed for the WM8731 codec Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index 2bf51cc..0534c58 100644 --- a/arch/arm

[PATCH v3 2/7] Documentation: DT: add sam9x5ek-wm8731 machine driver

2013-07-09 Thread Richard Genoud
This add the sound DT binding for sam9x5ek-wm8731 machine driver Signed-off-by: Richard Genoud --- .../bindings/sound/atmel-sam9x5-wm8731-audio.txt | 30 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/atmel-sam9x5-wm8731

[PATCH v3 4/7] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-09 Thread Richard Genoud
Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 57d45f5..cf78ac0 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts

[PATCH v3 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-09 Thread Richard Genoud
As atmel-ssc can be used with DMA, the documentation should be updated. Also, a configuration DMA example is given. Signed-off-by: Richard Genoud --- .../devicetree/bindings/misc/atmel-ssc.txt | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git

[PATCH v3 5/7] ARM: AT91: DTS: sam9x5ek: add WM8731 codec

2013-07-09 Thread Richard Genoud
The WM8731 codec on sam9x5ek board is on i2c, address 1A Signed-off-by: Richard Genoud Acked-by: Mark Brown --- arch/arm/boot/dts/at91sam9x5ek.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index

[PATCH v3 1/7] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
from Nicolas that I forward ported and reworked to use only device tree] Signed-off-by: Nicolas Ferre Signed-off-by: Uwe Kleine-König Signed-off-by: Richard Genoud --- sound/soc/atmel/Kconfig | 10 ++ sound/soc/atmel/Makefile|2 + sound/soc/atmel/sam9x5_wm8731.c | 238

[PATCH v3 6/7] ARM: AT91: DTS: sam9x5ek: add sound configuration

2013-07-09 Thread Richard Genoud
The sam9x5ek board has 2 jacks: headphone wired on RHPOUT/LHPOUT of the wm8731 line in wired on LLINEIN/RLINEIN of the wm8731 Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts

Re: [PATCH v2 1/5] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
2013/7/9 Mark Brown : > On Tue, Jul 09, 2013 at 10:19:45AM +0200, Richard Genoud wrote: >> 2013/7/8 Mark Brown : > >> > The obvious question here is of course if we can use the same driver for >> > both of them. > >> I haven't got a g20 to test that, but that

Re: [PATCH v2 2/5] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-09 Thread Richard Genoud
2013/7/9 Mark Brown : > On Tue, Jul 09, 2013 at 10:27:53AM +0200, Richard Genoud wrote: > >> The dma binding is documented here >> Documentation/devicetree/bindings/dma/atmel-dma.txt >> But you're right, I shoud update >> Documentation/devicetree/bindings/misc/a

Re: [PATCH v2 2/5] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-09 Thread Richard Genoud
2013/7/8 Mark Brown : > On Mon, Jul 08, 2013 at 03:29:50PM +0200, Richard Genoud wrote: >> Signed-off-by: Richard Genoud >> --- >> arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ > > There was no binding document in your first patch - there should be one > for any ne

Re: [PATCH v2 1/5] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
2013/7/8 Mark Brown : > On Mon, Jul 08, 2013 at 03:29:49PM +0200, Richard Genoud wrote: > >> + * Nicolas Ferre >> + * >> + * Based on sam9g20_wm8731.c by: >> + * Sedji Gaouaou > > The obvious question here is of course if we can use the same driv

Re: [alsa-devel] [PATCH v2 1/5] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
2013/7/8 Lars-Peter Clausen : > On 07/08/2013 03:29 PM, Richard Genoud wrote: > [...] >> +/* >> + * Logic for a wm8731 as connected on a at91sam9x5 based board. >> + */ >> +static int at91sam9x5ek_wm8731_init(struct snd_soc_pcm_runtime *rtd) >> +{ > [...] >

Re: [alsa-devel] [PATCH v2 1/5] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
2013/7/8 Lars-Peter Clausen l...@metafoo.de: On 07/08/2013 03:29 PM, Richard Genoud wrote: [...] +/* + * Logic for a wm8731 as connected on a at91sam9x5 based board. + */ +static int at91sam9x5ek_wm8731_init(struct snd_soc_pcm_runtime *rtd) +{ [...] + codec_dai-driver-playback.rates

Re: [PATCH v2 1/5] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
2013/7/8 Mark Brown broo...@kernel.org: On Mon, Jul 08, 2013 at 03:29:49PM +0200, Richard Genoud wrote: + * Nicolas Ferre nicolas.fe...@atmel.com + * + * Based on sam9g20_wm8731.c by: + * Sedji Gaouaou sedji.gaou...@atmel.com The obvious question here is of course if we can use

Re: [PATCH v2 2/5] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-09 Thread Richard Genoud
2013/7/8 Mark Brown broo...@kernel.org: On Mon, Jul 08, 2013 at 03:29:50PM +0200, Richard Genoud wrote: Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ There was no binding document in your first patch - there should be one for any

Re: [PATCH v2 2/5] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-09 Thread Richard Genoud
2013/7/9 Mark Brown broo...@kernel.org: On Tue, Jul 09, 2013 at 10:27:53AM +0200, Richard Genoud wrote: The dma binding is documented here Documentation/devicetree/bindings/dma/atmel-dma.txt But you're right, I shoud update Documentation/devicetree/bindings/misc/atmel-ssc.txt. No, you need

Re: [PATCH v2 1/5] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
2013/7/9 Mark Brown broo...@kernel.org: On Tue, Jul 09, 2013 at 10:19:45AM +0200, Richard Genoud wrote: 2013/7/8 Mark Brown broo...@kernel.org: The obvious question here is of course if we can use the same driver for both of them. I haven't got a g20 to test that, but that's the goal. I

[PATCH v3 1/7] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
: this is based on an old patch from Nicolas that I forward ported and reworked to use only device tree] Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de Signed-off-by: Richard Genoud richard.gen...@gmail.com --- sound/soc/atmel/Kconfig

[PATCH v3 6/7] ARM: AT91: DTS: sam9x5ek: add sound configuration

2013-07-09 Thread Richard Genoud
The sam9x5ek board has 2 jacks: headphone wired on RHPOUT/LHPOUT of the wm8731 line in wired on LLINEIN/RLINEIN of the wm8731 Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5ek.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH v3 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-09 Thread Richard Genoud
As atmel-ssc can be used with DMA, the documentation should be updated. Also, a configuration DMA example is given. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- .../devicetree/bindings/misc/atmel-ssc.txt | 24 ++-- 1 file changed, 22 insertions(+), 2

[PATCH v3 5/7] ARM: AT91: DTS: sam9x5ek: add WM8731 codec

2013-07-09 Thread Richard Genoud
The WM8731 codec on sam9x5ek board is on i2c, address 1A Signed-off-by: Richard Genoud richard.gen...@gmail.com Acked-by: Mark Brown broo...@linaro.org --- arch/arm/boot/dts/at91sam9x5ek.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch

[PATCH v3 4/7] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-09 Thread Richard Genoud
Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 57d45f5..cf78ac0 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b

[PATCH v3 7/7] ARM: AT91: DTS: sam9x5ek: enable SSC

2013-07-09 Thread Richard Genoud
Enable the SSC needed for the WM8731 codec Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5ek.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index 2bf51cc..0534c58

[PATCH v3 2/7] Documentation: DT: add sam9x5ek-wm8731 machine driver

2013-07-09 Thread Richard Genoud
This add the sound DT binding for sam9x5ek-wm8731 machine driver Signed-off-by: Richard Genoud richard.gen...@gmail.com --- .../bindings/sound/atmel-sam9x5-wm8731-audio.txt | 30 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v3 0/7] Sound support for at91sam9x5-wm8731 based boards

2013-07-09 Thread Richard Genoud
static snd_soc_card and snd_soc_dai_link structures. Best regards, Richard. Nicolas Ferre (1): sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards Richard Genoud (6): Documentation: DT: add sam9x5ek-wm8731 machine driver Documentation: DT: update atmel SSC with DMA binding ARM

Re: [PATCH v3 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-09 Thread Richard Genoud
2013/7/9 Richard Genoud richard.gen...@gmail.com: As atmel-ssc can be used with DMA, the documentation should be updated. Also, a configuration DMA example is given. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- .../devicetree/bindings/misc/atmel-ssc.txt | 24

Re: [PATCH v3 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-09 Thread Richard Genoud
2013/7/9 Nicolas Ferre nicolas.fe...@atmel.com: On 09/07/2013 15:19, Richard Genoud : 2013/7/9 Richard Genoud richard.gen...@gmail.com: As atmel-ssc can be used with DMA, the documentation should be updated. Also, a configuration DMA example is given. Signed-off-by: Richard Genoud

[PATCH v4 0/7] Sound support for at91sam9x5-wm8731 based boards

2013-07-09 Thread Richard Genoud
for at91sam9x5 wm8731 boards Richard Genoud (6): Documentation: DT: add sam9x5ek-wm8731 machine driver Documentation: DT: update atmel SSC with DMA binding ARM: AT91: DTS: sam9x5: add SSC DMA parameters ARM: AT91: DTS: sam9x5ek: add WM8731 codec ARM: AT91: DTS: sam9x5ek: add sound configuration ARM

[PATCH v4 6/7] ARM: AT91: DTS: sam9x5ek: add sound configuration

2013-07-09 Thread Richard Genoud
The sam9x5ek board has 2 jacks: headphone wired on RHPOUT/LHPOUT of the wm8731 line in wired on LLINEIN/RLINEIN of the wm8731 Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5ek.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH v4 1/7] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-09 Thread Richard Genoud
: this is based on an old patch from Nicolas that I forward ported and reworked to use only device tree] Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de Signed-off-by: Richard Genoud richard.gen...@gmail.com --- sound/soc/atmel/Kconfig

[PATCH v4 5/7] ARM: AT91: DTS: sam9x5ek: add WM8731 codec

2013-07-09 Thread Richard Genoud
The WM8731 codec on sam9x5ek board is on i2c, address 1A Signed-off-by: Richard Genoud richard.gen...@gmail.com Acked-by: Mark Brown broo...@linaro.org --- arch/arm/boot/dts/at91sam9x5ek.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch

[PATCH v4 7/7] ARM: AT91: DTS: sam9x5ek: enable SSC

2013-07-09 Thread Richard Genoud
Enable the SSC needed for the WM8731 codec Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5ek.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index 2bf51cc..0534c58

[PATCH v4 2/7] Documentation: DT: add sam9x5ek-wm8731 machine driver

2013-07-09 Thread Richard Genoud
This add the sound DT binding for sam9x5ek-wm8731 machine driver Signed-off-by: Richard Genoud richard.gen...@gmail.com --- .../bindings/sound/atmel-sam9x5-wm8731-audio.txt | 30 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v4 3/7] Documentation: DT: update atmel SSC with DMA binding

2013-07-09 Thread Richard Genoud
As atmel-ssc can be used with DMA, the documentation should be updated. Also, a configuration DMA example is given. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- .../devicetree/bindings/misc/atmel-ssc.txt | 20 +++- 1 file changed, 19 insertions(+), 1

[PATCH v4 4/7] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-09 Thread Richard Genoud
Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 57d45f5..cf78ac0 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b

Re: [PATCH v4 0/7] Sound support for at91sam9x5-wm8731 based boards

2013-07-09 Thread Richard Genoud
2013/7/9 Mark Brown broo...@kernel.org: On Tue, Jul 09, 2013 at 04:25:26PM +0200, Richard Genoud wrote: [I've just seen that I forgot to cc Uwe to the cover letter, sorry for that.] This is the second or third copy of this patch set I've been sent *today*. Worse, everything seems to be being

[PATCH v2 1/5] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-08 Thread Richard Genoud
from Nicolas that I forward ported and reworked to use only device tree] Signed-off-by: Nicolas Ferre Signed-off-by: Uwe Kleine-König Signed-off-by: Richard Genoud --- sound/soc/atmel/Kconfig | 10 ++ sound/soc/atmel/Makefile|2 + sound/soc/atmel/sam9x5_wm8731.c | 206

[PATCH v2 0/5] Sound support for at91sam9x5-wm8731 based boards

2013-07-08 Thread Richard Genoud
EL_SOC_PDC config selection * use static snd_soc_card and snd_soc_dai_link structures. Best regards, Richard. Nicolas Ferre (1): sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards Richard Genoud (4): ARM: AT91: DTS: sam9x5: add SSC DMA parameters ARM: AT91: DTS: sam9x5ek:

[PATCH v2 4/5] ARM: AT91: DTS: sam9x5ek: add sound configuration

2013-07-08 Thread Richard Genoud
The sam9x5ek board has 2 jacks: headphone wired on RHPOUT/LHPOUT of the wm8731 line in wired on LLINEIN/RLINEIN of the wm8731 Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v2 3/5] ARM: AT91: DTS: sam9x5ek: add WM8731 codec

2013-07-08 Thread Richard Genoud
The WM8731 codec on sam9x5ek board is on i2c, address 1A Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index d107241..e6fb309 100644

[PATCH v2 5/5] ARM: AT91: DTS: sam9x5ek: enable SSC

2013-07-08 Thread Richard Genoud
Enable the SSC needed for the WM8731 codec Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index bd0f7b8..6684d4b 100644 --- a/arch/arm

[PATCH v2 2/5] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-08 Thread Richard Genoud
Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 57d45f5..cf78ac0 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts

Re: [RFC PATCH 08/13] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-08 Thread Richard Genoud
2013/7/8 Bo Shen : > Hi Richard, > > > On 7/5/2013 23:15, Richard Genoud wrote: >>>> >>>> + card->dev = >dev; >>>> >>+ card->owner = THIS_MODULE; >>>> >>+ card->dai_link = dai; >>

Re: [RFC PATCH 08/13] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-08 Thread Richard Genoud
2013/7/8 Bo Shen voice.s...@atmel.com: Hi Richard, On 7/5/2013 23:15, Richard Genoud wrote: + card-dev = pdev-dev; + card-owner = THIS_MODULE; + card-dai_link = dai; + card-num_links = 1; + dai-name = WM8731; + dai-stream_name = WM8731 PCM

[PATCH v2 2/5] ARM: AT91: DTS: sam9x5: add SSC DMA parameters

2013-07-08 Thread Richard Genoud
Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 57d45f5..cf78ac0 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b

[PATCH v2 5/5] ARM: AT91: DTS: sam9x5ek: enable SSC

2013-07-08 Thread Richard Genoud
Enable the SSC needed for the WM8731 codec Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5ek.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index bd0f7b8..6684d4b

[PATCH v2 3/5] ARM: AT91: DTS: sam9x5ek: add WM8731 codec

2013-07-08 Thread Richard Genoud
The WM8731 codec on sam9x5ek board is on i2c, address 1A Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5ek.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index

[PATCH v2 0/5] Sound support for at91sam9x5-wm8731 based boards

2013-07-08 Thread Richard Genoud
config selection * use static snd_soc_card and snd_soc_dai_link structures. Best regards, Richard. Nicolas Ferre (1): sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards Richard Genoud (4): ARM: AT91: DTS: sam9x5: add SSC DMA parameters ARM: AT91: DTS: sam9x5ek: add WM8731

[PATCH v2 4/5] ARM: AT91: DTS: sam9x5ek: add sound configuration

2013-07-08 Thread Richard Genoud
The sam9x5ek board has 2 jacks: headphone wired on RHPOUT/LHPOUT of the wm8731 line in wired on LLINEIN/RLINEIN of the wm8731 Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/boot/dts/at91sam9x5ek.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

[PATCH v2 1/5] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-08 Thread Richard Genoud
: this is based on an old patch from Nicolas that I forward ported and reworked to use only device tree] Signed-off-by: Nicolas Ferre nicolas.fe...@atmel.com Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de Signed-off-by: Richard Genoud richard.gen...@gmail.com --- sound/soc/atmel/Kconfig

Re: [RFC PATCH 08/13] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-05 Thread Richard Genoud
2013/7/5 Mark Brown : > On Fri, Jul 05, 2013 at 05:15:05PM +0200, Richard Genoud wrote: >> 2013/7/2 Bo Shen : > >> >> From: Nicolas Ferre >> >> >> >> Description of the Asoc machine driver for an at91sam9x5 based board >> >> with

Re: [RFC PATCH 03/13] ARM: at91: DTS: sam9x5: add clock for SSC DT entry

2013-07-05 Thread Richard Genoud
2013/7/2 Bo Shen : > Hi Richard, > > > On 7/1/2013 16:39, Richard Genoud wrote: >> >> Signed-off-by: Richard Genoud >> --- >> arch/arm/mach-at91/at91sam9x5.c |1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/arch/arm/mach-

Re: [RFC PATCH 02/13] misc: atmel_ssc: keep the count of pdev->id

2013-07-05 Thread Richard Genoud
2013/7/2 Bo Shen : > Hi Richard, > > > On 7/1/2013 16:39, Richard Genoud wrote: >> >> With device tree, pdev->id is always -1, so we introduce a local >> counter. >> >> Signed-off-by: Richard Genoud >> --- >> drivers/misc/atm

Re: [RFC PATCH 08/13] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-05 Thread Richard Genoud
2013/7/2 Bo Shen : > Hi Richard, > > Will move this patch before 5, 6, 7? yes, you're right. > > > On 7/1/2013 16:39, Richard Genoud wrote: >> >> From: Nicolas Ferre >> >> Description of the Asoc machine driver for an at91sam9x5 based board >

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-05 Thread Richard Genoud
2013/7/5 Bo Shen : > Yes, I aware this issue. > Actually the system not hang, the resource all are occupied by the > interrupt. This because, we enable the interrupt, when once interrupt occur, > I try many methods to clear it, however we can not clear it. So, it > generates the interrupt all the

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-05 Thread Richard Genoud
2013/7/5 Bo Shen voice.s...@atmel.com: Yes, I aware this issue. Actually the system not hang, the resource all are occupied by the interrupt. This because, we enable the interrupt, when once interrupt occur, I try many methods to clear it, however we can not clear it. So, it generates the

Re: [RFC PATCH 08/13] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-05 Thread Richard Genoud
2013/7/2 Bo Shen voice.s...@atmel.com: Hi Richard, Will move this patch before 5, 6, 7? yes, you're right. On 7/1/2013 16:39, Richard Genoud wrote: From: Nicolas Ferre nicolas.fe...@atmel.com Description of the Asoc machine driver for an at91sam9x5 based board with a wm8731 audio DAC

Re: [RFC PATCH 02/13] misc: atmel_ssc: keep the count of pdev-id

2013-07-05 Thread Richard Genoud
2013/7/2 Bo Shen voice.s...@atmel.com: Hi Richard, On 7/1/2013 16:39, Richard Genoud wrote: With device tree, pdev-id is always -1, so we introduce a local counter. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- drivers/misc/atmel-ssc.c |7 +++ 1 file changed, 7

Re: [RFC PATCH 03/13] ARM: at91: DTS: sam9x5: add clock for SSC DT entry

2013-07-05 Thread Richard Genoud
2013/7/2 Bo Shen voice.s...@atmel.com: Hi Richard, On 7/1/2013 16:39, Richard Genoud wrote: Signed-off-by: Richard Genoud richard.gen...@gmail.com --- arch/arm/mach-at91/at91sam9x5.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/at91sam9x5.c b/arch/arm

Re: [RFC PATCH 08/13] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-05 Thread Richard Genoud
2013/7/5 Mark Brown broo...@kernel.org: On Fri, Jul 05, 2013 at 05:15:05PM +0200, Richard Genoud wrote: 2013/7/2 Bo Shen voice.s...@atmel.com: From: Nicolas Ferre nicolas.fe...@atmel.com Description of the Asoc machine driver for an at91sam9x5 based board with a wm8731 audio DAC. Wm8731

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-04 Thread Richard Genoud
2013/7/4 Bo Shen : > Hi Richard, > > > On 7/3/2013 23:51, Richard Genoud wrote: >>> >>> >but there's a violent hang (kernel stops, no trace) when I try the >>> > record : >>> >arecord -v -V stereo -Dplug:default -f cd -t wav -c 2 /t

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-04 Thread Richard Genoud
2013/7/4 Bo Shen voice.s...@atmel.com: Hi Richard, On 7/3/2013 23:51, Richard Genoud wrote: but there's a violent hang (kernel stops, no trace) when I try the record : arecord -v -V stereo -Dplug:default -f cd -t wav -c 2 /tmp/toto.wav last thing I see is : dma dma0chan3: atc_control (3

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-03 Thread Richard Genoud
2013/7/3 Richard Genoud : > 2013/7/2 Bo Shen : >> Hi Richard, >> >> >> On 7/2/2013 16:13, Richard Genoud wrote: >>>> >>>> Please hold on of this, as to the ASoC dmaengine will deal with this. So, >>>> we >>>> >no

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-03 Thread Richard Genoud
2013/7/2 Bo Shen : > Hi Richard, > > > On 7/2/2013 16:13, Richard Genoud wrote: >>> >>> Please hold on of this, as to the ASoC dmaengine will deal with this. So, >>> we >>> >not need do it manually. >>> > >>> >Now,

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-03 Thread Richard Genoud
2013/7/2 Bo Shen voice.s...@atmel.com: Hi Richard, On 7/2/2013 16:13, Richard Genoud wrote: Please hold on of this, as to the ASoC dmaengine will deal with this. So, we not need do it manually. Now, I am working on it. And will send out the patch soon after testing OK. Ok, I stay

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-03 Thread Richard Genoud
2013/7/3 Richard Genoud richard.gen...@gmail.com: 2013/7/2 Bo Shen voice.s...@atmel.com: Hi Richard, On 7/2/2013 16:13, Richard Genoud wrote: Please hold on of this, as to the ASoC dmaengine will deal with this. So, we not need do it manually. Now, I am working on it. And will send out

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-02 Thread Richard Genoud
2013/7/2 Bo Shen : > Hi Richard, > > > On 7/1/2013 16:39, Richard Genoud wrote: >> >> The ssc device has to fill the at_dma_slave structure with the >> device tree informations. >> Doing a of_dma_request_slave_channel()+dma_release_channel() for that >&g

Re: [RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-02 Thread Richard Genoud
2013/7/2 Bo Shen voice.s...@atmel.com: Hi Richard, On 7/1/2013 16:39, Richard Genoud wrote: The ssc device has to fill the at_dma_slave structure with the device tree informations. Doing a of_dma_request_slave_channel()+dma_release_channel() for that seems wrong (or at least not very

[RFC PATCH 00/13] audio support for at91sam9x5ek board

2013-07-01 Thread Richard Genoud
ce the code has been changed.] Best regards, Richard. Nicolas Ferre (3): sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards sound: atmel_ssc_dai: PM: actually stopping clock on suspend/resume sound: wm8731: rework power management Richard Genoud (10): misc: atmel_ssc:

[RFC PATCH 01/13] misc: atmel_ssc: add device tree DMA support

2013-07-01 Thread Richard Genoud
The ssc device has to fill the at_dma_slave structure with the device tree informations. Doing a of_dma_request_slave_channel()+dma_release_channel() for that seems wrong (or at least not very clean). Signed-off-by: Richard Genoud --- drivers/misc/atmel-ssc.c| 56

[RFC PATCH 02/13] misc: atmel_ssc: keep the count of pdev->id

2013-07-01 Thread Richard Genoud
With device tree, pdev->id is always -1, so we introduce a local counter. Signed-off-by: Richard Genoud --- drivers/misc/atmel-ssc.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index 3afbd82..d1ec5ab 100644 --- a/drivers/m

[RFC PATCH 04/13] ARM: at91: DTS: sam9x5: add SSC DMA parameters

2013-07-01 Thread Richard Genoud
Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5.dtsi |3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5.dtsi b/arch/arm/boot/dts/at91sam9x5.dtsi index 57d45f5..cf78ac0 100644 --- a/arch/arm/boot/dts/at91sam9x5.dtsi +++ b/arch/arm/boot/dts

[RFC PATCH 07/13] ARM: AT91: DTS: sam9x5ek: enable SSC

2013-07-01 Thread Richard Genoud
Enable the SSC needed for the WM8731 codec Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index 77e4073..4f3584c 100644 --- a/arch/arm

[RFC PATCH 06/13] ARM: AT91: DTS: sam9x5ek: add sound configuration

2013-07-01 Thread Richard Genoud
The sam9x5ek board has 2 jacks: headphone wired on RHPOUT/LHPOUT of the wm8731 line in wired on LLINEIN/RLINEIN of the wm8731 Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts

[RFC PATCH 12/13] sound: wm8731: rework power management

2013-07-01 Thread Richard Genoud
From: Nicolas Ferre - preserve crystal oscillator across suspend/resume sequence: enabled by default,it should be kept enabled on resume. - if codec is in active state: set the active bit at resume time. Signed-off-by: Nicolas Ferre Signed-off-by: Uwe Kleine-König ---

[RFC PATCH 09/13] sound: atmel-pcm: don't return ok if pcm-dma is not implemented

2013-07-01 Thread Richard Genoud
If DMA is not selected, atmel_pcm_dma_platform_register() should fail. Like that, the driver knows it can't use it. Signed-off-by: Richard Genoud --- sound/soc/atmel/atmel-pcm.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/atmel/atmel-pcm.h b/sound/soc/atmel

[RFC PATCH 05/13] ARM: AT91: DTS: sam9x5ek: add WM8731 codec

2013-07-01 Thread Richard Genoud
The WM8731 codec on sam9x5ek board is on i2c, address 1A Signed-off-by: Richard Genoud --- arch/arm/boot/dts/at91sam9x5ek.dtsi |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91sam9x5ek.dtsi b/arch/arm/boot/dts/at91sam9x5ek.dtsi index b753855..a81a1a6 100644

[RFC PATCH 08/13] sound: sam9x5_wm8731: machine driver for at91sam9x5 wm8731 boards

2013-07-01 Thread Richard Genoud
from Nicolas that I forward ported and reworked to use only device tree] Signed-off-by: Nicolas Ferre Signed-off-by: Uwe Kleine-König Signed-off-by: Richard Genoud --- sound/soc/atmel/Kconfig | 12 ++ sound/soc/atmel/Makefile|2 + sound/soc/atmel/sam9x5_wm8731.c | 232

<    1   2   3   4   5   6   7   8   9   >