mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Enable mixer interrupts after the mixer is initialized,
otherwise we might get interrupts and are unable to handle them properly, which results in a page fault. PR: kern/39549 Submitted by: Gil Kloepfer <gil@arlut.utexas.edu>
This commit is contained in:
parent
b8391d6a1a
commit
9ce4f54341
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98764
@ -1172,6 +1172,8 @@ m3_pci_attach(device_t dev)
|
||||
goto bad;
|
||||
}
|
||||
|
||||
m3_enable_ints(sc);
|
||||
|
||||
if (pcm_register(dev, sc, M3_PCHANS, M3_RCHANS)) {
|
||||
device_printf(dev, "pcm_register error\n");
|
||||
goto bad;
|
||||
@ -1321,8 +1323,6 @@ m3_pci_resume(device_t dev)
|
||||
/* [m3_assp_continue] */
|
||||
m3_wr_1(sc, DSP_PORT_CONTROL_REG_B, reset_state | REGB_ENABLE_RESET);
|
||||
|
||||
m3_enable_ints(sc);
|
||||
|
||||
m3_amp_enable(sc);
|
||||
|
||||
if (mixer_reinit(dev) == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user