Lines Matching refs:simple
2 * Mixer Interface - simple abstact module - base library
303 struct selem_base *simple = snd_mixer_elem_get_private(elem);
307 if (simple->selem.id)
308 snd_mixer_selem_id_free(simple->selem.id);
309 list_for_each_safe(pos, npos, &simple->helems) {
313 free(simple);
324 struct selem_base *simple;
396 simple = calloc(1, sizeof(*simple));
397 if (!simple) {
402 simple->selem.id = id;
403 simple->selem.ops = &simple_ac97_ops;
404 INIT_LIST_HEAD(&simple->helems);
405 simple->sid = sel->sid;
408 simple, selem_free);
412 free(simple);
417 simple = snd_mixer_elem_get_private(melem);
420 list_add_tail(&hsimple->list, &simple->helems);
425 simple->dir[0].chanmap |= sid->chanmap[0];
426 simple->dir[1].chanmap |= sid->chanmap[1];
427 simple->selem.caps |= hsimple->caps;
428 update_ranges(simple);