Lines Matching refs:control

222 	multi_mixer_control control;
224 control.mix_control.master = EMU_MULTI_CONTROL_MASTERID;
225 control.mix_control.parent = parent;
226 control.cookie = gpr;
227 control.get = &emuxki_gpr_get_mix;
228 control.set = &emuxki_gpr_set_mix;
229 control.mix_control.u.gain.min_gain = gpr->min_gain;
230 control.mix_control.u.gain.max_gain = gpr->max_gain;
231 control.mix_control.u.gain.granularity = gpr->granularity;
235 control.mix_control.id = EMU_MULTI_CONTROL_FIRSTID + i;
236 control.mix_control.flags = B_MULTI_MIX_ENABLE;
237 control.mix_control.string = S_MUTE;
238 control.type = EMU_MIX_MUTE;
239 multi->controls[i] = control;
243 control.mix_control.id = EMU_MULTI_CONTROL_FIRSTID + i;
244 control.mix_control.flags = B_MULTI_MIX_GAIN;
245 strcpy(control.mix_control.name, gpr->name);
246 control.type = EMU_MIX_GAIN;
247 multi->controls[i] = control;
248 id = control.mix_control.id;
252 control.mix_control.id = EMU_MULTI_CONTROL_FIRSTID + i;
253 control.mix_control.master = id;
254 multi->controls[i] = control;
532 multi_mixer_control *control = NULL;
537 "invalid control id requested : %" B_PRIi32 "\n", id));
540 control = &card->multi.controls[id];
542 if (control->mix_control.flags & B_MULTI_MIX_GAIN) {
543 if (control->get) {
545 control->get(card, control->cookie, control->type, values);
546 if (control->mix_control.master == EMU_MULTI_CONTROL_MASTERID)
553 if (control->mix_control.flags & B_MULTI_MIX_ENABLE && control->get) {
555 control->get(card, control->cookie, control->type, values);
559 if (control->mix_control.flags & B_MULTI_MIX_MUX && control->get) {
561 control->get(card, control->cookie, control->type, values);
573 multi_mixer_control *control = NULL;
578 "invalid control id requested : %" B_PRIi32 "\n", id));
581 control = &card->multi.controls[id];
583 if (control->mix_control.flags & B_MULTI_MIX_GAIN) {
589 "invalid control id requested : %" B_PRIi32 "\n", id));
592 if (control2->mix_control.master != control->mix_control.id)
597 if (control->set) {
602 if (control->mix_control.master == EMU_MULTI_CONTROL_MASTERID)
610 control->set(card, control->cookie, control->type, values);
617 if (control->mix_control.flags & B_MULTI_MIX_ENABLE && control->set) {
621 control->set(card, control->cookie, control->type, values);
624 if (control->mix_control.flags & B_MULTI_MIX_MUX && control->set) {
628 control->set(card, control->cookie, control->type, values);
1206 emuxki_control, /* -> control entry point */