[PATCH v3 1/2] ASoC: stm32: add bindings for SAI

2017-04-10 Thread olivier moysan
This patch adds documentation of device tree bindings for the STM32 SAI ASoC driver. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-sai.txt | 89 ++ 1 file changed, 89 insertions(+) create mode 100644 Documen

[PATCH v3 2/2] ASoC: stm32: add SAI driver

2017-04-10 Thread olivier moysan
This patch implements SAI ASoC driver for STM32. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/Kconfig | 1 + sound/soc/Makefile| 1 + sound/soc/stm/Kconfig | 8 + sound/soc/stm/Makefile| 6 + sound/soc/stm/stm32

[PATCH v3 0/2] Add STM32 SAI support

2017-04-10 Thread olivier moysan
| |B registers | || || ++ || |+--+| || ++ v3: correct DT bindings - remove aliases - use audio graph card olivier moysan (2): ASoC: stm32: add bindings for SAI ASoC: stm32: add SAI driver .../devicetree/bindings/sound/st,stm32-sai.txt |

[PATCH v4 2/2] ASoC: stm32: add SAI driver

2017-04-11 Thread olivier moysan
This patch implements SAI ASoC driver for STM32. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/Kconfig | 1 + sound/soc/Makefile| 1 + sound/soc/stm/Kconfig | 8 + sound/soc/stm/Makefile| 6 + sound/soc/stm/stm32

[PATCH v4 1/2] ASoC: stm32: add bindings for SAI

2017-04-11 Thread olivier moysan
This patch adds documentation of device tree bindings for the STM32 SAI ASoC driver. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-sai.txt | 89 ++ 1 file changed, 89 insertions(+) create mode 100644 Documen

[PATCH v4 0/2] Add STM32 SAI support

2017-04-11 Thread olivier moysan
| |B registers | || || ++ || |+--+| || ++ v3 -> v4 Apply minor changes from Peter review olivier moysan (2): ASoC: stm32: add bindings for SAI ASoC: stm32: add SAI driver .../devicetree/bindings/sound/st,stm32-sai.txt | 89 +

[PATCH v3 2/3] ASoC: stm32: Add I2S driver

2017-05-11 Thread olivier moysan
Add I2S ASoC driver for STM32. This version of the driver supports only exclusive playback and capture interface. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 2 +- sound/soc/stm/Makefile| 4 + sound/soc/stm/stm32_i2s.c

[PATCH v3 0/3] Add I2S driver

2017-05-11 Thread olivier moysan
justified standard: right_j - PCM short: dsp_a PCM long format is not exposed as it does not match supported ASoC standards. v2 -> v3 - fix spinlock handling olivier moysan (3): dt-bindings: Document STM32 I2S bindings ASoC: stm32: Add I2S driver ASoC: stm32: Add full duplex supp

[PATCH v3 3/3] ASoC: stm32: Add full duplex support to i2s

2017-05-11 Thread olivier moysan
This patch allows to use i2s interface either as single audio path (rx or tx), or bidirectional audio path. This patch is added separately, as the driver does not follow recommended use of the interface, to support this configuration. Signed-off-by: olivier moysan <olivier.moy...@st.

[PATCH v3 1/3] dt-bindings: Document STM32 I2S bindings

2017-05-11 Thread olivier moysan
Add documentation of device tree bindings for STM32 SPI/I2S. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-i2s.txt | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/so

[PATCH v2 0/3] Add I2S driver

2017-05-10 Thread olivier moysan
justified standard: right_j - PCM short: dsp_a PCM long format is not exposed as it does not match supported ASoC standards. olivier moysan (3): dt-bindings: Document STM32 I2S bindings ASoC: stm32: Add I2S driver ASoC: stm32: Add full duplex support to i2s .../devicetree/bindings/sound/st

[PATCH v2 3/3] ASoC: stm32: Add full duplex support to i2s

2017-05-10 Thread olivier moysan
This patch allows to use i2s interface either as single audio path (rx or tx), or bidirectional audio path. This patch is added separately, as the driver does not follow recommended use of the interface, to support this configuration. Signed-off-by: olivier moysan <olivier.moy...@st.

[PATCH v2 2/3] ASoC: stm32: Add I2S driver

2017-05-10 Thread olivier moysan
Add I2S ASoC driver for STM32. This version of the driver supports only exclusive playback and capture interface. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 2 +- sound/soc/stm/Makefile| 4 + sound/soc/stm/stm32_i2s.c

[PATCH v2 1/3] dt-bindings: Document STM32 I2S bindings

2017-05-10 Thread olivier moysan
Add documentation of device tree bindings for STM32 SPI/I2S. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-i2s.txt | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/so

[PATCH v2 2/2] ASoC: stm32: Add SPDIFRX support

2017-06-20 Thread olivier moysan
Add SPDIFRX support to STM32. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 10 + sound/soc/stm/Makefile| 4 + sound/soc/stm/stm32_spdifrx.c | 998 ++ 3 files changed, 1012 insertions(+) creat

[PATCH v2 1/2] ASoC: stm32: Add DT bindings for SPDIFRX interface

2017-06-20 Thread olivier moysan
Add documentation of device tree bindings for the STM32 SPDIFRX interface. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-spdifrx.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devi

[PATCH v2 0/2] ASoC: stm32: add SPDIFRX driver

2017-06-20 Thread olivier moysan
and user data bits). DMA is used for control flow instead of interrupts to get better performances, as channel status and user data are retrieved byte per byte. v1 -> v2: - fix merge issue olivier moysan (2): ASoC: stm32: Add DT bindings for SPDIFRX interface ASoC: stm32: Add SPDIFRX supp

Re: [PATCH 1/2] dt-bindings: Document the STM32 SPDIFRX interface

2017-06-27 Thread Olivier MOYSAN
Hello Rob, On 06/23/2017 08:55 PM, Rob Herring wrote: > On Fri, Jun 16, 2017 at 03:57:31PM +0200, olivier moysan wrote: >> This adds documentation of device tree bindings for the >> STM32 SPDIFRX interface. >> >> Signed-off-by: olivier moysan <olivier.moy...@st.c

Re: [PATCH v3 1/3] dt-bindings: Document STM32 I2S bindings

2017-05-18 Thread Olivier MOYSAN
Hello Rob, Thanks for your comment. On 05/13/2017 02:17 AM, Rob Herring wrote: > On Thu, May 11, 2017 at 11:45:02AM +0200, olivier moysan wrote: >> Add documentation of device tree bindings for STM32 SPI/I2S. >> >> Signed-off-by: olivier moysan <olivier.moy...@st.com>

[PATCH v4 3/3] ASoC: stm32: Add full duplex support to i2s

2017-05-18 Thread olivier moysan
This patch allows to use i2s interface either as single audio path (rx or tx), or bidirectional audio path. This patch is added separately, as the driver does not follow recommended use of the interface, to support this configuration. Signed-off-by: olivier moysan <olivier.moy...@st.

[PATCH v4 0/3] ASoC: Add STM32 I2S support

2017-05-18 Thread olivier moysan
justified standard: right_j - PCM short: dsp_a PCM long format is not exposed as it does not match supported ASoC standards. v3 -> v4 - update example in dt bindings olivier moysan (3): dt-bindings: Document STM32 I2S bindings ASoC: stm32: Add I2S driver ASoC: stm32: Add full dup

[PATCH v4 1/3] dt-bindings: Document STM32 I2S bindings

2017-05-18 Thread olivier moysan
Add documentation of device tree bindings for STM32 SPI/I2S. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-i2s.txt | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/so

[PATCH v4 2/3] ASoC: stm32: Add I2S driver

2017-05-18 Thread olivier moysan
Add I2S ASoC driver for STM32. This version of the driver supports only exclusive playback and capture interface. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 2 +- sound/soc/stm/Makefile| 4 + sound/soc/stm/stm32_i2s.c

Re: [PATCH v4 2/3] ASoC: stm32: Add I2S driver

2017-05-22 Thread Olivier MOYSAN
Hello Mark, Thanks, for applying the patches. On 05/19/2017 07:33 PM, Mark Brown wrote: > On Thu, May 18, 2017 at 05:19:52PM +0200, olivier moysan wrote: > > This looks good so I'm going to apply it, a few things below though - > can you please send a followup patch f

Re: [PATCH 14/15] sound: stm32: use devm_of_platform_populate()

2017-05-30 Thread Olivier MOYSAN
Acked-by: Olivier Moysan <olivier.moy...@st.com>

[PATCH 5/7] ASoC: stm32: sai: change stop sequence

2017-06-16 Thread olivier moysan
Disable SAI before stopping DMA data transfers. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 24b8874..9

[PATCH 6/7] ASoC: stm32: sai: fix clock management

2017-06-16 Thread olivier moysan
Allow peripheral clock enable/disable on regmap accesses. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 9

[PATCH 3/7] ASoC: stm32: sai: typo fixes

2017-06-16 Thread olivier moysan
Fix typos in sai driver. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai.c | 2 +- sound/soc/stm/stm32_sai.h | 1 - sound/soc/stm/stm32_sai_sub.c | 28 ++-- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a

[PATCH 2/2] ASoC: stm32: sai: add h7 support

2017-06-16 Thread olivier moysan
Add support of SAI on STM32H7 family. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai.c | 13 +- sound/soc/stm/stm32_sai.h | 72 ++--- sound/soc/stm/stm32_sai_sub.c | 92 --- 3

[PATCH 2/7] ASoC: stm32: change SAI configuration flag

2017-06-16 Thread olivier moysan
Use a specific flag for SAI interface instead of common stm32 asoc flag. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 10 +++--- sound/soc/stm/Makefile | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sound/soc/stm/Kco

[PATCH 4/7] ASoC: stm32: sai: remove spurious trace

2017-06-16 Thread olivier moysan
Remove spurious trace in sai driver. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index d7aeed3..24b8874 100644 --- a/sound/s

[PATCH 0/7] ASoC: stm32: sai: misc fixes

2017-06-16 Thread olivier moysan
This patch-set gathers various fixes on STM32 SAI driver. olivier moysan (7): dt-bindings: stm32: sai: fix DT example ASoC: stm32: change SAI configuration flag ASoC: stm32: sai: typo fixes ASoC: stm32: sai: remove spurious trace ASoC: stm32: sai: change stop sequence ASoC: stm32: sai

[PATCH 1/7] dt-bindings: stm32: sai: fix DT example

2017-06-16 Thread olivier moysan
Correct the device tree example. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-sai.txt | 25 +- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/st,stm32-sai.

[PATCH 1/2] dt-bindings: stm32: add h7 support for sai

2017-06-16 Thread olivier moysan
Document device tree bindings for STM32H7 SAI. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-sai.txt | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/st

[PATCH 7/7] ASoC: stm32: sai: manage master clock

2017-06-16 Thread olivier moysan
Disable master clock by default, and activate it only when requested. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c

[PATCH 0/2] ASoC: stm32: sai: Add H7 support

2017-06-16 Thread olivier moysan
This patch-set adds support of the Serial Audio Interface (SAI) IP on H7 STM32 platform family. olivier moysan (2): dt-bindings: stm32: add h7 support for sai ASoC: stm32: sai: add h7 support .../devicetree/bindings/sound/st,stm32-sai.txt | 18 ++--- sound/soc/stm/stm32_sai.c

[PATCH 2/2] ASoC: stm32: Add SPDIFRX support

2017-06-16 Thread olivier moysan
Add SPDIFRX support to STM32. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 10 + sound/soc/stm/Makefile| 4 + sound/soc/stm/stm32_spdifrx.c | 998 ++ sound/soc/stm/stm32_spdifrx.h | 224 +++

[PATCH 1/2] dt-bindings: Document the STM32 SPDIFRX interface

2017-06-16 Thread olivier moysan
This adds documentation of device tree bindings for the STM32 SPDIFRX interface. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- .../devicetree/bindings/sound/st,stm32-spdifrx.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devi

[PATCH 0/2] ASoC: stm32: add SPDIFRX driver

2017-06-16 Thread olivier moysan
and user data bits). DMA is used for control flow instead of interrupts to get better performances, as channel status and user data are retrieved byte per byte. Note: This patch-set depends on "change SAI configuration flag" patch, which introduces a change on Kconfig file. olivier moysan

[PATCH 1/1] ASoC: stm32: change configuration flag

2017-06-19 Thread olivier moysan
Use a specific flag for SAI and I2S interfaces, instead of common flag. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 19 --- sound/soc/stm/Makefile | 6 +++--- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/sound/s

Re: [PATCH 2/7] ASoC: stm32: change SAI configuration flag

2017-06-19 Thread Olivier MOYSAN
Hello Mark, On 06/16/2017 07:49 PM, Mark Brown wrote: > On Fri, Jun 16, 2017 at 02:15:29PM +0200, olivier moysan wrote: >> Use a specific flag for SAI interface instead >> of common stm32 asoc flag. > > This doesn't apply against current code, please check and resend. >

Re: [PATCH v3 1/2] ASoC: stm32: add bindings for SAI

2017-05-02 Thread Olivier MOYSAN
Hello Rob, On 04/28/2017 10:53 PM, Rob Herring wrote: > On Mon, Apr 10, 2017 at 05:19:55PM +0200, olivier moysan wrote: >> This patch adds documentation of device tree bindings for the >> STM32 SAI ASoC driver. >> >> Signed-off-by: olivier moysan <olivier.moy...@st.

[PATCH 1/3] ASoC: stm32: fix sync property description in SAI bindings

2017-11-22 Thread Olivier Moysan
SAI sync property must be described in SAI subnodes section, as it is a property of child node. This patch fixes commit 14f0e5f8d97e632695d92f41f2e91d10d8005d47 "ASoC: stm32: Add synchronization to SAI bindings". Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- Document

[PATCH 0/3] ASoC: stm32: sai: fixes related to synchro feature

2017-11-22 Thread Olivier Moysan
Fix sai binding and simplify code related to synchro feature. This change allows to remove stm32_sai_remove() function and use devm_of_platform_populate(). Olivier Moysan (3): ASoC: stm32: fix sync property description in SAI bindings ASoC: stm32: sai: simplify sync modes management ASoC

[PATCH 2/3] ASoC: stm32: sai: simplify sync modes management

2017-11-22 Thread Olivier Moysan
Use function of_find_device_by_node() to retrieve SAI synchro provider device and private data. This allows to remove registration of probed SAI in a linked list. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai.c

[PATCH 3/3] ASoC: stm32: sai: use devm_of_platform_populate()

2017-11-22 Thread Olivier Moysan
Use devm_of_platform_populate() instead of of_platform_depopulate() to simplify driver code. Signed-off-by: Benjamin Gaignard <benjamin.gaign...@linaro.org> Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai.c | 11 +-- 1 file changed, 1 inse

[RFC PATCH 1/2] ASoC: add support of mclk clock providers in wm8894 driver

2017-12-14 Thread Olivier Moysan
Wolfson wm8994 codec bindings exposes MCLK1 and MCLK1 clocks. This patch adds support of MCLK1 and MCLK2 in mfd driver. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- drivers/mfd/wm8994-core.c| 9 + include/linux/mfd/wm8994/pdata.h | 6 ++ 2 files chang

[RFC PATCH 0/2] select master clock in wm8994 driver based on DT clocks configuration

2017-12-14 Thread Olivier Moysan
by wm8994_set_dai_sysclk() is used. I have a limited view of potential side effects here, so any comments are welcome. If some adaptations are required to make this change more generic, please let me know. Regards Olivier Olivier Moysan (2): ASoC: add support of mclk clock providers in wm8894 driver

[RFC PATCH 2/2] ASoC: select sysclk clock from mlck clock provider in wm8994 driver

2017-12-14 Thread Olivier Moysan
When defined in device tree, MCLK1 and MCLK2 are used as sysclk for aif1 and aif2 interfaces respectively. If clock rate is let 0, the frequency provided by wm8994_set_dai_sysclk() is used instead. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/codecs/wm8994.

Re: [RFC PATCH 2/2] ASoC: select sysclk clock from mlck clock provider in wm8994 driver

2017-12-15 Thread Olivier MOYSAN
Hello Mark, Thanks for your comment. On 12/14/2017 06:36 PM, Mark Brown wrote: > On Thu, Dec 14, 2017 at 05:53:58PM +0100, Olivier Moysan wrote: >> When defined in device tree, MCLK1 and MCLK2 are used >> as sysclk for aif1 and aif2 interfaces respectively. > > That's n

Re: [RFC PATCH 2/2] ASoC: select sysclk clock from mlck clock provider in wm8994 driver

2017-12-20 Thread Olivier MOYSAN
Hello Mark, On 12/19/2017 10:35 AM, Mark Brown wrote: > On Fri, Dec 15, 2017 at 03:15:22PM +0000, Olivier MOYSAN wrote: > >> You are right. wm8994 allows to select either MCLK for each AIF. >> From this point of view, the current patch is too limiting. >> MCLK

[PATCH 2/2] ASoC: stm32: spdifrx: fix control DMA error management

2017-11-06 Thread Olivier Moysan
Fix DMA channel request error handling. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_spdifrx.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index d7dbe84..b

[PATCH 1/2] ASoC: stm32: spdifrx: fix 16 bits capture

2017-11-06 Thread Olivier Moysan
Change DMA bus width to manage properly 16 bits packed format. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_spdifrx.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c

[PATCH 0/2] ASoC: stm32: spdifrx: DMA management fixes

2017-11-06 Thread Olivier Moysan
This patch-set gathers DMA management fixes for STM32 SPDIFRX. Olivier Moysan (2): ASoC: stm32: spdifrx: fix 16 bits capture ASoC: stm32: spdifrx: fix control DMA error management sound/soc/stm/stm32_spdifrx.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions

Re: [INTERNAL][PATCH 4/7] ASoC: stm32: sai: fix stop management in isr

2017-11-02 Thread Olivier MOYSAN
Hello Takashi, Sorry for late answer. I was OoO. Ok, I will add a protection on sai->substream accesses. Best regards Olivier On 10/26/2017 05:32 PM, Takashi Iwai wrote: > On Thu, 19 Oct 2017 15:03:20 +0200, > Olivier Moysan wrote: >> >> Add check on substream valid

[PATCH 2/2] ASoC: add mclk-fs support to audio graph card

2017-11-09 Thread Olivier Moysan
Add mclk-fs support to audio graph card as it was previously implemented in simple card. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/generic/audio-graph-card.c | 47 ++-- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a

[PATCH 0/2] ASoC: add mclk-fs support to audio graph card

2017-11-09 Thread Olivier Moysan
The aim of these patches is to port mclk-fs property to audio graph card, as originally implemented in simple card. Olivier Moysan (2): ASoC: add mclk-fs to audio graph card binding ASoC: add mclk-fs support to audio graph card .../devicetree/bindings/sound/audio-graph-card.txt | 1

[PATCH 1/2] ASoC: add mclk-fs to audio graph card binding

2017-11-09 Thread Olivier Moysan
Add mclk-fs support to audio graph card as initially supported in simple card. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- Documentation/devicetree/bindings/sound/audio-graph-card.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound

[PATCH 1/1] ASoC: stm32: sai: fix warning in stm32_sai_set_config()

2017-11-02 Thread Olivier Moysan
Fix uninitialized warning introduced by "Move static settings to DAI init" commit in stm32_sai_set_config() function. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [RFC PATCH 2/2] ASoC: select sysclk clock from mlck clock provider in wm8994 driver

2017-12-21 Thread Olivier MOYSAN
Hello Mark, On 12/20/2017 04:50 PM, Mark Brown wrote: > On Wed, Dec 20, 2017 at 12:42:10PM +0000, Olivier MOYSAN wrote: > >> As a generic machine, simple or audio graph cards are not able to manage >> codec clock muxing. >> If we exclude the management of muxin

Re: [PATCH 0/3] ASoC: stm32: sai: add support of iec958 controls

2018-05-17 Thread Olivier MOYSAN
Hello Takashi, On 04/17/2018 01:17 PM, Mark Brown wrote: > On Tue, Apr 17, 2018 at 08:29:17AM +0000, Olivier MOYSAN wrote: > >> I guess the blocking patch in this patchset is the patch "add IEC958 >> channel status control helper". This patch has been reviewed sever

[PATCH v2 0/1] ASoC: stm32: sai: add iec958 controls support

2018-06-11 Thread Olivier Moysan
Changes v2: - Remove iec958 helpers and implement iec958 controls in sai driver Olivier Moysan (1): ASoC: stm32: sai: add iec958 controls support sound/soc/stm/Kconfig | 1 + sound/soc/stm/stm32_sai_sub.c | 139 ++ 2 files changed, 128

[PATCH v2 1/1] ASoC: stm32: sai: add iec958 controls support

2018-06-11 Thread Olivier Moysan
Add support of iec958 controls for STM32 SAI. Signed-off-by: Olivier Moysan --- sound/soc/stm/Kconfig | 1 + sound/soc/stm/stm32_sai_sub.c | 139 ++ 2 files changed, 128 insertions(+), 12 deletions(-) diff --git a/sound/soc/stm/Kconfig b/sound

[INTERNAL][PATCH 1/7] ASoC: stm32: Add synchronization to SAI bindings

2017-10-19 Thread Olivier Moysan
Add synchronization configuration to STM32 SAI bindings. This patch also adds peripheral clock which is required to access synchronization register. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- Documentation/devicetree/bindings/sound/st,stm32-sai.txt | 14 +++---

[INTERNAL][PATCH 0/7] ASoC: stm32: Add SAI synchronization support

2017-10-19 Thread Olivier Moysan
This patch-set adds support of synchronization features for SAI interface. It also adds minor fixes and improvements. Olivier Moysan (7): ASoC: stm32: Add synchronization to SAI bindings ASoC: stm32: sai: Move static settings to DAI init ASoC: stm32: sai: Fix DMA burst size ASoC: stm32

[INTERNAL][PATCH 2/7] ASoC: stm32: sai: Move static settings to DAI init

2017-10-19 Thread Olivier Moysan
Audio interface direction and protocol settings does not change at runtime. So, these settings are moved from hw_params function to dai_probe and set_fmt. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 23 +-- 1 file chang

[INTERNAL][PATCH 7/7] ASoC: stm32: sai: Add synchronization support

2017-10-19 Thread Olivier Moysan
Add Synchronization support for STM32 SAI. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai.c | 160 -- sound/soc/stm/stm32_sai.h | 22 +- sound/soc/stm/stm32_sai_sub.c | 95 + 3

Re: [INTERNAL][PATCH 0/7] ASoC: stm32: Add SAI synchronization support

2017-10-19 Thread Olivier MOYSAN
Please ignore "[INTERNAL]" in subject. Sorry for this unappropriated header. On 10/19/2017 03:03 PM, Olivier Moysan wrote: > This patch-set adds support of synchronization features for SAI interface. > It also adds minor fixes and improvements. > > Olivier Moysan (7):

[INTERNAL][PATCH 4/7] ASoC: stm32: sai: fix stop management in isr

2017-10-19 Thread Olivier Moysan
Add check on substream validity. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 2af397d..815ef10

[INTERNAL][PATCH 3/7] ASoC: stm32: sai: Fix DMA burst size

2017-10-19 Thread Olivier Moysan
Set best burst size tradeoff for 8, 16, 32 bits transfers. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/s

[INTERNAL][PATCH 5/7] ASoC: stm32: sai: Remove spurious IRQs on stop

2017-10-19 Thread Olivier Moysan
Clear IRQ mask on stream stop to avoid spurious IRQs. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai_sub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 8

[INTERNAL][PATCH 6/7] ASoC: stm32: sai: Fix get reset controller

2017-10-19 Thread Olivier Moysan
Use devm version of reset_control_get function to manage driver removing properly. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_sai.c b/sound/soc/stm/stm32_sai.c

Re: [alsa-devel] [PATCH 1/1] ASoC: stm32: add of dependency for stm32 drivers

2018-02-01 Thread Olivier MOYSAN
hello, On 02/01/2018 10:10 AM, Ladislav Michl wrote: > On Thu, Feb 01, 2018 at 09:54:41AM +0100, Olivier Moysan wrote: >> Add of dependency for STM32 ASoC drivers. >> DFSDM of dependency is already inherited >> from STM32_DFSDM_ADC dependency. >> >> Signed-of

[PATCH 0/2] ASoC: stm32: spdifrx: change dai name

2018-01-31 Thread Olivier Moysan
This patchset changes spdifrx dai name and fixes a typo issue. Olivier Moysan (2): ASoC: stm32: spdifrx: fix typo in function name. ASoC: stm32: spdifrx: Use default dai name sound/soc/stm/stm32_spdifrx.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) -- 1.9.1

[PATCH 1/2] ASoC: stm32: spdifrx: fix typo in function name.

2018-01-31 Thread Olivier Moysan
Fix function name prefix for naming consistency. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_spdifrx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index b9bdefc..4

[PATCH 2/2] ASoC: stm32: spdifrx: Use default dai name

2018-01-31 Thread Olivier Moysan
Use dai name provided by framework from dev_name() function. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_spdifrx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index 42ad2ae..373df4f

[PATCH v2 1/1] ASoC: stm32: add of dependency for stm32 drivers

2018-02-05 Thread Olivier Moysan
Add of dependency for STM32 ASoC drivers. DFSDM of dependency is already inherited from STM32_DFSDM_ADC dependency. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/Kco

[PATCH 1/1] ASoC: stm32: add of dependency for stm32 drivers

2018-02-01 Thread Olivier Moysan
Add of dependency for STM32 ASoC drivers. DFSDM of dependency is already inherited from STM32_DFSDM_ADC dependency. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/stm/Kconfig b/sound/soc/stm/K

[RFC PATCH 1/3] ASoC: stm32: Add S/PDIF to SAI bindings

2018-02-19 Thread Olivier Moysan
Add S/PDIF IEC6958 protocol support to STM32 SAI bindings. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- Documentation/devicetree/bindings/sound/st,stm32-sai.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/st,stm32-sai.

[RFC PATCH 3/3] ASoC: stm32: sai: Add support of S/PDIF playback

2018-02-19 Thread Olivier Moysan
Add support of S/PDIF iec60958 playback on STM32 SAI. Signed-off-by: olivier moysan <olivier.moy...@st.com> --- sound/soc/stm/stm32_sai.c | 2 + sound/soc/stm/stm32_sai.h | 2 + sound/soc/stm/stm32_sai_sub.c | 153 +++--- 3 files change

[RFC PATCH 2/3] ASoC: dmaengine_pcm: add processing support

2018-02-19 Thread Olivier Moysan
Allow dmaengine client to optionally register a processing callback. This callback is intended to apply processing on samples in buffer copied from/to user space, before/after DMA transfer. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- include/sound/dmaengine_pcm.h

[RFC PATCH 0/3] ASoC: stm32: add S/PDIF support to SAI

2018-02-19 Thread Olivier Moysan
insertion) This patch-set introduces a callback to allow processing on samples. The implementation is based on previous discussions available here: https://patchwork.kernel.org/patch/9570255/ BRs Olivier Olivier Moysan (3): ASoC: stm32: Add S/PDIF to SAI bindings ASoC: dmaengine_pcm: add

[PATCH 0/3] ASoC: stm32: sai: add support of iec958 controls

2018-03-13 Thread Olivier Moysan
://patchwork.kernel.org/patch/8462961/ (v3) https://patchwork.kernel.org/patch/8533731/ (v4) Olivier Moysan (3): ALSA: pcm: add IEC958 channel status control helper ASoC: stm32: sai: add iec958 controls support ASoC: dmaengine_pcm: document process callback include/sound/dmaengine_pcm.h | 2 + include

[PATCH 2/3] ASoC: stm32: sai: add iec958 controls support

2018-03-13 Thread Olivier Moysan
Add support of iec958 controls for STM32 SAI. Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- sound/core/pcm_iec958.c | 1 + sound/soc/stm/Kconfig | 1 + sound/soc/stm/stm32_sai_sub.c | 101 +- 3 files changed, 91 inse

[PATCH 1/3] ALSA: pcm: add IEC958 channel status control helper

2018-03-13 Thread Olivier Moysan
From: Arnaud Pouliquen <arnaud.pouliq...@st.com> Add IEC958 channel status helper that creates control to handle the IEC60958 status bits. Signed-off-by: Arnaud Pouliquen <arnaud.pouliq...@st.com> Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- include/sound/

[PATCH 3/3] ASoC: dmaengine_pcm: document process callback

2018-03-13 Thread Olivier Moysan
Add missing description of process callback. Fixes: 78648092ef46 ("ASoC: dmaengine_pcm: add processing support") Signed-off-by: Olivier Moysan <olivier.moy...@st.com> --- include/sound/dmaengine_pcm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sound/dmaengine

Re: [PATCH 0/3] ASoC: stm32: sai: add support of iec958 controls

2018-04-17 Thread Olivier MOYSAN
er. Please let me know, if I need to prepare a v2 without helpers, or if we can go further in the review of iec helpers patch ? Best regards olivier On 03/13/2018 05:27 PM, Olivier Moysan wrote: > This patchset adds support of iec958 controls to STM32 SAI driver. > > The patch makes us

[PATCH 2/4] ASoC: dt-bindings: add mclk support to cs42l51

2018-10-15 Thread Olivier Moysan
Add clocks properties to cs42l51 Cirrus codec, to support master clock provider. Signed-off-by: Olivier Moysan --- Documentation/devicetree/bindings/sound/cs42l51.txt | 17 + Documentation/devicetree/bindings/trivial-devices.txt | 1 - 2 files changed, 17 insertions(+), 1

[PATCH 1/4] ASoC: dt-bindings: add mclk provider support to stm32 sai

2018-10-15 Thread Olivier Moysan
add mclk provider support to stm32 sai Signed-off-by: Olivier Moysan --- Documentation/devicetree/bindings/sound/st,stm32-sai.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/st,stm32-sai.txt b/Documentation/devicetree/bindings/sound/st

[PATCH 3/4] ASoC: stm32: sai: set sai as mclk clock provider

2018-10-15 Thread Olivier Moysan
Add master clock generation support in STM32 SAI. The master clock provided by SAI can be used to feed a codec. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai.h | 3 + sound/soc/stm/stm32_sai_sub.c | 275 -- 2 files changed, 242

[PATCH 0/4] ASoC: stm32: sai: add mclk clock provider

2018-10-15 Thread Olivier Moysan
is computed at runtime from stream rate and mclk-fs ratio provided in DT mclk rate is propagated through sysclk callback to the SAI which is mclk consumer. The mclk rate is set exclusively to avoid concurrent rate requests on SAI master. Regards Olivier Olivier Moysan (4

[PATCH 4/4] ASoC: cs42l51: add mclk support

2018-10-15 Thread Olivier Moysan
Add MCLK dapm to allow configuration of cirrus CS42l51 codec as a master clock consumer. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 5080d7a3c279

[PATCH 1/2] ASoC: stm32: add clock dependency for sai

2018-10-22 Thread Olivier Moysan
Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider") Add COMMON_CLK dependency for STM32 SAI, as it is required by clock provider. Signed-off-by: Olivier Moysan --- sound/soc/stm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/stm/Kconfig b

[PATCH 0/2] ASoC: stm32: sai: fix kbuild errors

2018-10-22 Thread Olivier Moysan
These patches fix following compilation errors: - >> sound/soc/stm/stm32_sai_sub.c:260:16: error: field 'hw' has incomplete type - >> sound/soc/stm/stm32_sai_sub.c:412:3: warning: 'strncat' specified bound 6 equals source length [-Wstringop-overflow=] Olivier Moysan (2): ASoC

[PATCH 2/2] ASoC: stm32: sai: fix master clock naming

2018-10-22 Thread Olivier Moysan
Fixes: 8307b2afd386 ("ASoC: stm32: sai: set sai as mclk clock provider") Fix warning issued by strncat when bound equals to source length. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sou

[PATCH 1/1] ASoC: cs42l51: fix mclk support

2018-10-19 Thread Olivier Moysan
Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index eb40bff54cec..fd2bd74024c1 100644 --- a/sound/soc/codecs/cs42l51.c +++ b/sound/soc/codecs

[PATCH 0/3] ASoC: stm32: sai: add support of iec958 controls

2018-03-13 Thread Olivier Moysan
://patchwork.kernel.org/patch/8462961/ (v3) https://patchwork.kernel.org/patch/8533731/ (v4) Olivier Moysan (3): ALSA: pcm: add IEC958 channel status control helper ASoC: stm32: sai: add iec958 controls support ASoC: dmaengine_pcm: document process callback include/sound/dmaengine_pcm.h | 2 + include

[PATCH 2/3] ASoC: stm32: sai: add iec958 controls support

2018-03-13 Thread Olivier Moysan
Add support of iec958 controls for STM32 SAI. Signed-off-by: Olivier Moysan --- sound/core/pcm_iec958.c | 1 + sound/soc/stm/Kconfig | 1 + sound/soc/stm/stm32_sai_sub.c | 101 +- 3 files changed, 91 insertions(+), 12 deletions(-) diff

[PATCH 1/3] ALSA: pcm: add IEC958 channel status control helper

2018-03-13 Thread Olivier Moysan
From: Arnaud Pouliquen Add IEC958 channel status helper that creates control to handle the IEC60958 status bits. Signed-off-by: Arnaud Pouliquen Signed-off-by: Olivier Moysan --- include/sound/pcm_iec958.h | 19 sound/core/pcm_iec958.c| 113

[PATCH 3/3] ASoC: dmaengine_pcm: document process callback

2018-03-13 Thread Olivier Moysan
Add missing description of process callback. Fixes: 78648092ef46 ("ASoC: dmaengine_pcm: add processing support") Signed-off-by: Olivier Moysan --- include/sound/dmaengine_pcm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sound/dmaengine_pcm.h b/include/sound/dmaen

  1   2   3   4   >