opnsense-src/sys/dev/sound/pcm
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
..
ac97.c sound(4): fixing panic for INVARIANTS kernel 2021-04-24 03:27:43 +00:00
ac97.h
ac97_if.m
ac97_patch.c
ac97_patch.h
buffer.c
buffer.h
channel.c
channel.h
channel_if.m
dsp.c
dsp.h
feeder.c
feeder.h
feeder_chain.c
feeder_eq.c
feeder_format.c
feeder_if.m
feeder_matrix.c
feeder_mixer.c
feeder_rate.c
feeder_volume.c
g711.h
intpcm.h
matrix.h
matrix_map.h
mixer.c
mixer.h
mixer_if.m
pcm.h
sndstat.c
sndstat.h
sound.c
sound.h
vchan.c
vchan.h