OpenCloudOS-Kernel/sound/soc/sof
Keyon Jie e582f4832a
ASoC: SOF: pcm: skip DMA buffer pre-allocation
As discussion in ALSA https://patchwork.kernel.org/patch/11336023/, it
is suggested to skip DMA buffer pre-allocation with passing size=0 when
calling snd_pcm_set_managed_buffer(), to make the full buffer_bytes
range configured in topology file selectable from user space, here do
the corresponding change in SOF PCM driver to implement it.

This change doesn't have dependency to the change that Takashi will do
in the ALSA core by adding total_pcm_alloc_bytes limitation to the
struct snd_card, it passes tests both with or without Takashi's coming
change on SOF CML platform.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Link: https://lore.kernel.org/r/20200228231850.9226-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-03-02 14:13:47 +00:00
..
imx ASoC: SOF: imx8: Add ops for i.MX8QM 2020-02-11 11:26:22 +00:00
intel ASoC: SOF: Intel: hda: allow operation without i915 gfx 2020-02-20 20:28:45 +00:00
xtensa ASoC: SOF: Intel: add namespace for XTENSA 2019-12-18 20:02:21 +00:00
Kconfig ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
Makefile ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
compress.c ASoC: SOF: Intel: Add Probe compress CPU DAIs 2020-02-18 21:52:11 +00:00
compress.h ASoC: SOF: Intel: Add Probe compress CPU DAIs 2020-02-18 21:52:11 +00:00
control.c ASoC: SOF: partition audio-related parts from SOF core 2019-12-09 18:38:57 +00:00
core.c ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
debug.c ASoC: SOF: Provide probe debugfs support 2020-02-18 21:52:10 +00:00
ipc.c ASoC: SOF: Intel: cnl: Implement feature to support DSP D0i3 in S0 2020-02-11 11:48:07 +00:00
loader.c ASoC: SOF: loader: add dynamic debug trace 2020-01-07 22:29:20 +00:00
nocodec.c ASoC: SOF: nocodec: Amend arguments for sof_nocodec_setup() 2019-12-09 18:40:32 +00:00
ops.c ASoC: SOF: Fix a compile warning with CONFIG_PCI=n 2019-05-07 11:23:57 +09:00
ops.h ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
pcm.c ASoC: SOF: pcm: skip DMA buffer pre-allocation 2020-03-02 14:13:47 +00:00
pm.c ASoC: SOF: Move DSP power state transitions to platform-specific ops 2020-02-11 11:48:05 +00:00
probe.c ASoC: SOF: Implement Probe IPC API 2020-02-18 21:52:06 +00:00
probe.h ASoC: SOF: Implement Probe IPC API 2020-02-18 21:52:06 +00:00
sof-acpi-dev.c ASoC: SOF: move arch_ops under ops 2019-12-18 20:02:02 +00:00
sof-audio.c ASoC: sof: sof-audio: use for_each_pcm_streams() macro 2020-02-18 23:37:12 +00:00
sof-audio.h ASoC: SOF: audio: Add helper to check if only D0i3 streams are active 2020-02-11 11:48:05 +00:00
sof-of-dev.c ASoC: SOF: Add i.MX8QM device descriptor 2020-02-11 11:26:40 +00:00
sof-pci-dev.c ASoC: SOF: Intel: add PCI ID for JasperLake 2020-02-02 12:07:18 +00:00
sof-priv.h ASoC: SOF: Generic probe compress operations 2020-02-18 21:52:07 +00:00
topology.c ASoC: SOF: imx: Read SAI parameters and send them to DSP 2019-12-18 19:54:25 +00:00
trace.c ASoC: SOF: trace: fix unconditional free in trace release 2020-01-27 17:52:09 +00:00
utils.c ASoC: SOF: core: modify the signature for snd_sof_create_page_table 2019-12-09 18:38:01 +00:00