linux/sound/soc/sof/imx
Shengjiu Wang b6190c452a
ASoC: SOF: imx: Add SNDRV_PCM_INFO_BATCH flag
The sof imx 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 sof 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/1703669263-13832-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-12-29 02:09:02 +00:00
..
imx8.c ASoC: SOF: imx: Add SNDRV_PCM_INFO_BATCH flag 2023-12-29 02:09:02 +00:00
imx8m.c ASoC: SOF: imx: Add SNDRV_PCM_INFO_BATCH flag 2023-12-29 02:09:02 +00:00
imx8ulp.c ASoC: SOF: imx: Add SNDRV_PCM_INFO_BATCH flag 2023-12-29 02:09:02 +00:00
imx-common.c ASoC: SOF: Rename snd_sof_get_status() and add kernel log level parameter 2021-12-23 13:38:26 +00:00
imx-common.h ASoC: SOF: imx: Add code to manage DSP related clocks 2021-11-22 15:40:08 +00:00
Kconfig ASoC: SOF: imx: Add i.MX8ULP HW support 2022-08-19 13:19:55 +01:00
Makefile ASoC: SOF: imx: Add i.MX8ULP HW support 2022-08-19 13:19:55 +01:00