Removal of sdi->index, step 3: sr_dev_inst_new() calls for input mods
This commit is contained in:
parent
c6805a02cc
commit
f220936473
|
@ -50,7 +50,7 @@ static int init(struct sr_input *in, GHashTable *options)
|
|||
return SR_ERR_ARG;
|
||||
}
|
||||
|
||||
in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->priv = inc = g_malloc0(sizeof(struct context));
|
||||
|
||||
inc->samplerate = g_variant_get_uint64(g_hash_table_lookup(options, "samplerate"));
|
||||
|
|
|
@ -62,7 +62,7 @@ static int init(struct sr_input *in, GHashTable *options)
|
|||
return SR_ERR_ARG;
|
||||
}
|
||||
|
||||
in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->priv = inc = g_malloc0(sizeof(struct context));
|
||||
|
||||
inc->samplerate = g_variant_get_uint64(g_hash_table_lookup(options, "samplerate"));
|
||||
|
|
|
@ -393,7 +393,7 @@ static int init(struct sr_input *in, GHashTable *options)
|
|||
struct context *inc;
|
||||
const char *s;
|
||||
|
||||
in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->priv = inc = g_malloc0(sizeof(struct context));
|
||||
|
||||
inc->single_column = g_variant_get_int32(g_hash_table_lookup(options, "single-column"));
|
||||
|
|
|
@ -430,7 +430,7 @@ static int init(struct sr_input *in, GHashTable *options)
|
|||
inc->skip = g_variant_get_int32(g_hash_table_lookup(options, "skip"));
|
||||
inc->skip /= inc->downsample;
|
||||
|
||||
in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->priv = inc;
|
||||
|
||||
for (i = 0; i < num_channels; i++) {
|
||||
|
|
|
@ -149,7 +149,7 @@ static int init(struct sr_input *in, GHashTable *options)
|
|||
{
|
||||
(void)options;
|
||||
|
||||
in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
|
||||
|
||||
return SR_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue