diff options
| author | Harendra Gautam <harendra.gautam@oss.qualcomm.com> | 2026-10-13 11:21:30 +0530 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-15 16:44:19 +0100 |
| commit | 6381a4f9c6339bd7b24bea04057fff8ff6dee107 (patch) | |
| tree | 0fd891d5c4e679faa649826c143c4ff3365be3c0 /tools/perf/scripts/python/bin | |
| parent | 76c5ecd4cafea41498c194d64089ad58b7cddf0f (diff) | |
ASoC: qcom: Add QAIF PCM operations
Add the PCM platform callbacks needed to use QAIF DAIs for playback
and capture.
Pre-allocate the DMA buffer via snd_pcm_set_fixed_buffer_all() in the
.pcm_new callback. In open(), reserve a stream DMA index and perform
the one-time QAIF hardware initialization. Program the DMA configuration
in hw_params(), set the DMA clock rate and program the DMA base, buffer
and period registers in prepare(), and report the current DMA position
from pointer(). Release all resources in close().
The DMA clocks themselves are prepared and enabled by the CPU DAI
driver's startup and shutdown callbacks.
Support mmap() for CIF and AIF paths.
Signed-off-by: Harendra Gautam <harendra.gautam@oss.qualcomm.com>
Reviewed-by: Ajay Kumar Nandam <ajay.nandam@oss.qualcomm.com>
Link: https://patch.msgid.link/20261013-b4-qaif-shikra-audio-v9-7-f3022e28f2fd@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
