Lines Matching refs:spec

215 	struct aureon_spec *spec = ice->spec;  in aureon_universe_inmux_get()  local
216 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get()
224 struct aureon_spec *spec = ice->spec; in aureon_universe_inmux_put() local
232 oval = spec->pca9554_out; in aureon_universe_inmux_put()
236 spec->pca9554_out = nval; in aureon_universe_inmux_put()
246 struct aureon_spec *spec = ice->spec; in aureon_ac97_write() local
294 spec->stac9744[(reg & 0x7F) >> 1] = val; in aureon_ac97_write()
299 struct aureon_spec *spec = ice->spec; in aureon_ac97_read() local
300 return spec->stac9744[(reg & 0x7F) >> 1]; in aureon_ac97_read()
308 struct aureon_spec *spec = ice->spec; in aureon_ac97_init() local
346 memset(&spec->stac9744, 0, sizeof(spec->stac9744)); in aureon_ac97_init()
348 spec->stac9744[(ac97_defaults[i]) >> 1] = ac97_defaults[i+1]; in aureon_ac97_init()
759 struct aureon_spec *spec = ice->spec; in wm_master_vol_get() local
763 spec->master[i] & ~WM_VOL_MUTE; in wm_master_vol_get()
770 struct aureon_spec *spec = ice->spec; in wm_master_vol_put() local
778 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
779 if (vol != spec->master[ch]) { in wm_master_vol_put()
781 spec->master[ch] = vol; in wm_master_vol_put()
784 spec->vol[dac + ch], in wm_master_vol_put()
785 spec->master[ch]); in wm_master_vol_put()
809 struct aureon_spec *spec = ice->spec; in wm_vol_get() local
816 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
823 struct aureon_spec *spec = ice->spec; in wm_vol_put() local
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()
838 wm_set_vol(ice, idx, spec->vol[ofs + i], in wm_vol_put()
839 spec->master[i]); in wm_vol_put()
862 struct aureon_spec *spec = ice->spec; in wm_mute_get() local
870 (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_get()
877 struct aureon_spec *spec = ice->spec; in wm_mute_put() local
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()
891 spec->master[i]); in wm_mute_put()
908 struct aureon_spec *spec = ice->spec; in wm_master_mute_get() local
911 (spec->master[0] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_get()
913 (spec->master[1] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_get()
920 struct aureon_spec *spec = ice->spec; in wm_master_mute_put() local
925 int val = (spec->master[i] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_put()
928 spec->master[i] &= ~WM_VOL_MUTE; in wm_master_mute_put()
929 spec->master[i] |= in wm_master_mute_put()
933 spec->vol[dac + i], in wm_master_mute_put()
934 spec->master[i]); in wm_master_mute_put()
1163 struct aureon_spec *spec = ice->spec; in aureon_cs8415_mux_get() local
1167 ucontrol->value.enumerated.item[0] = spec->cs8415_mux; in aureon_cs8415_mux_get()
1175 struct aureon_spec *spec = ice->spec; in aureon_cs8415_mux_put() local
1187 spec->cs8415_mux = ucontrol->value.enumerated.item[0]; in aureon_cs8415_mux_put()
2025 struct aureon_spec *spec = ice->spec; in aureon_reset() local
2063 spec->cs8415_mux = 1; in aureon_reset()
2082 struct aureon_spec *spec = ice->spec; in aureon_resume() local
2092 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in aureon_resume()
2102 struct aureon_spec *spec; in aureon_init() local
2105 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in aureon_init()
2106 if (!spec) in aureon_init()
2108 ice->spec = spec; in aureon_init()
2129 spec->master[0] = WM_VOL_MUTE; in aureon_init()
2130 spec->master[1] = WM_VOL_MUTE; in aureon_init()
2132 spec->vol[i] = WM_VOL_MUTE; in aureon_init()
2133 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in aureon_init()