Lines Matching refs:mgr
454 static void __devinit fx_cleanup(struct patch_manager *mgr) in fx_cleanup() argument
457 for(i = 0; i < mgr->current_pages; i++) in fx_cleanup()
458 free_page((unsigned long) mgr->patch[i]); in fx_cleanup()
463 struct patch_manager *mgr = &card->mgr; in fx_init() local
472 mgr->ctrl_gpr[i][0] = -1; in fx_init()
473 mgr->ctrl_gpr[i][1] = -1; in fx_init()
486 mgr->current_pages = (11 + PATCHES_PER_PAGE - 1) / PATCHES_PER_PAGE; in fx_init()
487 for (i = 0; i < mgr->current_pages; i++) { in fx_init()
488 mgr->patch[i] = (void *)__get_free_page(GFP_KERNEL); in fx_init()
489 if (mgr->patch[i] == NULL) { in fx_init()
490 mgr->current_pages = i; in fx_init()
491 fx_cleanup(mgr); in fx_init()
494 memset(mgr->patch[i], 0, PAGE_SIZE); in fx_init()
699 patch = PATCH(mgr, patch_n); in fx_init()
704 mgr->lock = SPIN_LOCK_UNLOCKED; in fx_init()
708 mgr->ctrl_gpr[SOUND_MIXER_VOLUME][0] = 8; in fx_init()
709 mgr->ctrl_gpr[SOUND_MIXER_VOLUME][1] = 9; in fx_init()
718 mgr->ctrl_gpr[ SOUND_MIXER_OGAIN ][0] = 0x19; in fx_init()
719 mgr->ctrl_gpr[ SOUND_MIXER_OGAIN ][1] = 0x1a; in fx_init()
731 mgr->ctrl_gpr[SOUND_MIXER_PCM][0] = 6; in fx_init()
732 mgr->ctrl_gpr[SOUND_MIXER_PCM][1] = 7; in fx_init()
741 mgr->ctrl_gpr[SOUND_MIXER_DIGITAL1][0] = 0xd; in fx_init()
742 mgr->ctrl_gpr[SOUND_MIXER_DIGITAL1][1] = 0xf; in fx_init()
951 fx_cleanup(&card->mgr); in hw_init()
1024 fx_cleanup(&card->mgr); in emu10k1_cleanup()