Lines Matching refs:args
2314 struct cmipci_switch_args *args)
2320 if (args->ac3_sensitive && cm->mixer_insensitive) {
2325 if (args->is_byte)
2326 val = inb(cm->iobase + args->reg);
2328 val = snd_cmipci_read(cm, args->reg);
2329 ucontrol->value.integer.value[0] = ((val & args->mask) == args->mask_on) ? 1 : 0;
2337 struct cmipci_switch_args *args;
2338 args = (struct cmipci_switch_args *)kcontrol->private_value;
2339 if (snd_BUG_ON(!args))
2341 return _snd_cmipci_uswitch_get(kcontrol, ucontrol, args);
2346 struct cmipci_switch_args *args)
2353 if (args->ac3_sensitive && cm->mixer_insensitive) {
2358 if (args->is_byte)
2359 val = inb(cm->iobase + args->reg);
2361 val = snd_cmipci_read(cm, args->reg);
2362 change = (val & args->mask) != (ucontrol->value.integer.value[0] ?
2363 args->mask_on : (args->mask & ~args->mask_on));
2365 val &= ~args->mask;
2367 val |= args->mask_on;
2369 val |= (args->mask & ~args->mask_on);
2370 if (args->is_byte)
2371 outb((unsigned char)val, cm->iobase + args->reg);
2373 snd_cmipci_write(cm, args->reg, val);
2382 struct cmipci_switch_args *args;
2383 args = (struct cmipci_switch_args *)kcontrol->private_value;
2384 if (snd_BUG_ON(!args))
2386 return _snd_cmipci_uswitch_put(kcontrol, ucontrol, args);