diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2023-09-11 14:38:07 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-11 16:09:01 +0100 |
commit | 2f9426905a63be7ccf8cd10109caf1848aa0993a (patch) | |
tree | 90f8024ebe3aa2158ad8018b5fc39e728ed52a41 /sound/soc/codecs/wm8971.c | |
parent | e616a916fe8431ebd5eb3cf4ac224d143c57083c (diff) | |
download | linux-stable-2f9426905a63be7ccf8cd10109caf1848aa0993a.tar.gz linux-stable-2f9426905a63be7ccf8cd10109caf1848aa0993a.tar.bz2 linux-stable-2f9426905a63be7ccf8cd10109caf1848aa0993a.zip |
ASoC: fsl: imx-pcm-rpmsg: Add SNDRV_PCM_INFO_BATCH flag
The rpmsg pcm device is a device which should support
double buffering.
Found this issue with pipewire. When there is no
SNDRV_PCM_INFO_BATCH flag in driver, the pipewire will
set headroom to be zero, and because rpmsg pcm device
don't support residue report, when the latency setting
is small, the "delay" always larger than "target" in
alsa-pcm.c, that reading next period data is not
scheduled on time.
With SNDRV_PCM_INFO_BATCH flag in driver, the pipewire
will select a smaller period size for device, then
the task of reading next period data will be scheduled
on time.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://lore.kernel.org/r/1694414287-13291-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm8971.c')
0 files changed, 0 insertions, 0 deletions