[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

[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

[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

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

[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

[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 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] iio: adc: stm32-adc: dma transfers cleanup

2020-11-05 Thread Olivier Moysan
- Remove processing related to DMA in irq handler as this data transfer is managed directly in DMA callback. - Update comment in stm32_adc_set_watermark() function. Signed-off-by: Olivier Moysan --- drivers/iio/adc/stm32-adc.c | 29 ++--- 1 file changed, 6 insertions

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

2020-11-03 Thread Olivier MOYSAN
Hi Mark, Gentle reminder on this series, as it seems that there was no update since Rob's "reviewed-by" for dt bindings, on 11/09. BRs Olivier On 9/11/20 11:19 AM, Olivier Moysan wrote: > Add master clock generation support in STM32 I2S driver. > > Olivier Moysan (2): >

[PATCH 1/1] iio: adc: stm32-adc: fix a regression when using dma and irq

2020-10-21 Thread Olivier Moysan
t") Signed-off-by: Olivier Moysan Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc-core.c | 41 +++--- drivers/iio/adc/stm32-adc.c | 50 ++-- 2 files changed, 65 insertions(+), 26 deletions(-) diff --git a/drivers/iio/adc/stm32-

[PATCH v2 2/2] dt-bindings: stm32: dfsdm: remove stm32-adfsdm.txt binding

2020-10-20 Thread Olivier Moysan
Device tree audio configuration for STM32 DFSDM is already covered in the following binding: Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml Remove stm32-adfsdm.txt obsolete binding. Signed-off-by: Olivier Moysan --- .../bindings/sound/st,stm32-adfsdm.txt| 63

[PATCH v2 1/2] dt-bindings: stm32: dfsdm: update audio properties

2020-10-20 Thread Olivier Moysan
- Add missing compatible property in audio node. - Remove obsolete "st,stm32-dfsdm-pdm" compatible. - Remove useless comment in adc io-channels description. Signed-off-by: Olivier Moysan --- .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml| 7 +-- 1 file changed, 5

[PATCH v2 0/2] dt-bindings: stm32: convert audio dfsdm to json-schema

2020-10-20 Thread Olivier Moysan
,stm32-dfsdm-adc.yaml rather than converting st,stm32-adfsdm.txt Olivier Moysan (2): dt-bindings: stm32: dfsdm: update audio properties dt-bindings: stm32: dfsdm: remove stm32-adfsdm.txt binding .../bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 7 ++- .../bindings/sound/st,stm32-adfsdm.txt

[PATCH v2] ASoC: cs42l51: manage mclk shutdown delay

2020-10-20 Thread Olivier Moysan
the shutdown delay explicitly. From experiments, at least 10ms delay is necessary. Set delay to 20ms as recommended in Documentation/timers/timers-howto.rst when using msleep(). Signed-off-by: Olivier Moysan --- Recommended Power-Down Sequence: (see https://statics.cirrus.com/pubs/proDatasheet/CS42L51_F2

[PATCH] ASoC: cs42l51: manage mclk shutdown delay

2020-10-20 Thread Olivier Moysan
the shutdown delay explicitly. From experiments, at least 10ms delay is necessary. Set delay to 20ms as recommended in Documentation/timers/timers-howto.rst when using msleep(). Signed-off-by: Olivier Moysan --- Recommended Power-Down Sequence: (see https://statics.cirrus.com/pubs/proDatasheet/CS42L51_F2

[PATCH 1/1] ASoC: dt-bindings: stm32: convert audio dfsdm to json-schema

2020-10-14 Thread Olivier Moysan
Convert the STM32 DFSDM audio bindings to DT schema format using json-schema. Signed-off-by: Olivier Moysan --- .../bindings/sound/st,stm32-adfsdm.txt| 63 --- .../bindings/sound/st,stm32-adfsdm.yaml | 42 + 2 files changed, 42 insertions(+), 63

[PATCH v4] ASoC: dt-bindings: stm32: convert sai to json-schema

2020-10-09 Thread Olivier Moysan
Convert the STM32 SAI bindings to DT schema format using json-schema. Signed-off-by: Olivier Moysan --- Changes in v2: - use pattern for compatible of child nodes - rework dmas and clocks properties - add "additionalProperties" Changes in v3: - move clocks properties for st,s

[PATCH 0/2] ASoC: stm32: dfsdm: change rate limits

2020-10-07 Thread Olivier Moysan
. Add a trace to allow simple check of sample resolution. Olivier Moysan (2): ASoC: stm32: dfsdm: change rate limits ASoC: stm32: dfsdm: add actual resolution trace drivers/iio/adc/stm32-dfsdm-adc.c | 4 drivers/iio/adc/stm32-dfsdm.h | 2 ++ sound/soc/stm/stm32_adfsdm.c | 8

[PATCH 1/2] ASoC: stm32: dfsdm: change rate limits

2020-10-07 Thread Olivier Moysan
The DFSDM can support a larger rate range than currently supported in driver. Increase rate upper limit to 48kHz and allow all rates in the range 8kHz to 48kHz. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_adfsdm.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff

[PATCH 2/2] ASoC: stm32: dfsdm: add actual resolution trace

2020-10-07 Thread Olivier Moysan
Add a trace to report actual resolution of audio samples. Signed-off-by: Olivier Moysan --- drivers/iio/adc/stm32-dfsdm-adc.c | 4 drivers/iio/adc/stm32-dfsdm.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c

[PATCH 1/1] ASoC: cs42l51: add soft dependency declaration

2020-10-02 Thread Olivier Moysan
When configured as module, CS42L51 codec driver uses two modules snd-soc-cs42l51 and snd-soc-cs42l51-i2c. Add soft dependency on snd-soc-cs42l51-i2c in snd-soc-cs42l51, to allow smart module dependency solving. Signed-off-by: Olivier Moysan --- sound/soc/codecs/cs42l51.c | 1 + 1 file changed

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

2020-09-11 Thread Olivier Moysan
Add master clock generation support in STM32 I2S driver. 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/soc/stm/stm32_i2s.c | 310

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

2020-09-11 Thread Olivier Moysan
Add master clock provider support to STM32 I2S. 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-i2s.yaml b/Documentation/devicetree/bindings

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

2020-09-11 Thread 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(-) diff --git a/sound

[PATCH] ASoC: stm32: sai: add pm_runtime support

2020-09-11 Thread Olivier Moysan
. However, this shutdown delay is already handled in the DAPMs of the audio codec linked to SAI CPU DAI. So, the choice is made, not to support this delay on CPU DAI side. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai_sub.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions

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

2019-10-18 Thread Olivier Moysan
and 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][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][RFC] iio: core: add a class hierarchy on iio device lock

2019-10-11 Thread Olivier Moysan
[ 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 | 2 +- drivers/iio/industrialio-core.c | 3 ++- include/linux/iio/iio.h

[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] 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 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 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 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

Re: [PATCH] ARM: dts: stm32: add DFSDM pins to stm32mp157c

2019-08-02 Thread Olivier MOYSAN
Hi ALex, On 8/2/19 10:09 AM, Alexandre Torgue wrote: > Hi Olivier > > On 8/1/19 9:46 AM, Olivier Moysan wrote: >> Add DFSDM pins to stm32mp157c. >> >> Signed-off-by: Olivier Moysan >> --- >>arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 39 >>

[PATCH] ARM: dts: stm32: add DFSDM pins to stm32mp157c

2019-08-01 Thread Olivier Moysan
Add DFSDM pins to stm32mp157c. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157-pinctrl.dtsi | 39 +++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index

Re: [PATCH] ARM: dts: stm32: add audio codec support on stm32mp157a-dk1 board

2019-07-25 Thread Olivier MOYSAN
On 7/24/19 6:40 PM, Alexandre Torgue wrote: > Hi Olivier > > On 7/5/19 1:53 PM, Olivier Moysan wrote: >> Add support of Cirrus cs42l51 audio codec on stm32mp157a-dk1 board. >> Configuration overview: >> - SAI2A is the CPU interface used for the codec audio pla

[PATCH] ARM: dts: stm32: add audio codec support on stm32mp157a-dk1 board

2019-07-05 Thread Olivier Moysan
, to match this constraint. dai-tdm-slot-num and dai-tdm-slot-width properties are used here, assuming that i2s is a special case of tdm, where slot number is 2. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157a-dk1.dts | 89 +++ 1 file changed, 89

[PATCH 4/5] iio: adc: stm32-dfsdm: add fast mode support

2019-06-19 Thread Olivier Moysan
there are too tight time constraints for filter parameters computation. For this reason both fast and non fast filter parameters are pre-computed previously. Signed-off-by: Olivier Moysan --- drivers/iio/adc/stm32-dfsdm-adc.c | 65 ++- drivers/iio/adc/stm32-dfsdm.h

[PATCH 5/5] iio: adc: stm32-dfsdm: add comment for 16 bits record

2019-06-19 Thread Olivier Moysan
Add a comment on DMA configuration for 16 bits record. Signed-off-by: Olivier Moysan --- drivers/iio/adc/stm32-dfsdm-adc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c index d855a605eab6..ee1e0569d0e1 100644

[PATCH 2/5] iio: adc: stm32-dfsdm: fix data type

2019-06-19 Thread Olivier Moysan
("IIO: ADC: add STM32 DFSDM sigma delta ADC support") Signed-off-by: Olivier Moysan --- drivers/iio/adc/stm32-dfsdm-adc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/stm32-dfsdm-adc.c b/drivers/iio/adc/stm32-dfsdm-adc.c index cb596f104919..6b

[PATCH 3/5] iio: adc: stm32-dfsdm: manage data resolution in trigger mode

2019-06-19 Thread Olivier Moysan
Add output sample resolution management in scan mode. Add stm32_dfsdm_process_data() function to share sample processing between continuous and trigger modes. Signed-off-by: Olivier Moysan --- drivers/iio/adc/stm32-dfsdm-adc.c | 41 ++- 1 file changed, 28

[PATCH 1/5] iio: adc: stm32-dfsdm: fix output resolution

2019-06-19 Thread Olivier Moysan
positive sample is reached. Fixes: eca949800d2d ("IIO: ADC: add stm32 DFSDM support for PDM microphone") Signed-off-by: Olivier Moysan --- drivers/iio/adc/stm32-dfsdm-adc.c | 158 +- drivers/iio/adc/stm32-dfsdm.h | 24 -- 2 files changed, 142

[PATCH 0/5] iio: adc: stm32-dfsdm: fix and improve output data managementiio: adc: stm32-dfsdm: fix and improve output data management

2019-06-19 Thread Olivier Moysan
resolution for output data - Add a comment about 16 bits data transfers Olivier Moysan (5): iio: adc: stm32-dfsdm: fix output resolution iio: adc: stm32-dfsdm: fix data type iio: adc: stm32-dfsdm: manage data resolution in trigger mode iio: adc: stm32-dfsdm: add fast mode support iio: adc: stm32

[PATCH] ASoC: stm32: dfsdm: add 16 bits audio record support

2019-06-19 Thread Olivier Moysan
Add support of audio 16 bits format record to STM32 DFSDM driver. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_adfsdm.c | 49 +++- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm

[PATCH] ARM: dts: stm32: add sai id registers to stm32mp157c

2019-06-11 Thread Olivier Moysan
Add identification registers to address range of SAI DT parent node, for stm32mp157c. Change-Id: I696363794fab59ba8d7869b3ffbc041dacdf28de Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp157c.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm

[PATCH] ASoC: stm32: sai: manage identification registers

2019-06-03 Thread Olivier Moysan
Add support of identification registers in STM32 SAI. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai.c | 44 +++ sound/soc/stm/stm32_sai.h | 54 --- sound/soc/stm/stm32_sai_sub.c | 14 ++- 3 files

[PATCH 1/2] ASoC: stm32: i2s: update pcm hardware constraints

2019-05-06 Thread Olivier Moysan
- Set period minimum size. Ensure at least 5ms period up to 48kHz/16 bits to prevent underrun/overrun. - Remove MDMA constraints on period maximum size and set period maximum to half the buffer maximum size. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 3 ++- 1 file changed, 2

[PATCH 0/2] ASoC: stm32: i2s: add some features

2019-05-06 Thread Olivier Moysan
Update and add some features in STM32 I2S driver. - update pcm hardware constraints - add management of identification registers Olivier Moysan (2): ASoC: stm32: i2s: update pcm hardware constraints ASoC: stm32: i2s: manage identification registers sound/soc/stm/stm32_i2s.c | 63

[PATCH 2/2] ASoC: stm32: i2s: manage identification registers

2019-05-06 Thread Olivier Moysan
Add support of identification registers in STM32 I2S. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 60 --- 1 file changed, 57 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index

[PATCH 2/3] ASoC: stm32: spdifrx: change trace level on iec control

2019-05-06 Thread Olivier Moysan
Change trace level to debug to avoid spurious messages. Return quietly when accessing iec958 control, while no S/PDIF signal is available. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_spdifrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm

[PATCH 3/3] ASoC: stm32: spdifrx: manage identification registers

2019-05-06 Thread Olivier Moysan
Add support of identification registers in STM32 SPDIFRX. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_spdifrx.c | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c

[PATCH 1/3] ASoC: stm32: spdifrx: update pcm hardware constraints

2019-05-06 Thread Olivier Moysan
- Set period minimum size. Ensure at least 5ms period up to 48kHz/16 bits to prevent underrun/overrun. - Remove MDMA constraints on period maximum size and set period maximum to half the buffer maximum size. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_spdifrx.c | 3 ++- 1 file changed

[PATCH 0/3] ASoC: stm32: spdifrx: add some features

2019-05-06 Thread Olivier Moysan
Update and add some features in STM32 SPDIFRX driver. - pdate pcm hardware constraints - change trace level on iec control - add management of identification registers Olivier Moysan (3): ASoC: stm32: spdifrx: update pcm hardware constraints ASoC: stm32: spdifrx: change trace level on iec

[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

[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 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 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 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

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

Re: [PATCH] ASoC: stm32: simplify dai driver initialisation

2019-04-23 Thread Olivier MOYSAN
QF_SHARED, dev_name(>dev), sai); > @@ -1477,7 +1452,7 @@ static int stm32_sai_sub_probe(struct platform_device > *pdev) > } > > ret = devm_snd_soc_register_component(>dev, _component, > - sai->cpu_dai_drv, 1); > + >cpu_dai_drv, 1); > if (ret) > return ret; > > Just one comment. sai is missing in commit message. Reviewed-by: Olivier Moysan BRs olivier

[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

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 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 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 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 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 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] ASoC: cs42l51: add multi endpoint support

2019-03-29 Thread Olivier Moysan
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/codecs/cs42l51.c | 8 +++

[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 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 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] ASoC: stm32: sai: add power management

2019-03-21 Thread Olivier Moysan
Add support of low power modes to STM32 SAI driver. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_sai.c | 80 ++- sound/soc/stm/stm32_sai.h | 2 ++ sound/soc/stm/stm32_sai_sub.c | 45 ++-- 3 files changed, 108

[PATCH] ASoC: stm32: i2s: fix registers declaration in regmap

2019-03-11 Thread Olivier Moysan
- Declare SR as volatile, as it is changed by hardware. - Remove TXDR from readable and volatile register list, as it is intended for write accesses only. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc

[PATCH 3/3] ASoC: stm32: i2s: use default dai name

2019-03-11 Thread Olivier Moysan
Use default DAI name based on dev_name function. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 06bbbef74b3a..c18e068c1a0d 100644 --- a/sound/soc/stm/stm32_i2s.c

[PATCH 0/3] ASoC: stm32: i2s: add minor improvements

2019-03-11 Thread Olivier Moysan
Add following minor changes in STM32 I2S driver: - Change trigger traces - Improve channel capabilities handling - Use default dai name Olivier Moysan (3): ASoC: stm32: i2s: change trigger traces ASoC: stm32: i2s: improve channel capabilities handling ASoC: stm32: i2s: use default dai name

[PATCH 1/3] ASoC: stm32: i2s: change trigger traces

2019-03-11 Thread Olivier Moysan
Update traces to log capture/playback stream start/stop. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm/stm32_i2s.c b/sound/soc/stm/stm32_i2s.c index 47c334de6b09..783b33497435 100644

[PATCH 2/3] ASoC: stm32: i2s: improve channel capabilities handling

2019-03-11 Thread Olivier Moysan
Use alsa snd_pcm_hw_constraint_single service to manage channels restriction. This provides better status on driver limitations, to the application. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_i2s.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sound

[PATCH] ASoC: stm32: spdifrx: add power management

2019-03-06 Thread Olivier Moysan
Add suspend and resume sleep callbacks to STM32 SPDIFRX driver, to support system low power modes. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_spdifrx.c | 42 +++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm

[PATCH 0/3] ASoC: stm32: dfsdm: fixes

2019-03-04 Thread Olivier Moysan
This patch-set provides the following fixes for STM32 DFSDM: - manage multiple prepare - fix debugfs warnings on entry creation - add mmap support Olivier Moysan (3): ASoC: stm32: dfsdm: manage multiple prepare ASoC: stm32: dfsdm: fix debugfs warnings on entry creation ASoC: stm32: dfsdm

[PATCH 3/3] ASoC: stm32: dfsdm: add mmap support

2019-03-04 Thread Olivier Moysan
Enable direct access (mmap) support. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_adfsdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/stm/stm32_adfsdm.c b/sound/soc/stm/stm32_adfsdm.c index 24948b95eb19..0d3040aef7f6 100644 --- a/sound/soc/stm

[PATCH 2/3] ASoC: stm32: dfsdm: fix debugfs warnings on entry creation

2019-03-04 Thread Olivier Moysan
Register platform component with a prefix, to avoid warnings on debugfs entries creation, due to component name redundancy. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_adfsdm.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/sound/soc/stm

[PATCH 1/3] ASoC: stm32: dfsdm: manage multiple prepare

2019-03-04 Thread Olivier Moysan
The DFSDM must be stopped when a new setting is applied. restart systematically DFSDM on multiple prepare calls, to apply changes. Signed-off-by: Olivier Moysan --- sound/soc/stm/stm32_adfsdm.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sound/soc/stm

[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

[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 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 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 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 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

[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 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 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

  1   2   3   4   >