Lines Matching refs:gus
42 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_get_single() local
46 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; in snd_gf1_get_single()
54 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_put_single() local
65 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gf1_put_single()
66 oval = gus->mix_cntrl_reg; in snd_gf1_put_single()
69 outb(gus->mix_cntrl_reg = nval, GUSP(gus, MIXCNTRLREG)); in snd_gf1_put_single()
70 outb(gus->gf1.active_voice = 0, GUSP(gus, GF1PAGE)); in snd_gf1_put_single()
71 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_gf1_put_single()
92 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_ics_get_double() local
97 spin_lock_irqsave(&gus->reg_lock, flags); in snd_ics_get_double()
98 left = gus->gf1.ics_regs[addr][0]; in snd_ics_get_double()
99 right = gus->gf1.ics_regs[addr][1]; in snd_ics_get_double()
100 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_ics_get_double()
108 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_ics_put_double() local
116 spin_lock_irqsave(&gus->reg_lock, flags); in snd_ics_put_double()
117 oval1 = gus->gf1.ics_regs[addr][0]; in snd_ics_put_double()
118 oval2 = gus->gf1.ics_regs[addr][1]; in snd_ics_put_double()
120 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double()
121 gus->gf1.ics_regs[addr][1] = val2; in snd_ics_put_double()
122 if (gus->ics_flag && gus->ics_flipped && in snd_ics_put_double()
129 outb(addr | 0, GUSP(gus, MIXCNTRLPORT)); in snd_ics_put_double()
130 outb(1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
131 outb(addr | 2, GUSP(gus, MIXCNTRLPORT)); in snd_ics_put_double()
132 outb((unsigned char) val1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
133 outb(addr | 1, GUSP(gus, MIXCNTRLPORT)); in snd_ics_put_double()
134 outb(2, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
135 outb(addr | 3, GUSP(gus, MIXCNTRLPORT)); in snd_ics_put_double()
136 outb((unsigned char) val2, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
137 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_ics_put_double()
158 int snd_gf1_new_mixer(struct snd_gus_card * gus) in snd_gf1_new_mixer() argument
164 if (snd_BUG_ON(!gus)) in snd_gf1_new_mixer()
166 card = gus->card; in snd_gf1_new_mixer()
170 if (gus->ics_flag) in snd_gf1_new_mixer()
173 strcpy(card->mixername, gus->ics_flag ? "GF1,ICS2101" : "GF1"); in snd_gf1_new_mixer()
175 if (gus->ics_flag) in snd_gf1_new_mixer()
180 if (!gus->ics_flag) { in snd_gf1_new_mixer()
181 max = gus->ess_flag ? 1 : ARRAY_SIZE(snd_gf1_controls); in snd_gf1_new_mixer()
183 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_gf1_controls[idx], gus))) < 0) in snd_gf1_new_mixer()
188 if ((err = snd_ctl_add(card, snd_ctl_new1(&snd_ics_controls[idx], gus))) < 0) in snd_gf1_new_mixer()