Lines Matching refs:spec

221 	struct aureon_spec *spec = ice->spec;  in aureon_universe_inmux_get()  local
222 ucontrol->value.enumerated.item[0] = spec->pca9554_out; in aureon_universe_inmux_get()
230 struct aureon_spec *spec = ice->spec; in aureon_universe_inmux_put() local
238 oval = spec->pca9554_out; in aureon_universe_inmux_put()
242 spec->pca9554_out = nval; in aureon_universe_inmux_put()
252 struct aureon_spec *spec = ice->spec; in aureon_ac97_write() local
300 spec->stac9744[(reg & 0x7F) >> 1] = val; in aureon_ac97_write()
305 struct aureon_spec *spec = ice->spec; in aureon_ac97_read() local
306 return spec->stac9744[(reg & 0x7F) >> 1]; in aureon_ac97_read()
314 struct aureon_spec *spec = ice->spec; in aureon_ac97_init() local
352 memset(&spec->stac9744, 0, sizeof(spec->stac9744)); in aureon_ac97_init()
354 spec->stac9744[(ac97_defaults[i]) >> 1] = ac97_defaults[i+1]; in aureon_ac97_init()
765 struct aureon_spec *spec = ice->spec; in wm_master_vol_get() local
769 spec->master[i] & ~WM_VOL_MUTE; in wm_master_vol_get()
776 struct aureon_spec *spec = ice->spec; in wm_master_vol_put() local
784 vol |= spec->master[ch] & WM_VOL_MUTE; in wm_master_vol_put()
785 if (vol != spec->master[ch]) { in wm_master_vol_put()
787 spec->master[ch] = vol; in wm_master_vol_put()
790 spec->vol[dac + ch], in wm_master_vol_put()
791 spec->master[ch]); in wm_master_vol_put()
815 struct aureon_spec *spec = ice->spec; in wm_vol_get() local
822 spec->vol[ofs+i] & ~WM_VOL_MUTE; in wm_vol_get()
829 struct aureon_spec *spec = ice->spec; in wm_vol_put() local
840 vol |= spec->vol[ofs+i] & WM_VOL_MUTE; in wm_vol_put()
841 if (vol != spec->vol[ofs+i]) { in wm_vol_put()
842 spec->vol[ofs+i] = vol; in wm_vol_put()
844 wm_set_vol(ice, idx, spec->vol[ofs + i], in wm_vol_put()
845 spec->master[i]); in wm_vol_put()
868 struct aureon_spec *spec = ice->spec; in wm_mute_get() local
876 (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_get()
883 struct aureon_spec *spec = ice->spec; in wm_mute_put() local
891 int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; in wm_mute_put()
893 spec->vol[ofs + i] &= ~WM_VOL_MUTE; in wm_mute_put()
894 spec->vol[ofs + i] |= in wm_mute_put()
896 wm_set_vol(ice, ofs + i, spec->vol[ofs + i], in wm_mute_put()
897 spec->master[i]); in wm_mute_put()
914 struct aureon_spec *spec = ice->spec; in wm_master_mute_get() local
917 (spec->master[0] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_get()
919 (spec->master[1] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_get()
926 struct aureon_spec *spec = ice->spec; in wm_master_mute_put() local
931 int val = (spec->master[i] & WM_VOL_MUTE) ? 0 : 1; in wm_master_mute_put()
934 spec->master[i] &= ~WM_VOL_MUTE; in wm_master_mute_put()
935 spec->master[i] |= in wm_master_mute_put()
939 spec->vol[dac + i], in wm_master_mute_put()
940 spec->master[i]); in wm_master_mute_put()
1185 struct aureon_spec *spec = ice->spec; in aureon_cs8415_mux_get() local
1189 ucontrol->value.enumerated.item[0] = spec->cs8415_mux; in aureon_cs8415_mux_get()
1197 struct aureon_spec *spec = ice->spec; in aureon_cs8415_mux_put() local
1209 spec->cs8415_mux = ucontrol->value.enumerated.item[0]; in aureon_cs8415_mux_put()
2052 struct aureon_spec *spec = ice->spec; in aureon_reset() local
2090 spec->cs8415_mux = 1; in aureon_reset()
2109 struct aureon_spec *spec = ice->spec; in aureon_resume() local
2119 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in aureon_resume()
2129 struct aureon_spec *spec; in aureon_init() local
2132 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in aureon_init()
2133 if (!spec) in aureon_init()
2135 ice->spec = spec; in aureon_init()
2156 spec->master[0] = WM_VOL_MUTE; in aureon_init()
2157 spec->master[1] = WM_VOL_MUTE; in aureon_init()
2159 spec->vol[i] = WM_VOL_MUTE; in aureon_init()
2160 wm_set_vol(ice, i, spec->vol[i], spec->master[i % 2]); in aureon_init()