drivers: audio: Port to the new timeout API
Port the I2S and DMIC drivers to the new timeout API so that they do not need to enable legacy timeouts. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
This commit is contained in:
parent
8e297e87b3
commit
9ba20dd48e
8 changed files with 20 additions and 15 deletions
|
@ -1346,7 +1346,7 @@ static int dmic_read_device(struct device *dev, u8_t stream,
|
|||
|
||||
/* retrieve buffer from out queue */
|
||||
ret = k_msgq_get(&dmic_private.streams[stream].out_queue,
|
||||
buffer, timeout);
|
||||
buffer, K_MSEC(timeout));
|
||||
if (ret) {
|
||||
LOG_ERR("No buffers in stream %u out_queue", stream);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue