Searched refs:mgr (Results 1 – 7 of 7) sorted by relevance
/linux-2.4.37.9/drivers/sound/emu10k1/ |
D | efxmgr.c | 36 int emu10k1_find_control_gpr(struct patch_manager *mgr, const char *patch_name, const char *gpr_nam… in emu10k1_find_control_gpr() argument 46 rpatch = &mgr->rpatch; in emu10k1_find_control_gpr() 52 for (i = 0; i < mgr->current_pages * PATCHES_PER_PAGE; i++) { in emu10k1_find_control_gpr() 53 patch = PATCH(mgr, i); in emu10k1_find_control_gpr() 66 if (mgr->gpr[i].type == GPR_TYPE_CONTROL && in emu10k1_find_control_gpr() 68 !strcmp(mgr->gpr[i].name, gpr_name)) in emu10k1_find_control_gpr() 76 struct patch_manager *mgr = &card->mgr; in emu10k1_set_control_gpr() local 86 if (val > mgr->gpr[addr].max) in emu10k1_set_control_gpr() 87 val = mgr->gpr[addr].max; in emu10k1_set_control_gpr() 88 else if (val < mgr->gpr[addr].min) in emu10k1_set_control_gpr() [all …]
|
D | efxmgr.h | 114 #define PATCH(mgr, i) ((struct dsp_patch *) (mgr)->patch[(i) / PATCHES_PER_PAGE] + (i) % PATCHES_PE… argument 171 patch = PATCH(mgr, patch_n); \ 188 patch = &mgr->rpatch; \ 204 patch = PATCH(mgr, patch_n); \ 220 mgr->gpr[(g) - GPR_BASE].type = GPR_TYPE_IO; \ 221 mgr->gpr[(g) - GPR_BASE].usage++; \ 222 mgr->gpr[(g) - GPR_BASE].line = ln; \ 228 mgr->gpr[(g) - GPR_BASE].type = GPR_TYPE_IO; \ 229 mgr->gpr[(g) - GPR_BASE].usage++; \ 230 mgr->gpr[(g) - GPR_BASE].line = ln; \ [all …]
|
D | mixer.c | 141 …sblive_writeptr(card, GPR_BASE + card->mgr.ctrl_gpr[SOUND_MIXER_BASS][0] + i, 0, bass_table[l][i]); in set_bass() 152 …sblive_writeptr(card, GPR_BASE + card->mgr.ctrl_gpr[SOUND_MIXER_TREBLE][0] + i , 0, treble_table[l… in set_treble() 334 if (copy_to_user((void *) arg, &card->mgr.rpatch, sizeof(struct dsp_rpatch))) in emu10k1_private_mixer() 337 if ((ctl->val[0] - 1) / PATCHES_PER_PAGE >= card->mgr.current_pages) { in emu10k1_private_mixer() 342 if (copy_to_user((void *) arg, PATCH(&card->mgr, ctl->val[0] - 1), sizeof(struct dsp_patch))) in emu10k1_private_mixer() 356 if (copy_to_user((void *) arg, &card->mgr.gpr[id], sizeof(struct dsp_gpr))) in emu10k1_private_mixer() 362 …addr = emu10k1_find_control_gpr(&card->mgr, (char *) ctl->val, &((char *) ctl->val)[PATCH_NAME_SIZ… in emu10k1_private_mixer() 372 memcpy(&card->mgr.rpatch, &ctl->val[1], sizeof(struct dsp_rpatch)); in emu10k1_private_mixer() 380 if (page >= card->mgr.current_pages) { in emu10k1_private_mixer() 381 for (i = card->mgr.current_pages; i < page + 1; i++) { in emu10k1_private_mixer() [all …]
|
D | main.c | 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() [all …]
|
D | cardwo.c | 88 i = emu10k1_find_control_gpr(&card->mgr, card->pt.patch_name, card->pt.intr_gpr_name); in query_format() 89 j = emu10k1_find_control_gpr(&card->mgr, card->pt.patch_name, card->pt.enable_gpr_name); in query_format() 103 …card->pt.pos_gpr = emu10k1_find_control_gpr(&card->mgr, card->pt.patch_name, card->pt.pos_gpr_name… in query_format()
|
D | hwaccess.h | 187 struct patch_manager mgr; member
|
D | audio.c | 534 if (emu10k1_find_control_gpr(&wave_dev->card->mgr,
|