168 |
else |
else |
169 |
sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); |
sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); |
170 |
|
|
171 |
devfs_register(NULL, s->name, 0, SOUND_MAJOR, s->unit_minor, |
devfs_mk_cdev(MKDEV(SOUND_MAJOR, s->unit_minor), |
172 |
S_IFCHR | mode, fops, NULL); |
S_IFCHR | mode, s->name); |
173 |
return r; |
return r; |
174 |
|
|
175 |
fail: |
fail: |
500 |
if (s) |
if (s) |
501 |
new_fops = fops_get(s->unit_fops); |
new_fops = fops_get(s->unit_fops); |
502 |
if (!new_fops) { |
if (!new_fops) { |
|
char mod[32]; |
|
|
|
|
503 |
spin_unlock(&sound_loader_lock); |
spin_unlock(&sound_loader_lock); |
504 |
/* |
/* |
505 |
* Please, don't change this order or code. |
* Please, don't change this order or code. |
508 |
* ALSA toplevel modules for soundcards, thus we need |
* ALSA toplevel modules for soundcards, thus we need |
509 |
* load them at first. [Jaroslav Kysela <perex@jcu.cz>] |
* load them at first. [Jaroslav Kysela <perex@jcu.cz>] |
510 |
*/ |
*/ |
511 |
sprintf(mod, "sound-slot-%i", unit>>4); |
request_module("sound-slot-%i", unit>>4); |
512 |
request_module(mod); |
request_module("sound-service-%i-%i", unit>>4, chain); |
|
sprintf(mod, "sound-service-%i-%i", unit>>4, chain); |
|
|
request_module(mod); |
|
513 |
spin_lock(&sound_loader_lock); |
spin_lock(&sound_loader_lock); |
514 |
s = __look_for_unit(chain, unit); |
s = __look_for_unit(chain, unit); |
515 |
if (s) |
if (s) |