Skip to content

Commit eca9498

Browse files
arnopobroonie
authored andcommitted
IIO: ADC: add stm32 DFSDM support for PDM microphone
This code offers a way to handle PDM audio microphones in ASOC framework. Audio driver should use consumer API. A specific management is implemented for DMA, with a callback, to allows to handle audio buffers efficiently. Signed-off-by: Arnaud Pouliquen <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent e2e6771 commit eca9498

File tree

3 files changed

+529
-7
lines changed

3 files changed

+529
-7
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
What: /sys/bus/iio/devices/iio:deviceX/in_voltage_spi_clk_freq
2+
KernelVersion: 4.14
3+
4+
Description:
5+
For audio purpose only.
6+
Used by audio driver to set/get the spi input frequency.
7+
This is mandatory if DFSDM is slave on SPI bus, to
8+
provide information on the SPI clock frequency during runtime
9+
Notice that the SPI frequency should be a multiple of sample
10+
frequency to ensure the precision.
11+
if DFSDM input is SPI master
12+
Reading SPI clkout frequency,
13+
error on writing
14+
If DFSDM input is SPI Slave:
15+
Reading returns value previously set.
16+
Writing value before starting conversions.

0 commit comments

Comments
 (0)