ASoC: rockchip: pdm: adjust waterlevel in frame unit
authorSugar Zhang <sugar.zhang@rock-chips.com>
Thu, 4 Apr 2019 03:56:29 +0000 (11:56 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 4 Apr 2019 08:10:38 +0000 (15:10 +0700)
commit430f5da69b9323d5e7faca95bc30e61be4fcbbbf
tree97bf901946aa9f5700a80ee9af2177d0317ceae5
parent2a050b7a746e2c59a733a3641eb1c01cf2e573b4
ASoC: rockchip: pdm: adjust waterlevel in frame unit

This patch make the waterlevel more reasonable, because the pdm
controller share the single FIFO(128 entries) with each channel.
adjust waterlevel in frame to meet the vad or dma frames request.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_pdm.c