]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: SOF: ipc4-topology: Correct the minimum host DMA buffer size
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 2 Oct 2025 13:57:50 +0000 (16:57 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 2 Oct 2025 14:03:30 +0000 (15:03 +0100)
The firmware has changed the minimum host buffer size from 2 periods to
4 periods (1 period is 1ms) which was missed by the kernel side.

Adjust the SOF_IPC4_MIN_DMA_BUFFER_SIZE to 4 ms to align with firmware.

Link: https://github.com/thesofproject/sof/commit/f0a14a3f410735db18a79eb7a5f40dc49fdee7a7
Fixes: 594c1bb9ff73 ("ASoC: SOF: ipc4-topology: Do not parse the DMA_BUFFER_SIZE token")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20251002135752.2430-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4-topology.h

index dfa1a6c2ffa8293b2aed3f5fe0db92ace14c4377..d6894fdd7e1dc5e82a4baf37ce353ef802bdc1ad 100644 (file)
@@ -70,8 +70,8 @@
 #define SOF_IPC4_CHAIN_DMA_NODE_ID     0x7fffffff
 #define SOF_IPC4_INVALID_NODE_ID       0xffffffff
 
-/* FW requires minimum 2ms DMA buffer size */
-#define SOF_IPC4_MIN_DMA_BUFFER_SIZE   2
+/* FW requires minimum 4ms DMA buffer size */
+#define SOF_IPC4_MIN_DMA_BUFFER_SIZE   4
 
 /*
  * The base of multi-gateways. Multi-gateways addressing starts from