libbladeRF: added sc16q11 packed error when initializing async stream
BLADERF_FORMAT_SC16_Q11_PACKED is only supported with the synchronous interface.
This commit is contained in:
parent
ff1b3d4e97
commit
5ff41748aa
1 changed files with 6 additions and 0 deletions
|
|
@ -1115,6 +1115,12 @@ int bladerf_init_stream(struct bladerf_stream **stream,
|
|||
}
|
||||
}
|
||||
|
||||
if (format == BLADERF_FORMAT_SC16_Q11_PACKED) {
|
||||
log_error("%s: Async interface does not support SC16_Q11_PACKED format\n", __FUNCTION__);
|
||||
MUTEX_UNLOCK(&dev->lock);
|
||||
return BLADERF_ERR_UNSUPPORTED;
|
||||
}
|
||||
|
||||
status = dev->board->init_stream(stream, dev, callback, buffers,
|
||||
num_buffers, format, samples_per_buffer,
|
||||
num_transfers, data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue