[Bug 220909] device_probe() isn't called for the midi device emu10kx

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 21 17:50:15 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220909

            Bug ID: 220909
           Summary: device_probe() isn't called for the midi device
                    emu10kx
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: yuri at rawbw.com

Driver declaration section in sys/dev/sound/pci/emu10kx-midi.c
> DRIVER_MODULE(snd_emu10kx_midi, emu10kx, emu_midi_driver, emu_midi_devclass, 0, 0);
> MODULE_DEPEND(snd_emu10kx_midi, snd_emu10kx, SND_EMU10KX_MINVER, SND_EMU10KX_PREFVER, SND_EMU10KX_MAXVER);
> MODULE_DEPEND(snd_emu10kx_midi, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER);
is very similar to the section in sys/dev/sound/pci/emu10kx-pcm.c
> DRIVER_MODULE(snd_emu10kx_pcm, emu10kx, emu_pcm_driver, pcm_devclass, 0, 0);
> MODULE_DEPEND(snd_emu10kx_pcm, snd_emu10kx, SND_EMU10KX_MINVER, SND_EMU10KX_PREFVER, SND_EMU10KX_MAXVER);
> MODULE_DEPEND(snd_emu10kx_pcm, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER);
> MODULE_VERSION(snd_emu10kx_pcm, SND_EMU10KX_PREFVER);
yet the first probe function, emu_midi_probe(), is never called, and the second
one, emu_pcm_probe(), is called.

(I added print statements to both to determine this.)

Code from both C files is present in the kernel module.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list