chronovu-la8: Publish SR_CONF_MAX_UNCOMPRESSED_SAMPLES.
This commit is contained in:
parent
0b9b3c41c2
commit
14563512ec
|
@ -42,6 +42,7 @@ SR_PRIV const int32_t chronovu_la8_hwcaps[] = {
|
|||
SR_CONF_SAMPLERATE,
|
||||
SR_CONF_LIMIT_MSEC, /* TODO: Not yet implemented. */
|
||||
SR_CONF_LIMIT_SAMPLES, /* TODO: Not yet implemented. */
|
||||
SR_CONF_MAX_UNCOMPRESSED_SAMPLES,
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -279,6 +280,9 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi,
|
|||
} else
|
||||
return SR_ERR;
|
||||
break;
|
||||
case SR_CONF_MAX_UNCOMPRESSED_SAMPLES:
|
||||
*data = g_variant_new_uint64(MAX_NUM_SAMPLES);
|
||||
break;
|
||||
default:
|
||||
return SR_ERR_NA;
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
#define TRIGGER_TYPE "01"
|
||||
#define SDRAM_SIZE (8 * 1024 * 1024)
|
||||
#define MIN_NUM_SAMPLES 1
|
||||
#define MAX_NUM_SAMPLES SDRAM_SIZE
|
||||
|
||||
#define BS 4096 /* Block size */
|
||||
#define NUM_BLOCKS 2048 /* Number of blocks */
|
||||
|
|
Loading…
Reference in New Issue