Removal of sdi->index, step 3: sr_dev_inst_new() calls for input mods

This commit is contained in:
Soeren Apel 2014-09-27 22:29:10 +02:00 committed by Bert Vermeulen
parent c6805a02cc
commit f220936473
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

@ -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++) {

View File

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