Lines Matching refs:wm
70 struct snd_wm8776 wm[2]; member
76 static void wm8776_write(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write() argument
83 snd_vt1724_write_i2c(ice, wm->addr, in wm8776_write()
86 wm->regs[reg] = val; in wm8776_write()
92 static int wm8776_write_bits(struct snd_ice1712 *ice, struct snd_wm8776 *wm, in wm8776_write_bits() argument
96 val |= wm->regs[reg] & ~mask; in wm8776_write_bits()
97 if (val != wm->regs[reg]) { in wm8776_write_bits()
98 wm8776_write(ice, wm, reg, val); in wm8776_write_bits()
174 struct snd_wm8776 *wm = in maya_vol_get() local
175 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get()
179 ucontrol->value.integer.value[0] = wm->volumes[idx][0]; in maya_vol_get()
180 ucontrol->value.integer.value[1] = wm->volumes[idx][1]; in maya_vol_get()
189 struct snd_wm8776 *wm = in maya_vol_put() local
190 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put()
201 if (val == wm->volumes[idx][ch]) in maya_vol_put()
208 changed |= wm8776_write_bits(chip->ice, wm, vol->regs[ch], in maya_vol_put()
211 wm8776_write_bits(chip->ice, wm, WM8776_REG_ADC_MUX, in maya_vol_put()
214 wm->volumes[idx][ch] = val; in maya_vol_put()
235 struct snd_wm8776 *wm = in maya_sw_get() local
236 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_get()
239 ucontrol->value.integer.value[0] = (wm->switch_bits >> idx) & 1; in maya_sw_get()
247 struct snd_wm8776 *wm = in maya_sw_put() local
248 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_sw_put()
255 wm->switch_bits &= ~mask; in maya_sw_put()
258 wm->switch_bits |= mask; in maya_sw_put()
260 changed = wm8776_write_bits(chip->ice, wm, in maya_sw_put()
339 wm8776_write_bits(chip->ice, &chip->wm[idx], WM8776_REG_ADC_MUX, in wm8776_select_input()
535 struct snd_wm8776 *wm, unsigned int addr) in wm8776_init() argument
567 wm->addr = addr; in wm8776_init()
569 wm->switch_bits = (1 << WM_SW_DAC); in wm8776_init()
575 wm8776_write(ice, wm, reg, data); in wm8776_init()
640 wm8776_write_bits(ice, &chip->wm[i], in set_rate()
690 wm8776_init(ice, &chip->wm[i], wm8776_addr[i]); in maya44_init()