Lines Matching refs:args
2322 struct cmipci_switch_args *args)
2328 if (args->ac3_sensitive && cm->mixer_insensitive) {
2333 if (args->is_byte)
2334 val = inb(cm->iobase + args->reg);
2336 val = snd_cmipci_read(cm, args->reg);
2337 ucontrol->value.integer.value[0] = ((val & args->mask) == args->mask_on) ? 1 : 0;
2345 struct cmipci_switch_args *args;
2346 args = (struct cmipci_switch_args *)kcontrol->private_value;
2347 if (snd_BUG_ON(!args))
2349 return _snd_cmipci_uswitch_get(kcontrol, ucontrol, args);
2354 struct cmipci_switch_args *args)
2361 if (args->ac3_sensitive && cm->mixer_insensitive) {
2366 if (args->is_byte)
2367 val = inb(cm->iobase + args->reg);
2369 val = snd_cmipci_read(cm, args->reg);
2370 change = (val & args->mask) != (ucontrol->value.integer.value[0] ?
2371 args->mask_on : (args->mask & ~args->mask_on));
2373 val &= ~args->mask;
2375 val |= args->mask_on;
2377 val |= (args->mask & ~args->mask_on);
2378 if (args->is_byte)
2379 outb((unsigned char)val, cm->iobase + args->reg);
2381 snd_cmipci_write(cm, args->reg, val);
2390 struct cmipci_switch_args *args;
2391 args = (struct cmipci_switch_args *)kcontrol->private_value;
2392 if (snd_BUG_ON(!args))
2394 return _snd_cmipci_uswitch_put(kcontrol, ucontrol, args);