Lines Matching refs:ofs
494 int i, ofs, voices; in wm_vol_get() local
497 ofs = kcontrol->private_value & 0xff; in wm_vol_get()
500 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
509 int i, idx, ofs, voices; in wm_vol_put() local
513 ofs = kcontrol->private_value & 0xff; in wm_vol_put()
520 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
521 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
522 spec->vol[ofs+i] = vol; in wm_vol_put()
523 idx = WM_DAC_ATTEN + ofs + i; in wm_vol_put()
524 wm_set_vol(ice, idx, spec->vol[ofs+i], in wm_vol_put()
550 int voices, ofs, i; in wm_mute_get() local
553 ofs = kcontrol->private_value & 0xFF; in wm_mute_get()
557 (spec->vol[ofs+i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_get()
566 int change = 0, voices, ofs, i; in wm_mute_put() local
569 ofs = kcontrol->private_value & 0xFF; in wm_mute_put()
573 int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_put()
575 spec->vol[ofs + i] &= ~WM_VOL_MUTE; in wm_mute_put()
576 spec->vol[ofs + i] |= in wm_mute_put()
579 wm_set_vol(ice, ofs + i, spec->vol[ofs + i], in wm_mute_put()