Lines Matching refs:spec

332 	struct phase28_spec *spec = ice->spec;  in wm_master_vol_get()  local
335 ucontrol->value.integer.value[i] = spec->master[i] & in wm_master_vol_get()
344 struct phase28_spec *spec = ice->spec; in wm_master_vol_put() local
352 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
353 if (vol != spec->master[ch]) { in wm_master_vol_put()
355 spec->master[ch] = vol; in wm_master_vol_put()
358 spec->vol[dac + ch], in wm_master_vol_put()
359 spec->master[ch]); in wm_master_vol_put()
408 struct phase28_spec *spec; in phase28_init() local
415 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in phase28_init()
416 if (!spec) in phase28_init()
418 ice->spec = spec; in phase28_init()
451 spec->master[0] = WM_VOL_MUTE; in phase28_init()
452 spec->master[1] = WM_VOL_MUTE; in phase28_init()
454 spec->vol[i] = WM_VOL_MUTE; in phase28_init()
455 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in phase28_init()
479 struct phase28_spec *spec = ice->spec; in wm_vol_get() local
486 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
494 struct phase28_spec *spec = ice->spec; in wm_vol_put() local
506 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
507 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
508 spec->vol[ofs+i] = vol; in wm_vol_put()
510 wm_set_vol(ice, idx, spec->vol[ofs+i], in wm_vol_put()
511 spec->master[i]); in wm_vol_put()
535 struct phase28_spec *spec = ice->spec; in wm_mute_get() local
543 (spec->vol[ofs+i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_get()
551 struct phase28_spec *spec = ice->spec; in wm_mute_put() local
559 int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_put()
561 spec->vol[ofs + i] &= ~WM_VOL_MUTE; in wm_mute_put()
562 spec->vol[ofs + i] |= in wm_mute_put()
565 wm_set_vol(ice, ofs + i, spec->vol[ofs + i], in wm_mute_put()
566 spec->master[i]); in wm_mute_put()
584 struct phase28_spec *spec = ice->spec; in wm_master_mute_get() local
587 (spec->master[0] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_get()
589 (spec->master[1] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_get()
597 struct phase28_spec *spec = ice->spec; in wm_master_mute_put() local
602 int val = (spec->master[i] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_put()
605 spec->master[i] &= ~WM_VOL_MUTE; in wm_master_mute_put()
606 spec->master[i] |= in wm_master_mute_put()
611 spec->vol[dac + i], in wm_master_mute_put()
612 spec->master[i]); in wm_master_mute_put()