Home
last modified time | relevance | path

Searched refs:minor (Results 1 – 17 of 17) sorted by relevance

/sound/core/
Dsound.c80 static void snd_request_other(int minor) in snd_request_other() argument
84 switch (minor) { in snd_request_other()
109 void *snd_lookup_minor_data(unsigned int minor, int type) in snd_lookup_minor_data() argument
114 if (minor >= ARRAY_SIZE(snd_minors)) in snd_lookup_minor_data()
117 mreg = snd_minors[minor]; in snd_lookup_minor_data()
131 static struct snd_minor *autoload_device(unsigned int minor) in autoload_device() argument
135 dev = SNDRV_MINOR_DEVICE(minor); in autoload_device()
138 int card = SNDRV_MINOR_CARD(minor); in autoload_device()
143 snd_request_other(minor); in autoload_device()
146 return snd_minors[minor]; in autoload_device()
[all …]
Dsound_oss.c46 void *snd_lookup_oss_minor_data(unsigned int minor, int type) in snd_lookup_oss_minor_data() argument
51 if (minor >= ARRAY_SIZE(snd_oss_minors)) in snd_lookup_oss_minor_data()
54 mreg = snd_oss_minors[minor]; in snd_lookup_oss_minor_data()
69 int minor; in snd_oss_kernel_minor() local
75 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIXER1 : SNDRV_MINOR_OSS_MIXER)); in snd_oss_kernel_minor()
78 minor = SNDRV_MINOR_OSS_SEQUENCER; in snd_oss_kernel_minor()
81 minor = SNDRV_MINOR_OSS_MUSIC; in snd_oss_kernel_minor()
86 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_PCM1 : SNDRV_MINOR_OSS_PCM)); in snd_oss_kernel_minor()
91 minor = SNDRV_MINOR_OSS(card->number, (dev ? SNDRV_MINOR_OSS_MIDI1 : SNDRV_MINOR_OSS_MIDI)); in snd_oss_kernel_minor()
94 minor = SNDRV_MINOR_OSS(card->number, SNDRV_MINOR_OSS_DMFM); in snd_oss_kernel_minor()
[all …]
DKconfig151 bool "Dynamic device file minor numbers"
153 If you say Y here, the minor numbers of ALSA device files in
Dpcm_native.c1597 unsigned int minor; in snd_pcm_file_fd() local
1608 minor = iminor(inode); in snd_pcm_file_fd()
1609 if (!snd_lookup_minor_data(minor, SNDRV_DEVICE_TYPE_PCM_PLAYBACK) && in snd_pcm_file_fd()
1610 !snd_lookup_minor_data(minor, SNDRV_DEVICE_TYPE_PCM_CAPTURE)) { in snd_pcm_file_fd()
/sound/isa/sb/
Dsb_common.c108 int major, minor; in snd_sbdsp_probe() local
128 minor = version & 0xff; in snd_sbdsp_probe()
130 chip->port, major, minor); in snd_sbdsp_probe()
140 if (minor) { in snd_sbdsp_probe()
158 chip->port, major, minor); in snd_sbdsp_probe()
181 chip->version = (major << 8) | minor; in snd_sbdsp_probe()
/sound/oss/
Dsb_common.c262 devc->major = devc->minor = 0; in dsp_get_vers()
273 devc->minor = inb(DSP_READ); in dsp_get_vers()
279 DDB(printk("DSP version %d.%02d\n", devc->major, devc->minor)); in dsp_get_vers()
580 if (devc->major == 0 || (devc->major == 3 && devc->minor == 1)) in sb_dsp_detect()
597 if (devc->major == 3 && devc->minor == 1) in sb_dsp_detect()
635 …MDB(printk(KERN_INFO "SB %d.%02d detected OK (%x)\n", devc->major, devc->minor, hw_config->io_base… in sb_dsp_detect()
698 devc->major == 3 && devc->minor == 1) in sb_dsp_init()
710 if (devc->major == 4 && devc->minor <= 11 ) /* Won't work */ in sb_dsp_init()
743 if (devc->minor == 0) in sb_dsp_init()
771 if ((devc->minor == 2) && sb_getmixer(devc,0x3c) && sb_getmixer(devc,0x4c)) in sb_dsp_init()
[all …]
Dsoundcard.c537 unsigned short minor; member
566 unsigned short minor = dev_list[i].minor + j * 0x10; in oss_init() local
567 if (!register_sound_special(&oss_sound_fops, minor)) in oss_init()
586 unregister_sound_special(dev_list[i].minor); in oss_cleanup()
Dmsnd_pinnacle.c645 int minor = iminor(file_inode(file)); in dev_ioctl() local
656 if (minor == dev.dsp_minor) in dev_ioctl()
658 else if (minor == dev.mixer_minor) in dev_ioctl()
762 int minor = iminor(inode); in dev_open() local
766 if (minor == dev.dsp_minor) { in dev_open()
790 else if (minor == dev.mixer_minor) { in dev_open()
801 int minor = iminor(inode); in dev_release() local
805 if (minor == dev.dsp_minor) in dev_release()
807 else if (minor == dev.mixer_minor) { in dev_release()
1015 int minor = iminor(file_inode(file)); in dev_read() local
[all …]
DCHANGELOG27 - Just minor changes.
119 - minor grammatical changes to prompts
205 - Some minor changes
284 - Some minor changes
326 - Fixed some minor bugs in the SB16 driver.
Dsb.h85 int minor, major; member
Dvwsnd.c2920 int minor = iminor(inode); in vwsnd_audio_open() local
2928 if ((devc->audio_minor & ~0x0F) == (minor & ~0x0F)) in vwsnd_audio_open()
2959 if ((minor & 0xF) == SND_DEV_DSP) in vwsnd_audio_open()
2961 else if ((minor & 0xF) == SND_DEV_AUDIO) in vwsnd_audio_open()
2963 else if ((minor & 0xF) == SND_DEV_DSP16) in vwsnd_audio_open()
Dswarm_cs4297a.c1546 int minor = iminor(inode); in cs4297a_open_mixdev() local
1557 if(s->dev_mixer == minor) in cs4297a_open_mixdev()
2408 int minor = iminor(inode); in cs4297a_locked_open() local
2422 if (!((s->dev_audio ^ minor) & ~0xf)) in cs4297a_locked_open()
Dsb_mixer.c556 if (devc->minor < 15) in sb_mixer_ioctl()
/sound/isa/galaxy/
Dgalaxy.c127 static int dsp_get_version(void __iomem *port, u8 *major, u8 *minor) in dsp_get_version() argument
139 err = dsp_get_byte(port, minor); in dsp_get_version()
385 u8 minor; in galaxy_init() local
392 err = dsp_get_version(galaxy->port, &major, &minor); in galaxy_init()
396 if (major != GALAXY_DSP_MAJOR || minor != GALAXY_DSP_MINOR) in galaxy_init()
/sound/isa/es1688/
Des1688_lib.c124 unsigned short major, minor, hw; in snd_es1688_probe() local
151 for (i = 1000, major = minor = 0; i; i--) { in snd_es1688_probe()
156 minor = inb(ES1688P(chip, READ)); in snd_es1688_probe()
163 snd_printdd("ESS: [0x%lx] found.. major = 0x%x, minor = 0x%x\n", chip->port, major, minor); in snd_es1688_probe()
165 chip->version = (major << 8) | minor; in snd_es1688_probe()
/sound/mips/
Dhal2.c783 unsigned short board, major, minor; in hal2_detect() local
801 minor = (rev & H2_REV_MINOR_CHIP_M); in hal2_detect()
804 board, major, minor); in hal2_detect()
/sound/core/oss/
Dpcm_oss.c2266 int minor) in snd_pcm_oss_init_substream() argument
2281 switch (SNDRV_MINOR_OSS_DEVICE(minor)) { in snd_pcm_oss_init_substream()
2315 int minor, in snd_pcm_oss_open_file() argument
2355 snd_pcm_oss_init_substream(substream, &setup[idx], minor); in snd_pcm_oss_open_file()