linux/sound/soc/stm
Olivier Moysan 065f819dfa ASoC: stm32: dfsdm: fix 16 bits record
commit 8e55ea1912 upstream.

In stm32_afsdm_pcm_cb function, the transfer size is provided in bytes.
However, samples are copied as 16 bits words from iio buffer.
Divide by two the transfer size, to copy the right number of samples.

Fixes: 1e7f6e1c69 ("ASoC: stm32: dfsdm: add 16 bits audio record support")

Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
Link: https://lore.kernel.org/r/20200110131131.3191-1-olivier.moysan@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:22:29 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile ASoC: stm32: add DFSDM DAI support 2018-01-10 10:52:05 +00:00
stm32_adfsdm.c ASoC: stm32: dfsdm: fix 16 bits record 2020-01-23 08:22:29 +01:00
stm32_i2s.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
stm32_sai.c ASoC: Remove dev_err() usage after platform_get_irq() 2019-08-02 12:12:31 +01:00
stm32_sai.h Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
stm32_sai_sub.c ASoC: stm32: sai: fix possible circular locking 2020-01-23 08:22:29 +01:00
stm32_spdifrx.c ASoC: stm32: spdifrx: fix input pin state management 2020-01-17 19:48:18 +01:00