linux-stable/sound/soc/atmel
Mark Brown 11d4e47486
ASoC: mchp-pdmc: fix poc noises when starting
Merge series from Claudiu Beznea <claudiu.beznea@microchip.com>:

To start capture on Microchip PDMC the enable bits for each supported
microphone need to be set. After this bit is set the PDMC starts to
receive data from microphones and it considers this data as valid data.
Thus if microphones are not ready the PDMC captures anyway data from its
lines. This data is interpreted by the human ear as poc noises.

To avoid this the following software workaround need to be applied when
starting capture:
1/ enable PDMC channel
2/ wait 150ms
3/ execute 16 dummy reads from RHR
4/ clear interrupts
5/ enable interrupts
6/ enable DMA channel

For this workaround to work step 6 need to be executed at the end.
For step 6 was added patch 1/3 from this series. With this, component
DAI driver sets its struct snd_soc_component_driver::start_dma_last = 1
and proper action is taken based on this flag when starting DAI trigger
vs DMA.
2023-02-28 17:59:15 +00:00
..
atmel-classd.c ASoC: atmel-classd: Drop empty platform remove function 2022-12-25 23:32:43 +00:00
atmel-classd.h
atmel-i2s.c
atmel-pcm-dma.c
atmel-pcm-pdc.c
atmel-pcm.h
atmel-pdmic.c ASoC: atmel-pdmic: Drop empty platform remove function 2022-12-25 23:32:44 +00:00
atmel-pdmic.h
atmel_ssc_dai.c
atmel_ssc_dai.h
atmel_wm8904.c
Kconfig
Makefile
mchp-i2s-mcc.c
mchp-pdmc.c ASoC: mchp-pdmc: fix poc noise at capture startup 2023-02-28 13:58:50 +00:00
mchp-spdifrx.c ASoC: mchp-spdifrx: Fix uninitialized use of mr in mchp_spdifrx_hw_params() 2023-02-02 17:36:53 +00:00
mchp-spdiftx.c ASoC: mchp-spdiftx: use FIELD_PREP() where possible 2022-12-25 23:33:18 +00:00
mikroe-proto.c
sam9g20_wm8731.c ASoC: sam9g20ek: Disable capture unless building with microphone input 2023-02-28 13:59:55 +00:00
sam9x5_wm8731.c
tse850-pcm5142.c