Lines Matching refs:spec

106 	struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8766);  in psc724_wm8766_write()  local
107 struct snd_ice1712 *ice = spec->ice; in psc724_wm8766_write()
148 struct psc724_spec *spec = container_of(wm, struct psc724_spec, wm8776); in psc724_wm8776_write() local
150 snd_vt1724_write_i2c(spec->ice, 0x34, addr, data); in psc724_wm8776_write()
158 struct psc724_spec *spec = ice->spec; in psc724_set_master_switch() local
160 spec->mute_all = !on; in psc724_set_master_switch()
170 struct psc724_spec *spec = ice->spec; in psc724_get_master_switch() local
172 return !spec->mute_all; in psc724_get_master_switch()
179 struct psc724_spec *spec = ice->spec; in psc724_set_jack_state() local
181 u16 power = spec->wm8776.regs[WM8776_REG_PWRDOWN] & ~WM8776_PWR_HPPD; in psc724_set_jack_state()
186 snd_wm8776_set_power(&spec->wm8776, power); in psc724_set_jack_state()
187 spec->hp_connected = hp_connected; in psc724_set_jack_state()
195 spec->wm8776.ctl[WM8776_CTL_HP_SW].name); in psc724_set_jack_state()
202 struct psc724_spec *spec = container_of(work, struct psc724_spec, in psc724_update_hp_jack_state() local
204 struct snd_ice1712 *ice = spec->ice; in psc724_update_hp_jack_state()
207 schedule_delayed_work(&spec->hp_work, msecs_to_jiffies(JACK_INTERVAL)); in psc724_update_hp_jack_state()
208 if (hp_connected == spec->hp_connected) in psc724_update_hp_jack_state()
215 struct psc724_spec *spec = ice->spec; in psc724_set_jack_detection() local
217 if (spec->jack_detect == on) in psc724_set_jack_detection()
220 spec->jack_detect = on; in psc724_set_jack_detection()
224 schedule_delayed_work(&spec->hp_work, in psc724_set_jack_detection()
227 cancel_delayed_work_sync(&spec->hp_work); in psc724_set_jack_detection()
232 struct psc724_spec *spec = ice->spec; in psc724_get_jack_detection() local
234 return spec->jack_detect; in psc724_get_jack_detection()
307 struct psc724_spec *spec = ice->spec; in psc724_add_controls() local
309 spec->wm8776.ctl[WM8776_CTL_DAC_VOL].name = front_volume; in psc724_add_controls()
310 spec->wm8776.ctl[WM8776_CTL_DAC_SW].name = front_switch; in psc724_add_controls()
311 spec->wm8776.ctl[WM8776_CTL_DAC_ZC_SW].name = front_zc; in psc724_add_controls()
312 spec->wm8776.ctl[WM8776_CTL_AUX_SW].name = NULL; in psc724_add_controls()
313 spec->wm8776.ctl[WM8776_CTL_DAC_IZD_SW].name = front_izd; in psc724_add_controls()
314 spec->wm8776.ctl[WM8776_CTL_PHASE_SW].name = front_phase; in psc724_add_controls()
315 spec->wm8776.ctl[WM8776_CTL_DEEMPH_SW].name = front_deemph; in psc724_add_controls()
316 spec->wm8776.ctl[WM8776_CTL_INPUT1_SW].name = ain1_switch; in psc724_add_controls()
317 spec->wm8776.ctl[WM8776_CTL_INPUT2_SW].name = ain2_switch; in psc724_add_controls()
318 spec->wm8776.ctl[WM8776_CTL_INPUT3_SW].name = ain3_switch; in psc724_add_controls()
319 spec->wm8776.ctl[WM8776_CTL_INPUT4_SW].name = ain4_switch; in psc724_add_controls()
320 spec->wm8776.ctl[WM8776_CTL_INPUT5_SW].name = ain5_switch; in psc724_add_controls()
321 snd_wm8776_build_controls(&spec->wm8776); in psc724_add_controls()
322 spec->wm8766.ctl[WM8766_CTL_CH1_VOL].name = rear_volume; in psc724_add_controls()
323 spec->wm8766.ctl[WM8766_CTL_CH2_VOL].name = clfe_volume; in psc724_add_controls()
324 spec->wm8766.ctl[WM8766_CTL_CH3_VOL].name = NULL; in psc724_add_controls()
325 spec->wm8766.ctl[WM8766_CTL_CH1_SW].name = rear_switch; in psc724_add_controls()
326 spec->wm8766.ctl[WM8766_CTL_CH2_SW].name = clfe_switch; in psc724_add_controls()
327 spec->wm8766.ctl[WM8766_CTL_CH3_SW].name = NULL; in psc724_add_controls()
328 spec->wm8766.ctl[WM8766_CTL_PHASE1_SW].name = rear_phase; in psc724_add_controls()
329 spec->wm8766.ctl[WM8766_CTL_PHASE2_SW].name = clfe_phase; in psc724_add_controls()
330 spec->wm8766.ctl[WM8766_CTL_PHASE3_SW].name = NULL; in psc724_add_controls()
331 spec->wm8766.ctl[WM8766_CTL_DEEMPH1_SW].name = rear_deemph; in psc724_add_controls()
332 spec->wm8766.ctl[WM8766_CTL_DEEMPH2_SW].name = clfe_deemph; in psc724_add_controls()
333 spec->wm8766.ctl[WM8766_CTL_DEEMPH3_SW].name = NULL; in psc724_add_controls()
334 spec->wm8766.ctl[WM8766_CTL_IZD_SW].name = rear_clfe_izd; in psc724_add_controls()
335 spec->wm8766.ctl[WM8766_CTL_ZC_SW].name = rear_clfe_zc; in psc724_add_controls()
336 snd_wm8766_build_controls(&spec->wm8766); in psc724_add_controls()
360 struct psc724_spec *spec = ice->spec; in psc724_set_pro_rate() local
362 snd_wm8776_volume_restore(&spec->wm8776); in psc724_set_pro_rate()
363 snd_wm8766_volume_restore(&spec->wm8766); in psc724_set_pro_rate()
371 struct psc724_spec *spec = ice->spec; in psc724_resume() local
373 snd_wm8776_resume(&spec->wm8776); in psc724_resume()
374 snd_wm8766_resume(&spec->wm8766); in psc724_resume()
384 struct psc724_spec *spec; in psc724_init() local
386 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in psc724_init()
387 if (!spec) in psc724_init()
389 ice->spec = spec; in psc724_init()
390 spec->ice = ice; in psc724_init()
394 spec->wm8776.ops.write = psc724_wm8776_write; in psc724_init()
395 spec->wm8776.card = ice->card; in psc724_init()
396 snd_wm8776_init(&spec->wm8776); in psc724_init()
397 spec->wm8766.ops.write = psc724_wm8766_write; in psc724_init()
398 spec->wm8766.card = ice->card; in psc724_init()
403 snd_wm8766_init(&spec->wm8766); in psc724_init()
404 snd_wm8766_set_if(&spec->wm8766, in psc724_init()
407 INIT_DELAYED_WORK(&spec->hp_work, psc724_update_hp_jack_state); in psc724_init()
414 struct psc724_spec *spec = ice->spec; in psc724_exit() local
416 cancel_delayed_work_sync(&spec->hp_work); in psc724_exit()