[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 --- sound/soc/stm/Kconfig | 10 + sound/soc/stm/Makefile| 4 + sound/soc/stm/stm32_spdifrx.c | 998 ++ 3 files changed, 1012 insertions(+) create mode 100644 sound/soc/stm

[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 --- .../devicetree/bindings/sound/st,stm32-spdifrx.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/st,stm32

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

2017-06-20 Thread olivier moysan
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 14/15] sound: stm32: use devm_of_platform_populate()

2017-05-30 Thread Olivier MOYSAN
Acked-by: Olivier Moysan

[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 --- sound/soc/stm/stm32_sai_sub.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub

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 validity

[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

[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 --- 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..b9bdefc 100644 --- a/sound/soc

[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 --- 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 index 84cc567..d7dbe84 100644

[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 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 --- 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 815ef10..fd7dc77 100644 --- a/sound

[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 --- 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 100644 --- a/sound/soc/stm

[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 --- 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/soc/stm/stm32_sai_sub.c index fdc1891

[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 --- Documentation/devicetree/bindings/sound/st,stm32-sai.txt | 14 +++--- 1 file changed, 11 insertions

[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 --- sound/soc/stm/stm32_sai_sub.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions

[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 --- 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 index 1258bef..5fe878ac 100644

[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 --- sound/soc/stm/stm32_sai.c | 160 -- sound/soc/stm/stm32_sai.h | 22 +- sound/soc/stm/stm32_sai_sub.c | 95 + 3 files changed, 269 insertions

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):

[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 --- 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 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 --- sound/soc/stm/Kconfig | 2 +- sound/soc/stm/Makefile| 4 + sound/soc/stm/stm32_i2s.c | 941

[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 --- .../devicetree/bindings/sound/st,stm32-i2s.txt | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/st,stm32-i2s.txt diff

[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 --- 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..42ad2ae 100644 --- a/sound/soc

[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 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 --- 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 100644 --- a/sound/soc/stm

[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 --- sound/soc/stm/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/stm/Kconfig b/sound/soc/stm/Kconfig index 3ad881f..b5375f9

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. >> >&

[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

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 several

[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/1] ASoC: cs42l51: fix mclk support

2018-10-19 Thread Olivier Moysan
ned-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 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/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=] Olivie

[PATCH 1/5] ASoC: stm32: sai: fix iec958 controls indexation

2019-02-28 Thread Olivier Moysan
Allow indexation of sai iec958 controls according to device id. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index f9297228c41c

[PATCH 3/5] ASoC: stm32: sai: fix race condition in irq handler

2019-02-28 Thread Olivier Moysan
When snd_pcm_stop_xrun() is called in interrupt routine, substream context may have already been released. Add protection on substream context. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sound

[PATCH 0/5] ASoC: stm32: sai: miscellaneous fixes

2019-02-28 Thread Olivier Moysan
This patch-set is a collection of fixes for STM32 SAI driver. Olivier Moysan (5): ASoC: stm32: sai: fix iec958 controls indexation ASoC: stm32: sai: fix exposed capabilities in spdif mode ASoC: stm32: sai: fix race condition in irq handler ASoC: stm32: sai: fix oversampling mode ASoC

[PATCH 2/5] ASoC: stm32: sai: fix exposed capabilities in spdif mode

2019-02-28 Thread Olivier Moysan
Change capabilities exposed in SAI S/PDIF mode, to match actually supported formats. In S/PDIF mode only 32 bits stereo is supported. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound

[PATCH 5/5] ASoC: stm32: sai: fix set_sync service

2019-02-28 Thread Olivier Moysan
Add error check on set_sync function return. Add of_node_put() as of_get_parent() takes a reference which has to be released. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai.c | 8 +--- sound/soc/stm/stm32_sai_sub.c | 8 +--- 2 files changed, 10 insertions(+), 6 deletions

[PATCH 4/5] ASoC: stm32: sai: fix oversampling mode

2019-02-28 Thread Olivier Moysan
Set OSR bit if mclk/fs ratio is 512. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index cad415e03b5e..cb658463ccd1 100644 --- a/sound

Re: [PATCH] ASoC: stm32: i2s: return the get_irq error

2019-04-25 Thread Olivier MOYSAN
On 4/24/19 5:28 PM, Fabien Dessenne wrote: > During probe, return the "get_irq" error value instead of -ENOENT. This > allows the driver to be deferred probed if needed. > > Signed-off-by: Fabien Dessenne Acked-by: Olivier Moysan > --- > sound/soc/stm/stm3

[Linux-stm32][PATCH 2/4] ARM: dts: stm32: add sai pins muxing on stm32mp157

2019-04-25 Thread Olivier Moysan
Add SAI pins muxing to stm32mp157. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 73 +++ 1 file changed, 73 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index

[Linux-stm32][PATCH 3/4] ARM: dts: stm32: add i2s support on stm32mp157c

2019-04-25 Thread Olivier Moysan
This patch adds support of STM32 I2S on stm32mp157c. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157c.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index

[Linux-stm32][PATCH 4/4] ARM: dts: stm32: add i2s pins muxing on stm32mp157

2019-04-25 Thread Olivier Moysan
Add I2S pins muxing to stm32mp157. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index 6ea9b9ff45e7

[Linux-stm32][PATCH 1/4] ARM: dts: stm32: add sai support on stm32mp157c

2019-04-25 Thread Olivier Moysan
This patch adds support of STM32 SAI on stm32mp157c. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157c.dtsi | 125 + 1 file changed, 125 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index

[Linux-stm32][PATCH 0/4] ARM: dts: stm32: add i2s and sai support on stm32mp157c

2019-04-25 Thread Olivier Moysan
This patchset adds support of STM32 SAI and I2S on stm32mp157c Olivier Moysan (4): ARM: dts: stm32: add sai support on stm32mp157c ARM: dts: stm32: add sai pins muxing on stm32mp157 ARM: dts: stm32: add i2s support on stm32mp157c ARM: dts: stm32: add i2s pins muxing on stm32mp157 arch

[PATCH 2/7] ASoC: cs42l51: add regulator management

2019-04-03 Thread Olivier Moysan
Add cs42l51 audio codec power supply management through regulator framework. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51-i2c.c | 6 ++ sound/soc/codecs/cs42l51.c | 44 +- sound/soc/codecs/cs42l51.h | 1 + 3 files changed, 50

[PATCH 0/7] ASoC: cs42l51: add some features

2019-04-03 Thread Olivier Moysan
This patchset add support of following features to Cirrus CS42L51 audio codec driver: - reset - regulators - master mode - power management - adc volume control Olivier Moysan (7): ASoC: dt-bindings: update cs42l51 bindings ASoC: cs42l51: add regulator management ASoC: cs42l51: add reset

[PATCH 4/7] ASoC: cs42l51: add support of master mode

2019-04-03 Thread Olivier Moysan
Add support of master mode for cs42l51 cirrus audio codec. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 9b3ffa16b204

[PATCH 3/7] ASoC: cs42l51: add reset management

2019-04-03 Thread Olivier Moysan
Manage cs42l51 audio codec reset pin. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index f43eb51d2d8d..9b3ffa16b204 100644 --- a/sound/soc/codecs/cs42l51

[PATCH 7/7] ASoC: cs42l51: add adc volume control

2019-04-03 Thread Olivier Moysan
Add ADC boost volume control for CS42L51 codec. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 25f17c0051e4..991e4ebd7a04 100644 --- a/sound/soc/codecs/cs42l51.c

[PATCH 1/7] ASoC: dt-bindings: update cs42l51 bindings

2019-04-03 Thread Olivier Moysan
Add compatible, reg, regulator, and reset to Cirrus CS42L51 audio codec bindings. Signed-off-by: Olivier Moysan --- Documentation/devicetree/bindings/sound/cs42l51.txt | 16 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/cs42l51.txt b

[PATCH 5/7] ASoC: cs42l51: change mic bias DAPM

2019-04-03 Thread Olivier Moysan
Use SND_SOC_DAPM_SUPPLY for mic bias DAPM instead of deprecated SND_SOC_DAPM_MICBIAS. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/cs42l51.c b/sound/soc/codecs/cs42l51.c index 397b68901d1c

[PATCH 6/7] ASoC: cs42l51: add power management

2019-04-03 Thread Olivier Moysan
Add sleep PM callbacks to support system low power modes. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51-i2c.c | 7 ++- sound/soc/codecs/cs42l51.c | 122 + sound/soc/codecs/cs42l51.h | 2 + 3 files changed, 129 insertions(+), 2

[PATCH] ASoC: stm32: sai: fix master clock management

2019-04-10 Thread Olivier Moysan
. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 64 +++ 1 file changed, 47 insertions(+), 17 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 3dd54bc54fa1..77aa38183955 100644 --- a/sound/soc/stm

[PATCH 1/7] ASoC: stm32: i2s: fix IRQ clearing

2019-02-26 Thread Olivier Moysan
Because of regmap cache, interrupts may not be cleared as expected. Declare IFCR register as write only and make writings to IFCR register unconditional. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a

[PATCH 0/7] ASoC: stm32: i2s: miscellaneous fixes

2019-02-26 Thread Olivier Moysan
This patch-set is a collection of fixes for STM32 I2S driver. Olivier Moysan (7): ASoC: stm32: i2s: fix IRQ clearing ASoC: stm32: i2s: fix 16 bit format support ASoC: stm32: i2s: fix stream count management ASoC: stm32: i2s: fix dma configuration ASoC: stm32: i2s: remove useless

[PATCH 3/7] ASoC: stm32: i2s: fix stream count management

2019-02-26 Thread Olivier Moysan
Move counter handling to trigger start section to manage multiple start/stop events. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index

[PATCH 5/7] ASoC: stm32: i2s: remove useless callback

2019-02-26 Thread Olivier Moysan
Clocks do not need to be released on driver removal, as this is already managed before. Remove useless remove callback. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm

[PATCH 4/7] ASoC: stm32: i2s: fix dma configuration

2019-02-26 Thread Olivier Moysan
DMA configuration is not balanced on start/stop. Move DMA configuration to trigger callback. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index

[PATCH 6/7] ASoC: stm32: i2s: fix race condition in irq handler

2019-02-26 Thread Olivier Moysan
When snd_pcm_stop_xrun() is called in interrupt routine, substream context may have already been released. Add protection on substream context. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a

[PATCH 7/7] ASoC: stm32: i2s: skip useless write in slave mode

2019-02-26 Thread Olivier Moysan
Dummy write in capture master mode is used to gate bus clocks. This write is useless in slave mode as the clocks are not managed by slave. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm

[PATCH 2/7] ASoC: stm32: i2s: fix 16 bit format support

2019-02-26 Thread Olivier Moysan
I2S supports 16 bits data in 32 channel length. However the expected driver behavior, is to set channel length to 16 bits when data format is 16 bits. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm

[RESEND PATCH 0/2] ASoC: stm32: i2s: add master clock provider

2021-02-05 Thread Olivier Moysan
Add master clock generation support in STM32 I2S driver. Resend of patch https://lkml.org/lkml/2020/9/11/264 Olivier Moysan (2): ASoC: dt-bindings: add mclk provider support to stm32 i2s ASoC: stm32: i2s: add master clock provider .../bindings/sound/st,stm32-i2s.yaml | 4 + sound

[RESEND PATCH 1/2] ASoC: dt-bindings: add mclk provider support to stm32 i2s

2021-02-05 Thread Olivier Moysan
From: Olivier Moysan Add master clock provider support to STM32 I2S. Reviewed-by: Rob Herring Signed-off-by: Olivier Moysan --- Documentation/devicetree/bindings/sound/st,stm32-i2s.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/st,stm32

[PATCH 2/2] ARM: multi_v7_defconfig: enable dfsdm audio support

2020-11-18 Thread Olivier Moysan
Add DFSDM audio support by enabling CONFIG_SND_SOC_STM32_DFSDM as module. Signed-off-by: Olivier Moysan --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index b30a3bc6762b

[PATCH 1/2] ARM: multi_v7_defconfig: enable spdifrx support

2020-11-18 Thread Olivier Moysan
Add STM32 SPDIFRX support by enabling CONFIG_SND_SOC_STM32_SPDIFRX as module. Signed-off-by: Olivier Moysan --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 1fff2591e434

[PATCH 0/2] ARM: multi_v7_defconfig: enable dfsdm and spdifrx support

2020-11-18 Thread Olivier Moysan
Add STM32 SPDIFRX and DFSDM audio support to multi_v7_defconfig Olivier Moysan (2): ARM: multi_v7_defconfig: enable spdifrx support ARM: multi_v7_defconfig: enable dfsdm audio support arch/arm/configs/multi_v7_defconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1

[PATCH v2 0/2] ARM: multi_v7_defconfig: enable dfsdm and spdifrx support

2020-11-20 Thread Olivier Moysan
Add STM32 SPDIFRX and DFSDM audio support to multi_v7_defconfig Change in v2: - Add targeted SoC in commit message for DFSDM config Olivier Moysan (2): ARM: multi_v7_defconfig: enable spdifrx support ARM: multi_v7_defconfig: enable dfsdm audio support arch/arm/configs/multi_v7_defconfig

[PATCH v2 1/2] ARM: multi_v7_defconfig: enable spdifrx support

2020-11-20 Thread Olivier Moysan
Add STM32 SPDIFRX support by enabling CONFIG_SND_SOC_STM32_SPDIFRX as module. Signed-off-by: Olivier Moysan Reviewed-by: Krzysztof Kozlowski --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs

[PATCH v2 2/2] ARM: multi_v7_defconfig: enable dfsdm audio support

2020-11-20 Thread Olivier Moysan
Add STM32 DFSDM audio support by enabling CONFIG_SND_SOC_STM32_DFSDM as module. Signed-off-by: Olivier Moysan --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index b30a3bc6762b

Re: [PATCH v2 0/2] ARM: multi_v7_defconfig: enable dfsdm and spdifrx support

2020-11-26 Thread Olivier MOYSAN
Hi Alex On 11/26/20 12:25 PM, Alexandre Torgue wrote: > Hi Olivier > > On 11/20/20 10:15 AM, Olivier Moysan wrote: >> Add STM32 SPDIFRX and DFSDM audio support to multi_v7_defconfig >> >> Change in v2: >> - Add targeted SoC in commit message for DFSDM config &g

[RESEND PATCH 2/2] ASoC: stm32: i2s: add master clock provider

2021-02-05 Thread Olivier Moysan
From: Olivier Moysan Add master clock generation support in STM32 I2S driver. The master clock provided by I2S can be used to feed a codec. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 310 -- 1 file changed, 266 insertions(+), 44 deletions

Re: [PATCH] ASoC: stm32: sai: add missing put_device()

2019-02-11 Thread Olivier MOYSAN
Hi Wen, On 2/9/19 11:41 AM, Wen Yang wrote: > The of_find_device_by_node() takes a reference to the underlying device > structure, we should release that reference. > > Fixes: 7dd0d835582f ("ASoC: stm32: sai: simplify sync modes management") > Signed-off-by: Wen Yang > --- > sound/soc/stm/stm3

[PATCH 1/4] ARM: multi_v7_defconfig: enable stm32 sai support

2019-09-02 Thread Olivier Moysan
Enable support for SAI on STM32MP1. Signed-off-by: Olivier Moysan --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index c5d37dfafe98..929d13842171 100644 --- a/arch/arm/configs

[PATCH 4/4] ARM: multi_v7_defconfig: enable audio graph card support

2019-09-02 Thread Olivier Moysan
Enable audio graph card support for stm32mp157a-dk1 board. Signed-off-by: Olivier Moysan --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 03a4d93df8c4..c7104a1c1687 100644

[PATCH 3/4] ARM: multi_v7_defconfig: enable cs42l51 codec support

2019-09-02 Thread Olivier Moysan
Enable Cirrus CS42L51 audio codec for stm32mp157a-dk1 board. Signed-off-by: Olivier Moysan --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 02265e195e50..03a4d93df8c4

[PATCH 0/4] ARM: multi_v7_defconfig: add audio support for stm32mp157a-dk1

2019-09-02 Thread Olivier Moysan
This patchset adds audio support for stm32mp157a-dk1 board. Olivier Moysan (4): ARM: multi_v7_defconfig: enable stm32 sai support ARM: multi_v7_defconfig: enable stm32 i2s support ARM: multi_v7_defconfig: enable cs42l51 codec support ARM: multi_v7_defconfig: enable audio graph card

[PATCH 2/4] ARM: multi_v7_defconfig: enable stm32 i2s support

2019-09-02 Thread Olivier Moysan
Enable support for I2S on STM32MP1. Signed-off-by: Olivier Moysan --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 929d13842171..02265e195e50 100644 --- a/arch/arm/configs

[PATCH] ARM: dts: stm32: add hdmi audio support to stm32mp157a-dk1 board

2019-10-10 Thread Olivier Moysan
Add HDMI audio support through Sil9022 HDMI transceiver on stm32mp157a-dk1 board. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157a-dk1.dts | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/stm32mp157a-dk1.dts b/arch

[PATCH] ASoC: stm32: spdifrx: retry synchronization in sync state

2019-10-11 Thread Olivier Moysan
-by: Olivier Moysan --- sound/soc/stm/stm32_spdifrx.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index cd4b235fce57..3fd28ee01675 100644 --- a/sound/soc/stm/stm32_spdifrx.c +++ b/sound/soc/stm

[PATCH][RFC] iio: core: add a class hierarchy on iio device lock

2019-10-11 Thread Olivier Moysan
[ 52.371077] 1fc0: 006c 7ff0 0002 0003 0003 0002 0000 [ 52.379245] 1fe0: 0003 beb6e790 b6eb17b7 b6e3e6c6 Signed-off-by: Olivier Moysan --- drivers/iio/buffer/industrialio-hw-consumer.c | 9 - drivers/iio/industrialio-buffer.c |

Re: [PATCH][RFC] iio: core: add a class hierarchy on iio device lock

2019-10-14 Thread Olivier MOYSAN
Hello Jonathan, Thanks for your comment. On 10/12/19 10:57 AM, Jonathan Cameron wrote: > On Fri, 11 Oct 2019 17:13:14 +0200 > Olivier Moysan wrote: > >> The aim of this patch is to correct a recursive locking warning, >> detected when setting CONFIG_PROVE_LOCKING flag (as s

[PATCH] ASoC: stm32: sai: fix sysclk management on shutdown

2019-10-18 Thread Olivier Moysan
release mclk. Fixes: 2458adb8f92a ("SoC: simple-card-utils: set 0Hz to sysclk when shutdown") Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/sound/soc/stm/stm32_sai_sub.c b/sou

Re: [PATCH] ASoC: stm32: sai: add missing put_device()

2019-02-14 Thread Olivier MOYSAN
Acked-by: Olivier Moysan On 2/13/19 3:41 PM, Wen Yang wrote: > From: Olivier MOYSAN > Sent: 11 February 2019 15:09 > To: Wen Yang; Arnaud POULIQUEN; Liam Girdwood; Mark Brown; Jaroslav Kysela; > Takashi Iwai; Maxime Coquelin; Alexandre TORGUE > Cc: alsa-de...@alsa-project.org;

[PATCH 2/2] SoC: stm32: i2s: manage clock power

2019-02-08 Thread Olivier Moysan
Kernel clock management: Enable/disable I2S kernel clock on audio stream startup/shutdown. Peripheral clock management: Manage I2S peripheral clock power through regmap services. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 44 +++- 1

[PATCH 1/2] ASoC: stm32: i2s: add power management

2019-02-08 Thread Olivier Moysan
Add suspend and resume sleep callbacks, to support system low power modes. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c

[PATCH 0/2] ASoC: stm32: i2s: add power management

2019-02-08 Thread Olivier Moysan
peripheral clock power through regmap services . Olivier Moysan (2): ASoC: stm32: i2s: add power management SoC: stm32: i2s: manage clock power sound/soc/stm/stm32_i2s.c | 77 +++ 1 file changed, 45 insertions(+), 32 deletions(-) -- 2.7.4

Re: [PATCH 5/7] ASoC: cs42l51: change mic bias DAPM

2019-04-04 Thread Olivier MOYSAN
not find reference to "Mic Bias" widget. So, my understanding is that the patch should not break the legacy. If you think this assumption is not correct please let me know. Regards Olivier On 4/4/19 7:47 AM, Mark Brown wrote: > On Wed, Apr 03, 2019 at 03:23:35PM +0200, Olivi

[PATCH 1/2] ARM: dts: stm32: add spdifrx support on stm32mp157c

2019-03-29 Thread Olivier Moysan
This patch adds support of STM32 SPDIFRX on stm32mp157c. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157c.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index 6ce75f696679

[PATCH 2/2] ARM: dts: stm32: add spdfirx pins to stm32mp157c

2019-03-29 Thread Olivier Moysan
This patch adds spdifrx support on stm32mp157c eval board. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index

[PATCH 0/2] ARM: dts: stm32: add spdifrx support on stm32mp157c

2019-03-29 Thread Olivier Moysan
This patchset adds support of STM32 SPDFIRX on stm32mp157c Olivier Moysan (2): ARM: dts: stm32: add spdifrx support on stm32mp157c ARM: dts: stm32: add spdfirx pins to stm32mp157c arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 13 + arch/arm/boot/dts/stm32mp157c.dtsi| 13

[PATCH] ASoC: cs42l51: add multi endpoint support

2019-03-29 Thread Olivier Moysan
nodes, it expects to find DAI interface indexes matching the endpoints indexes. The current patch forces the use of DAI id 0 for both endpoints, which allows to share the codec DAI between the two CPU DAIs for playback and capture streams respectively. Signed-off-by: Olivier Moysan --- sound/soc/cod

  1   2   3   >