Lines Matching refs:wm

84 	struct snd_wm8776 wm[2];  member
90 static void wm8776_write(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write() argument
97 snd_vt1724_write_i2c(ice, wm->addr, in wm8776_write()
100 wm->regs[reg] = val; in wm8776_write()
106 static int wm8776_write_bits(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write_bits() argument
110 val |= wm->regs[reg] & ~mask; in wm8776_write_bits()
111 if (val != wm->regs[reg]) { in wm8776_write_bits()
112 wm8776_write(ice, wm, reg, val); in wm8776_write_bits()
188 struct snd_wm8776 *wm = in maya_vol_get() local
189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get()
193 ucontrol->value.integer.value[0] = wm->volumes[idx][0]; in maya_vol_get()
194 ucontrol->value.integer.value[1] = wm->volumes[idx][1]; in maya_vol_get()
203 struct snd_wm8776 *wm = in maya_vol_put() local
204 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put()
215 if (val == wm->volumes[idx][ch]) in maya_vol_put()
222 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put()
225 wm8776_write_bits(chip->ice, wm, WM8776_REG_ADC_MUX, in maya_vol_put()
228 wm->volumes[idx][ch] = val; in maya_vol_put()
249 struct snd_wm8776 *wm = in maya_sw_get() local
250 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_get()
253 ucontrol->value.integer.value[0] = (wm->switch_bits >> idx) & 1; in maya_sw_get()
261 struct snd_wm8776 *wm = in maya_sw_put() local
262 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_put()
269 wm->switch_bits &= ~mask; in maya_sw_put()
272 wm->switch_bits |= mask; in maya_sw_put()
274 changed = wm8776_write_bits(chip->ice, wm, in maya_sw_put()
353 wm8776_write_bits(chip->ice, &chip->wm[idx], WM8776_REG_ADC_MUX, in wm8776_select_input()
549 struct snd_wm8776 *wm, unsigned int addr) in wm8776_init() argument
581 wm->addr = addr; in wm8776_init()
583 wm->switch_bits = (1 << WM_SW_DAC); in wm8776_init()
589 wm8776_write(ice, wm, reg, data); in wm8776_init()
654 wm8776_write_bits(ice, &chip->wm[i], in set_rate()
704 wm8776_init(ice, &chip->wm[i], wm8776_addr[i]); in maya44_init()