Lines Matching refs:gus
27 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_get_single() local
31 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; in snd_gf1_get_single()
39 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_put_single() local
50 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gf1_put_single()
51 oval = gus->mix_cntrl_reg; in snd_gf1_put_single()
54 outb(gus->mix_cntrl_reg = nval, GUSP(gus, MIXCNTRLREG)); in snd_gf1_put_single()
55 outb(gus->gf1.active_voice = 0, GUSP(gus, GF1PAGE)); in snd_gf1_put_single()
56 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_gf1_put_single()
77 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_ics_get_double() local
82 spin_lock_irqsave(&gus->reg_lock, flags); in snd_ics_get_double()
83 left = gus->gf1.ics_regs[addr][0]; in snd_ics_get_double()
84 right = gus->gf1.ics_regs[addr][1]; in snd_ics_get_double()
85 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_ics_get_double()
93 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_ics_put_double() local
101 spin_lock_irqsave(&gus->reg_lock, flags); in snd_ics_put_double()
102 oval1 = gus->gf1.ics_regs[addr][0]; in snd_ics_put_double()
103 oval2 = gus->gf1.ics_regs[addr][1]; in snd_ics_put_double()
105 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double()
106 gus->gf1.ics_regs[addr][1] = val2; in snd_ics_put_double()
107 if (gus->ics_flag && gus->ics_flipped && in snd_ics_put_double()
111 outb(addr | 0, GUSP(gus, MIXCNTRLPORT)); in snd_ics_put_double()
112 outb(1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
113 outb(addr | 2, GUSP(gus, MIXCNTRLPORT)); in snd_ics_put_double()
114 outb((unsigned char) val1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
115 outb(addr | 1, GUSP(gus, MIXCNTRLPORT)); in snd_ics_put_double()
116 outb(2, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
117 outb(addr | 3, GUSP(gus, MIXCNTRLPORT)); in snd_ics_put_double()
118 outb((unsigned char) val2, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
119 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_ics_put_double()
140 int snd_gf1_new_mixer(struct snd_gus_card * gus) in snd_gf1_new_mixer() argument
146 if (snd_BUG_ON(!gus)) in snd_gf1_new_mixer()
148 card = gus->card; in snd_gf1_new_mixer()
152 if (gus->ics_flag) in snd_gf1_new_mixer()
155 strcpy(card->mixername, gus->ics_flag ? "GF1,ICS2101" : "GF1"); in snd_gf1_new_mixer()
157 if (gus->ics_flag) in snd_gf1_new_mixer()
162 if (!gus->ics_flag) { in snd_gf1_new_mixer()
163 max = gus->ess_flag ? 1 : ARRAY_SIZE(snd_gf1_controls); in snd_gf1_new_mixer()
165 err = snd_ctl_add(card, snd_ctl_new1(&snd_gf1_controls[idx], gus)); in snd_gf1_new_mixer()
171 err = snd_ctl_add(card, snd_ctl_new1(&snd_ics_controls[idx], gus)); in snd_gf1_new_mixer()