Lines Matching full:spec
120 struct cmi_spec *spec = in cm9825_unsol_hp_delayed() local
123 hda_nid_t hp_pin = spec->gen.autocfg.hp_pins[0]; in cm9825_unsol_hp_delayed()
127 hp_jack_plugin = snd_hda_jack_detect(spec->codec, hp_pin); in cm9825_unsol_hp_delayed()
129 codec_dbg(spec->codec, "hp_jack_plugin %d, hp_pin 0x%X\n", in cm9825_unsol_hp_delayed()
134 snd_hda_codec_write(spec->codec, 0x42, 0, in cm9825_unsol_hp_delayed()
137 codec_dbg(spec->codec, "codec_write err %d\n", err); in cm9825_unsol_hp_delayed()
139 snd_hda_sequence_write(spec->codec, spec->chip_hp_remove_verbs); in cm9825_unsol_hp_delayed()
141 snd_hda_sequence_write(spec->codec, in cm9825_unsol_hp_delayed()
142 spec->chip_hp_present_verbs); in cm9825_unsol_hp_delayed()
145 jack = snd_hda_jack_tbl_get(spec->codec, hp_pin); in cm9825_unsol_hp_delayed()
148 snd_hda_jack_report_sync(spec->codec); in cm9825_unsol_hp_delayed()
154 struct cmi_spec *spec = codec->spec; in hp_callback() local
161 codec_dbg(spec->codec, "cb->nid 0x%X\n", cb->nid); in hp_callback()
166 schedule_delayed_work(&spec->unsol_hp_work, msecs_to_jiffies(200)); in hp_callback()
171 struct cmi_spec *spec = codec->spec; in cm9825_setup_unsol() local
173 hda_nid_t hp_pin = spec->gen.autocfg.hp_pins[0]; in cm9825_setup_unsol()
188 struct cmi_spec *spec = codec->spec; in cm9825_free() local
190 cancel_delayed_work_sync(&spec->unsol_hp_work); in cm9825_free()
196 struct cmi_spec *spec = codec->spec; in cm9825_suspend() local
198 cancel_delayed_work_sync(&spec->unsol_hp_work); in cm9825_suspend()
200 snd_hda_sequence_write(codec, spec->chip_d3_verbs); in cm9825_suspend()
207 struct cmi_spec *spec = codec->spec; in cm9825_resume() local
213 snd_hda_codec_write(spec->codec, 0x42, 0, in cm9825_resume()
222 hp_pin = spec->gen.autocfg.hp_pins[0]; in cm9825_resume()
223 hp_jack_plugin = snd_hda_jack_detect(spec->codec, hp_pin); in cm9825_resume()
225 codec_dbg(spec->codec, "hp_jack_plugin %d, hp_pin 0x%X\n", in cm9825_resume()
230 snd_hda_codec_write(spec->codec, 0x42, 0, in cm9825_resume()
258 struct cmi_spec *spec; in patch_cm9825() local
262 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cm9825()
263 if (spec == NULL) in patch_cm9825()
266 INIT_DELAYED_WORK(&spec->unsol_hp_work, cm9825_unsol_hp_delayed); in patch_cm9825()
267 codec->spec = spec; in patch_cm9825()
268 spec->codec = codec; in patch_cm9825()
275 cfg = &spec->gen.autocfg; in patch_cm9825()
276 snd_hda_gen_spec_init(&spec->gen); in patch_cm9825()
277 spec->chip_d0_verbs = cm9825_std_d0_verbs; in patch_cm9825()
278 spec->chip_d3_verbs = cm9825_std_d3_verbs; in patch_cm9825()
279 spec->chip_hp_present_verbs = cm9825_hp_present_verbs; in patch_cm9825()
280 spec->chip_hp_remove_verbs = cm9825_hp_remove_verbs; in patch_cm9825()
282 snd_hda_sequence_write(codec, spec->chip_d0_verbs); in patch_cm9825()
305 struct cmi_spec *spec; in patch_cmi9880() local
309 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi9880()
310 if (spec == NULL) in patch_cmi9880()
313 codec->spec = spec; in patch_cmi9880()
315 cfg = &spec->gen.autocfg; in patch_cmi9880()
316 snd_hda_gen_spec_init(&spec->gen); in patch_cmi9880()
334 struct cmi_spec *spec; in patch_cmi8888() local
338 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi8888()
339 if (!spec) in patch_cmi8888()
342 codec->spec = spec; in patch_cmi8888()
344 cfg = &spec->gen.autocfg; in patch_cmi8888()
345 snd_hda_gen_spec_init(&spec->gen); in patch_cmi8888()
350 spec->gen.out_vol_mask = (1ULL << 0x10); in patch_cmi8888()
364 if (!snd_hda_gen_add_kctl(&spec->gen, NULL, &_kctl)) { in patch_cmi8888()