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:
Ryan Thompson 2024-10-21 12:14:57 -05:00 • committed by Robert Ghilduta
commit 5ff41748aa

View file

@ -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);