• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/sound/

Lines Matching refs:unit

92 static void __sound_remove_unit(struct sound_unit **list, int unit)
97 if(p->unit_minor==unit)
107 printk(KERN_ERR "Sound device %d went missing!\n", unit);
153 * Remove a unit. Acquires locks as needed. The drivers MUST have
158 static void sound_remove_unit(struct sound_unit **list, int unit)
161 __sound_remove_unit(list, unit);
191 * @unit: Unit number to allocate
198 int register_sound_special(struct file_operations *fops, int unit)
202 switch (unit) {
252 return sound_insert_unit(&chains[unit&15], fops, -1, unit, unit+1,
264 * Pass -1 to request the next free mixer unit. On success the allocated
282 * Pass -1 to request the next free midi unit. On success the allocated
305 * Pass -1 to request the next free DSP unit. On success the allocated
326 * Pass -1 to request the next free synth unit. On success the allocated
341 * @unit: unit number to allocate
344 * register_sound_special(). The unit passed is the return value from
349 void unregister_sound_special(int unit)
351 sound_remove_unit(&chains[unit&15], unit);
358 * @unit: unit number to allocate
361 * The unit passed is the return value from the register function.
364 void unregister_sound_mixer(int unit)
366 sound_remove_unit(&chains[0], unit);
373 * @unit: unit number to allocate
376 * The unit passed is the return value from the register function.
379 void unregister_sound_midi(int unit)
381 return sound_remove_unit(&chains[2], unit);
388 * @unit: unit number to allocate
391 * The unit passed is the return value from the register function.
396 void unregister_sound_dsp(int unit)
398 return sound_remove_unit(&chains[3], unit);
406 * @unit: unit number to allocate
409 * The unit passed is the return value from the register function.
412 void unregister_sound_synth(int unit)
414 return sound_remove_unit(&chains[9], unit);
432 static struct sound_unit *__look_for_unit(int chain, int unit)
437 while(s && s->unit_minor <= unit)
439 if(s->unit_minor==unit)
449 int unit=MINOR(inode->i_rdev);
453 chain=unit&0x0F;
456 unit&=0xF0;
457 unit|=3;
462 s = __look_for_unit(chain, unit);
476 sprintf(mod, "sound-slot-%i", unit>>4);
478 sprintf(mod, "sound-service-%i-%i", unit>>4, chain);
481 s = __look_for_unit(chain, unit);