Lines Matching refs:ofs
810 int i, ofs, voices; in wm_vol_get() local
813 ofs = kcontrol->private_value & 0xff; in wm_vol_get()
816 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
824 int i, idx, ofs, voices; in wm_vol_put() local
828 ofs = kcontrol->private_value & 0xff; in wm_vol_put()
834 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
835 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
836 spec->vol[ofs+i] = vol; in wm_vol_put()
837 idx = WM_DAC_ATTEN + ofs + i; in wm_vol_put()
838 wm_set_vol(ice, idx, spec->vol[ofs + i], in wm_vol_put()
863 int voices, ofs, i; in wm_mute_get() local
866 ofs = kcontrol->private_value & 0xFF; in wm_mute_get()
870 (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_get()
878 int change = 0, voices, ofs, i; in wm_mute_put() local
881 ofs = kcontrol->private_value & 0xFF; in wm_mute_put()
885 int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_put()
887 spec->vol[ofs + i] &= ~WM_VOL_MUTE; in wm_mute_put()
888 spec->vol[ofs + i] |= in wm_mute_put()
890 wm_set_vol(ice, ofs + i, spec->vol[ofs + i], in wm_mute_put()