View | Details | Raw Unified | Return to bug 248941
Collapse All | Expand All

(-)b/sys/dev/sound/pci/ich.c (-3 / +4 lines)
Lines 1191-1205 ich_pci_resume(device_t dev) Link Here
1191
{
1191
{
1192
	struct sc_info *sc;
1192
	struct sc_info *sc;
1193
	int i;
1193
	int i;
1194
	int err;
1194
1195
1195
	sc = pcm_getdevinfo(dev);
1196
	sc = pcm_getdevinfo(dev);
1196
1197
1197
	ICH_LOCK(sc);
1198
	ICH_LOCK(sc);
1198
	/* Reinit audio device */
1199
	/* Reinit audio device */
1199
    	if (ich_init(sc) == -1) {
1200
	err = ich_init(sc);
1201
	if (err != 0) {
1200
		device_printf(dev, "unable to reinitialize the card\n");
1202
		device_printf(dev, "unable to reinitialize the card\n");
1201
		ICH_UNLOCK(sc);
1203
		ICH_UNLOCK(sc);
1202
		return (ENXIO);
1204
		return err;
1203
	}
1205
	}
1204
	/* Reinit mixer */
1206
	/* Reinit mixer */
1205
	ich_pci_codec_reset(sc);
1207
	ich_pci_codec_reset(sc);
1206
- 

Return to bug 248941