Lines Matching refs:jack
124 struct snd_jack *jack; member
739 struct hda_jack_callback *jack) in jack_callback() argument
741 check_presence_and_report(codec, jack->nid); in jack_callback()
747 struct hda_jack_tbl *jack; in hdmi_intrinsic_event() local
750 jack = snd_hda_jack_tbl_get_from_tag(codec, tag); in hdmi_intrinsic_event()
751 if (!jack) in hdmi_intrinsic_event()
753 jack->jack_dirty = 1; in hdmi_intrinsic_event()
757 codec->addr, jack->nid, dev_entry, !!(res & AC_UNSOL_RES_IA), in hdmi_intrinsic_event()
760 check_presence_and_report(codec, jack->nid); in hdmi_intrinsic_event()
1396 struct hda_jack_tbl *jack; in hdmi_present_sense_via_verbs() local
1446 jack = snd_hda_jack_tbl_get(codec, pin_nid); in hdmi_present_sense_via_verbs()
1447 if (jack) in hdmi_present_sense_via_verbs()
1448 jack->block_report = !ret; in hdmi_present_sense_via_verbs()
1458 struct snd_jack *jack = NULL; in pin_idx_to_jack() local
1468 jack = spec->pcm_rec[per_pin->pcm_idx].jack; in pin_idx_to_jack()
1472 jack = jack_tbl->jack; in pin_idx_to_jack()
1474 return jack; in pin_idx_to_jack()
1483 struct snd_jack *jack = NULL; in sync_eld_via_acomp() local
1509 jack = pin_idx_to_jack(codec, per_pin); in sync_eld_via_acomp()
1511 if (jack == NULL) in sync_eld_via_acomp()
1512 jack = pin_idx_to_jack(codec, per_pin); in sync_eld_via_acomp()
1513 if (jack == NULL) in sync_eld_via_acomp()
1515 snd_jack_report(jack, in sync_eld_via_acomp()
1923 static void free_hdmi_jack_priv(struct snd_jack *jack) in free_hdmi_jack_priv() argument
1925 struct hdmi_pcm *pcm = jack->private_data; in free_hdmi_jack_priv()
1927 pcm->jack = NULL; in free_hdmi_jack_priv()
1935 struct snd_jack *jack; in add_hdmi_jack_kctl() local
1938 err = snd_jack_new(codec->card, name, SND_JACK_AVOUT, &jack, in add_hdmi_jack_kctl()
1943 spec->pcm_rec[pcm_idx].jack = jack; in add_hdmi_jack_kctl()
1944 jack->private_data = &spec->pcm_rec[pcm_idx]; in add_hdmi_jack_kctl()
1945 jack->private_free = free_hdmi_jack_priv; in add_hdmi_jack_kctl()
1954 struct hda_jack_tbl *jack; in generic_hdmi_build_jack() local
1979 jack = snd_hda_jack_tbl_get(codec, per_pin->pin_nid); in generic_hdmi_build_jack()
1980 if (jack == NULL) in generic_hdmi_build_jack()
1985 spec->pcm_rec[pcm_idx].jack = jack->jack; in generic_hdmi_build_jack()
2123 if (spec->pcm_rec[pcm_idx].jack == NULL) in generic_hdmi_free()
2127 spec->pcm_rec[pcm_idx].jack); in generic_hdmi_free()
2129 spec->pcm_rec[pcm_idx].jack = NULL; in generic_hdmi_free()