We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 810118d commit 45f1222Copy full SHA for 45f1222
samples/subsys/usb/uac2_implicit_feedback/src/main.c
@@ -37,8 +37,10 @@ LOG_MODULE_REGISTER(uac2_sample, LOG_LEVEL_INF);
37
* errors when USB host decides to perform rapid terminal enable/disable cycles.
38
*/
39
#define I2S_BLOCKS 7
40
-K_MEM_SLAB_DEFINE_STATIC(i2s_tx_slab, MAX_BLOCK_SIZE, I2S_BLOCKS, 4);
41
-K_MEM_SLAB_DEFINE_STATIC(i2s_rx_slab, MAX_BLOCK_SIZE, I2S_BLOCKS, 4);
+K_MEM_SLAB_DEFINE_STATIC(i2s_tx_slab, ROUND_UP(MAX_BLOCK_SIZE, UDC_BUF_GRANULARITY),
+ I2S_BLOCKS, UDC_BUF_ALIGN);
42
+K_MEM_SLAB_DEFINE_STATIC(i2s_rx_slab, ROUND_UP(MAX_BLOCK_SIZE, UDC_BUF_GRANULARITY),
43
44
45
struct usb_i2s_ctx {
46
const struct device *i2s_dev;
0 commit comments