Lines Matching refs:spec
270 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_get() local
274 ucontrol->value.integer.value[i] = spec->vol[i]; in ak4396_dac_vol_get()
282 struct prodigy_hifi_spec *spec = ice->spec; in ak4396_dac_vol_put() local
288 if (ucontrol->value.integer.value[i] != spec->vol[i]) { in ak4396_dac_vol_put()
289 spec->vol[i] = ucontrol->value.integer.value[i]; in ak4396_dac_vol_put()
291 spec->vol[i] & 0xff); in ak4396_dac_vol_put()
398 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_get() local
403 spec->vol[2 + i] & ~WM_VOL_MUTE; in wm_dac_vol_get()
410 struct prodigy_hifi_spec *spec = ice->spec; in wm_dac_vol_put() local
415 if (ucontrol->value.integer.value[i] != spec->vol[2 + i]) { in wm_dac_vol_put()
417 spec->vol[2 + i] &= WM_VOL_MUTE; in wm_dac_vol_put()
418 spec->vol[2 + i] |= ucontrol->value.integer.value[i]; in wm_dac_vol_put()
419 wm_set_vol(ice, idx, spec->vol[2 + i], spec->master[i]); in wm_dac_vol_put()
446 struct prodigy_hifi_spec *spec = ice->spec; in wm8766_vol_get() local
452 ucontrol->value.integer.value[i] = spec->vol[ofs + i]; in wm8766_vol_get()
459 struct prodigy_hifi_spec *spec = ice->spec; in wm8766_vol_put() local
467 if (ucontrol->value.integer.value[i] != spec->vol[ofs + i]) { in wm8766_vol_put()
469 spec->vol[ofs + i] &= WM_VOL_MUTE; in wm8766_vol_put()
470 spec->vol[ofs + i] |= ucontrol->value.integer.value[i]; in wm8766_vol_put()
472 spec->vol[ofs + i], spec->master[i]); in wm8766_vol_put()
497 struct prodigy_hifi_spec *spec = ice->spec; in wm_master_vol_get() local
500 ucontrol->value.integer.value[i] = spec->master[i]; in wm_master_vol_get()
508 struct prodigy_hifi_spec *spec = ice->spec; in wm_master_vol_put() local
513 if (ucontrol->value.integer.value[ch] != spec->master[ch]) { in wm_master_vol_put()
514 spec->master[ch] = ucontrol->value.integer.value[ch]; in wm_master_vol_put()
518 spec->vol[2 + ch], spec->master[ch]); in wm_master_vol_put()
521 spec->vol[0 + ch], spec->master[ch]); in wm_master_vol_put()
524 spec->vol[4 + ch], spec->master[ch]); in wm_master_vol_put()
527 spec->vol[6 + ch], spec->master[ch]); in wm_master_vol_put()
1037 struct prodigy_hifi_spec *spec; in prodigy_hifi_init() local
1057 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in prodigy_hifi_init()
1058 if (!spec) in prodigy_hifi_init()
1060 ice->spec = spec; in prodigy_hifi_init()
1107 struct prodigy_hifi_spec *spec = ice->spec; in prodigy_hd2_resume() local
1112 ak4396_write(ice, AK4396_LCH_ATT + i, spec->vol[i] & 0xff); in prodigy_hd2_resume()
1120 struct prodigy_hifi_spec *spec; in prodigy_hd2_init() local
1139 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in prodigy_hd2_init()
1140 if (!spec) in prodigy_hd2_init()
1142 ice->spec = spec; in prodigy_hd2_init()