freebsd-dev/sys/dev/sound
Tai-hwa Liang 2acbe67787 sound(4): fixing panic for INVARIANTS kernel
3e7bae0821 turns the BUS_READ_IVAR() failure from a warning into a
KASSERT.  For certain PCI audio devices such like snd_csa(4) and
snd_emu10kx(4), the ac97_create() keeps the device handler generated
by device_add_child(pci_dev, "pcm"), which is not really a PCI device
handler.  This in turn causes the subsequent pci_get_subdevice()
inside ac97_initmixer() triggering a panic.

This patch tries to put a bandaid for the aforementioned pcm device
children such that they can use the correct PCI handler(from parent)
to avoid a KASSERT panic in the INVARIANTS kernel.

Tested with:	snd_csa(4), snd_ich(4), snd_emu10kx(4)
Reviewed by:	imp
MFC after:	1 month
2021-04-24 03:27:43 +00:00
..
isa sound: clean up empty lines in .c and .h files 2020-09-01 21:27:34 +00:00
macio sound: clean up empty lines in .c and .h files 2020-09-01 21:27:34 +00:00
midi sound: clean up empty lines in .c and .h files 2020-09-01 21:27:34 +00:00
pci Unify Intel CODEC naming. 2021-01-15 09:56:15 -05:00
pcm sound(4): fixing panic for INVARIANTS kernel 2021-04-24 03:27:43 +00:00
usb Set default alternate setting when USB audio devices are not in use, 2021-03-25 16:49:52 +01:00
chip.h
clone.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
clone.h sound: clean up empty lines in .c and .h files 2020-09-01 21:27:34 +00:00
driver.c
unit.c
unit.h
version.h