Lines Matching refs:spec
346 struct phase28_spec *spec = ice->spec; in wm_master_vol_get() local
349 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
358 struct phase28_spec *spec = ice->spec; in wm_master_vol_put() local
366 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
367 if (vol != spec->master[ch]) { in wm_master_vol_put()
369 spec->master[ch] = vol; in wm_master_vol_put()
372 spec->vol[dac + ch], in wm_master_vol_put()
373 spec->master[ch]); in wm_master_vol_put()
422 struct phase28_spec *spec; in phase28_init() local
429 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in phase28_init()
430 if (!spec) in phase28_init()
432 ice->spec = spec; in phase28_init()
465 spec->master[0] = WM_VOL_MUTE; in phase28_init()
466 spec->master[1] = WM_VOL_MUTE; in phase28_init()
468 spec->vol[i] = WM_VOL_MUTE; in phase28_init()
469 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in phase28_init()
493 struct phase28_spec *spec = ice->spec; in wm_vol_get() local
500 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
508 struct phase28_spec *spec = ice->spec; in wm_vol_put() local
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()
524 wm_set_vol(ice, idx, spec->vol[ofs+i], in wm_vol_put()
525 spec->master[i]); in wm_vol_put()
549 struct phase28_spec *spec = ice->spec; in wm_mute_get() local
557 (spec->vol[ofs+i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_get()
565 struct phase28_spec *spec = ice->spec; in wm_mute_put() local
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()
580 spec->master[i]); in wm_mute_put()
598 struct phase28_spec *spec = ice->spec; in wm_master_mute_get() local
601 (spec->master[0] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_get()
603 (spec->master[1] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_get()
611 struct phase28_spec *spec = ice->spec; in wm_master_mute_put() local
616 int val = (spec->master[i] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_put()
619 spec->master[i] &= ~WM_VOL_MUTE; in wm_master_mute_put()
620 spec->master[i] |= in wm_master_mute_put()
625 spec->vol[dac + i], in wm_master_mute_put()
626 spec->master[i]); in wm_master_mute_put()