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()
46 int minor; in snd_oss_kernel_minor() local
52 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIXER1 : SNDRV_MINOR_OSS_MIXER)); in snd_oss_kernel_minor()
55 minor = SNDRV_MINOR_OSS_SEQUENCER; in snd_oss_kernel_minor()
58 minor = SNDRV_MINOR_OSS_MUSIC; in snd_oss_kernel_minor()
63 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_PCM1 : SNDRV_MINOR_OSS_PCM)); in snd_oss_kernel_minor()
68 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIDI1 : SNDRV_MINOR_OSS_MIDI)); in snd_oss_kernel_minor()
71 minor = SNDRV_MINOR_OSS(card->number, SNDRV_MINOR_OSS_DMFM); in snd_oss_kernel_minor()
74 minor = SNDRV_MINOR_OSS_SNDSTAT; in snd_oss_kernel_minor()
79 if (minor < 0 || minor >= SNDRV_OSS_MINORS) in snd_oss_kernel_minor()
81 return minor; in snd_oss_kernel_minor()
87 int minor = snd_oss_kernel_minor(type, card, dev); in snd_register_oss_device() local
90 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device()
97 if (minor < 0) in snd_register_oss_device()
98 return minor; in snd_register_oss_device()
109 snd_oss_minors[minor] = preg; in snd_register_oss_device()
110 minor_unit = SNDRV_MINOR_OSS_DEVICE(minor); in snd_register_oss_device()
122 register1 = register_sound_special_device(f_ops, minor, carddev); in snd_register_oss_device()
123 if (register1 != minor) in snd_register_oss_device()
139 snd_oss_minors[minor] = NULL; in snd_register_oss_device()
147 int minor = snd_oss_kernel_minor(type, card, dev); in snd_unregister_oss_device() local
148 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device()
154 if (minor < 0) in snd_unregister_oss_device()
155 return minor; in snd_unregister_oss_device()
157 mptr = snd_oss_minors[minor]; in snd_unregister_oss_device()
160 switch (SNDRV_MINOR_OSS_DEVICE(minor)) { in snd_unregister_oss_device()
173 snd_oss_minors[minor] = NULL; in snd_unregister_oss_device()
178 unregister_sound_special(minor); in snd_unregister_oss_device()
214 int minor; in snd_minor_info_oss_read() local
218 for (minor = 0; minor < SNDRV_OSS_MINORS; ++minor) { in snd_minor_info_oss_read()
219 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()