Lines Matching full:minor

25 void *snd_lookup_oss_minor_data(unsigned int minor, int type)  in snd_lookup_oss_minor_data()  argument
30 if (minor >= ARRAY_SIZE(snd_oss_minors)) in snd_lookup_oss_minor_data()
33 mreg = snd_oss_minors[minor]; in snd_lookup_oss_minor_data()
47 int minor; in snd_oss_kernel_minor() local
53 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIXER1 : SNDRV_MINOR_OSS_MIXER)); in snd_oss_kernel_minor()
56 minor = SNDRV_MINOR_OSS_SEQUENCER; in snd_oss_kernel_minor()
59 minor = SNDRV_MINOR_OSS_MUSIC; in snd_oss_kernel_minor()
64 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_PCM1 : SNDRV_MINOR_OSS_PCM)); in snd_oss_kernel_minor()
69 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIDI1 : SNDRV_MINOR_OSS_MIDI)); in snd_oss_kernel_minor()
72 minor = SNDRV_MINOR_OSS(card->number, SNDRV_MINOR_OSS_DMFM); in snd_oss_kernel_minor()
75 minor = SNDRV_MINOR_OSS_SNDSTAT; in snd_oss_kernel_minor()
80 if (minor < 0 || minor >= SNDRV_OSS_MINORS) in snd_oss_kernel_minor()
82 return minor; in snd_oss_kernel_minor()
88 int minor = snd_oss_kernel_minor(type, card, dev); in snd_register_oss_device() local
91 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device()
98 if (minor < 0) in snd_register_oss_device()
99 return minor; in snd_register_oss_device()
110 snd_oss_minors[minor] = preg; in snd_register_oss_device()
111 minor_unit = SNDRV_MINOR_OSS_DEVICE(minor); in snd_register_oss_device()
123 register1 = register_sound_special_device(f_ops, minor, carddev); in snd_register_oss_device()
124 if (register1 != minor) in snd_register_oss_device()
141 snd_oss_minors[minor] = NULL; in snd_register_oss_device()
150 int minor = snd_oss_kernel_minor(type, card, dev); in snd_unregister_oss_device() local
151 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device()
157 if (minor < 0) in snd_unregister_oss_device()
158 return minor; in snd_unregister_oss_device()
160 mptr = snd_oss_minors[minor]; in snd_unregister_oss_device()
165 unregister_sound_special(minor); in snd_unregister_oss_device()
166 switch (SNDRV_MINOR_OSS_DEVICE(minor)) { in snd_unregister_oss_device()
181 snd_oss_minors[minor] = NULL; in snd_unregister_oss_device()
215 int minor; in snd_minor_info_oss_read() local
219 for (minor = 0; minor < SNDRV_OSS_MINORS; ++minor) { in snd_minor_info_oss_read()
220 if (!(mptr = snd_oss_minors[minor])) in snd_minor_info_oss_read()
223 snd_iprintf(buffer, "%3i: [%i-%2i]: %s\n", minor, in snd_minor_info_oss_read()
227 snd_iprintf(buffer, "%3i: : %s\n", minor, in snd_minor_info_oss_read()