Lines Matching refs:mgr
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()
89 val = mgr->gpr[addr].min; in emu10k1_set_control_gpr()
109 emu10k1_set_volume_gpr(card, card->mgr.ctrl_gpr[oss_mixer][0], left, in emu10k1_set_oss_vol()
112 emu10k1_set_volume_gpr(card, card->mgr.ctrl_gpr[oss_mixer][1], right, in emu10k1_set_oss_vol()
172 struct patch_manager *mgr = &card->mgr; in emu10k1_set_volume_gpr() local
190 spin_lock_irqsave(&mgr->lock, flags); in emu10k1_set_volume_gpr()
192 spin_unlock_irqrestore(&mgr->lock, flags); in emu10k1_set_volume_gpr()