mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix resume for HP Omnibook 500's.
MFC after: 1 week
This commit is contained in:
parent
7145906dd6
commit
3068bdba98
1 changed files with 7 additions and 0 deletions
|
|
@ -1307,6 +1307,8 @@ m3_pci_resume(device_t dev)
|
|||
|
||||
reset_state = m3_assp_halt(sc);
|
||||
|
||||
m3_codec_reset(sc);
|
||||
|
||||
/* Restore the ASSP state */
|
||||
for (i = REV_B_CODE_MEMORY_BEGIN; i <= REV_B_CODE_MEMORY_END; i++)
|
||||
m3_wr_assp_code(sc, i, sc->savemem[++index]);
|
||||
|
|
@ -1323,6 +1325,11 @@ m3_pci_resume(device_t dev)
|
|||
|
||||
m3_amp_enable(sc);
|
||||
|
||||
if (mixer_reinit(dev) == -1) {
|
||||
device_printf(dev, "unable to reinitialize the mixer\n");
|
||||
return ENXIO;
|
||||
}
|
||||
|
||||
/* Turn the channels back on */
|
||||
for (i=0 ; i<sc->pch_cnt ; i++) {
|
||||
if (sc->pch[i].active) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue