per_pin           119 sound/pci/hda/patch_hdmi.c 			      struct hdmi_spec_per_pin *per_pin,
per_pin           248 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin           258 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
per_pin           259 sound/pci/hda/patch_hdmi.c 		if ((per_pin->pin_nid == pin_nid) &&
per_pin           260 sound/pci/hda/patch_hdmi.c 			(per_pin->dev_id == dev_id))
per_pin           286 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin           290 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
per_pin           291 sound/pci/hda/patch_hdmi.c 		if (per_pin->pcm &&
per_pin           292 sound/pci/hda/patch_hdmi.c 			per_pin->pcm->pcm->stream == hinfo)
per_pin           304 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin           307 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, i);
per_pin           308 sound/pci/hda/patch_hdmi.c 		if (per_pin->pcm_idx == pcm_idx)
per_pin           309 sound/pci/hda/patch_hdmi.c 			return per_pin;
per_pin           332 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin           340 sound/pci/hda/patch_hdmi.c 	per_pin = pcm_idx_to_pin(spec, pcm_idx);
per_pin           341 sound/pci/hda/patch_hdmi.c 	if (!per_pin) {
per_pin           346 sound/pci/hda/patch_hdmi.c 	eld = &per_pin->sink_eld;
per_pin           359 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin           366 sound/pci/hda/patch_hdmi.c 	per_pin = pcm_idx_to_pin(spec, pcm_idx);
per_pin           367 sound/pci/hda/patch_hdmi.c 	if (!per_pin) {
per_pin           374 sound/pci/hda/patch_hdmi.c 	eld = &per_pin->sink_eld;
per_pin           486 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = entry->private_data;
per_pin           488 sound/pci/hda/patch_hdmi.c 	mutex_lock(&per_pin->lock);
per_pin           489 sound/pci/hda/patch_hdmi.c 	snd_hdmi_print_eld_info(&per_pin->sink_eld, buffer);
per_pin           490 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&per_pin->lock);
per_pin           496 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = entry->private_data;
per_pin           498 sound/pci/hda/patch_hdmi.c 	mutex_lock(&per_pin->lock);
per_pin           499 sound/pci/hda/patch_hdmi.c 	snd_hdmi_write_eld_info(&per_pin->sink_eld, buffer);
per_pin           500 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&per_pin->lock);
per_pin           503 sound/pci/hda/patch_hdmi.c static int eld_proc_new(struct hdmi_spec_per_pin *per_pin, int index)
per_pin           506 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = per_pin->codec;
per_pin           515 sound/pci/hda/patch_hdmi.c 	snd_info_set_text_ops(entry, per_pin, print_eld_info);
per_pin           518 sound/pci/hda/patch_hdmi.c 	per_pin->proc_entry = entry;
per_pin           523 sound/pci/hda/patch_hdmi.c static void eld_proc_free(struct hdmi_spec_per_pin *per_pin)
per_pin           525 sound/pci/hda/patch_hdmi.c 	if (!per_pin->codec->bus->shutdown) {
per_pin           526 sound/pci/hda/patch_hdmi.c 		snd_info_free_entry(per_pin->proc_entry);
per_pin           527 sound/pci/hda/patch_hdmi.c 		per_pin->proc_entry = NULL;
per_pin           531 sound/pci/hda/patch_hdmi.c static inline int eld_proc_new(struct hdmi_spec_per_pin *per_pin,
per_pin           536 sound/pci/hda/patch_hdmi.c static inline void eld_proc_free(struct hdmi_spec_per_pin *per_pin)
per_pin           712 sound/pci/hda/patch_hdmi.c 				       struct hdmi_spec_per_pin *per_pin,
per_pin           717 sound/pci/hda/patch_hdmi.c 	hda_nid_t pin_nid = per_pin->pin_nid;
per_pin           718 sound/pci/hda/patch_hdmi.c 	int channels = per_pin->channels;
per_pin           732 sound/pci/hda/patch_hdmi.c 	eld = &per_pin->sink_eld;
per_pin           736 sound/pci/hda/patch_hdmi.c 			per_pin->chmap_set, non_pcm, per_pin->chmap);
per_pin           740 sound/pci/hda/patch_hdmi.c 	chmap->ops.set_channel_count(&codec->core, per_pin->cvt_nid,
per_pin           749 sound/pci/hda/patch_hdmi.c 				per_pin->chmap, per_pin->chmap_set);
per_pin           754 sound/pci/hda/patch_hdmi.c 	per_pin->non_pcm = non_pcm;
per_pin           761 sound/pci/hda/patch_hdmi.c static bool hdmi_present_sense(struct hdmi_spec_per_pin *per_pin, int repoll);
per_pin           966 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin           972 sound/pci/hda/patch_hdmi.c 		per_pin = NULL;
per_pin           974 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
per_pin           983 sound/pci/hda/patch_hdmi.c 		if (per_pin == NULL)
per_pin           986 sound/pci/hda/patch_hdmi.c 		for (mux_idx = 0; mux_idx < per_pin->num_mux_nids; mux_idx++)
per_pin           987 sound/pci/hda/patch_hdmi.c 			if (per_pin->mux_nids[mux_idx] == per_cvt->cvt_nid)
per_pin           990 sound/pci/hda/patch_hdmi.c 		if (mux_idx == per_pin->num_mux_nids)
per_pin           999 sound/pci/hda/patch_hdmi.c 	if (per_pin != NULL)
per_pin          1000 sound/pci/hda/patch_hdmi.c 		per_pin->mux_idx = mux_idx;
per_pin          1010 sound/pci/hda/patch_hdmi.c 			struct hdmi_spec_per_pin *per_pin)
per_pin          1012 sound/pci/hda/patch_hdmi.c 	hda_nid_t pin_nid = per_pin->pin_nid;
per_pin          1015 sound/pci/hda/patch_hdmi.c 	mux_idx = per_pin->mux_idx;
per_pin          1055 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin          1063 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
per_pin          1068 sound/pci/hda/patch_hdmi.c 		if (!per_pin->pcm)
per_pin          1071 sound/pci/hda/patch_hdmi.c 		if ((per_pin->pin_nid == pin_nid) &&
per_pin          1072 sound/pci/hda/patch_hdmi.c 			(per_pin->dev_id == dev_id))
per_pin          1081 sound/pci/hda/patch_hdmi.c 		dev_num = snd_hda_get_num_devices(codec, per_pin->pin_nid) + 1;
per_pin          1082 sound/pci/hda/patch_hdmi.c 		if (per_pin->dev_id >= dev_num)
per_pin          1085 sound/pci/hda/patch_hdmi.c 		nid = per_pin->pin_nid;
per_pin          1094 sound/pci/hda/patch_hdmi.c 		snd_hda_set_dev_select(codec, nid, per_pin->dev_id);
per_pin          1141 sound/pci/hda/patch_hdmi.c 			  struct hdmi_spec_per_pin *per_pin,
per_pin          1147 sound/pci/hda/patch_hdmi.c 		spec->ops.pin_cvt_fixup(codec, per_pin, cvt_nid);
per_pin          1208 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin          1244 sound/pci/hda/patch_hdmi.c 	per_pin = get_pin(spec, pin_idx);
per_pin          1245 sound/pci/hda/patch_hdmi.c 	per_pin->cvt_nid = per_cvt->cvt_nid;
per_pin          1252 sound/pci/hda/patch_hdmi.c 	snd_hda_set_dev_select(codec, per_pin->pin_nid, per_pin->dev_id);
per_pin          1253 sound/pci/hda/patch_hdmi.c 	snd_hda_codec_write_cache(codec, per_pin->pin_nid, 0,
per_pin          1255 sound/pci/hda/patch_hdmi.c 			    per_pin->mux_idx);
per_pin          1258 sound/pci/hda/patch_hdmi.c 	pin_cvt_fixup(codec, per_pin, 0);
per_pin          1269 sound/pci/hda/patch_hdmi.c 	eld = &per_pin->sink_eld;
per_pin          1302 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
per_pin          1303 sound/pci/hda/patch_hdmi.c 	hda_nid_t pin_nid = per_pin->pin_nid;
per_pin          1313 sound/pci/hda/patch_hdmi.c 	per_pin->num_mux_nids = snd_hda_get_connections(codec, pin_nid,
per_pin          1314 sound/pci/hda/patch_hdmi.c 							per_pin->mux_nids,
per_pin          1321 sound/pci/hda/patch_hdmi.c 				struct hdmi_spec_per_pin *per_pin)
per_pin          1326 sound/pci/hda/patch_hdmi.c 	if (!test_bit(per_pin->pin_nid_idx, &spec->pcm_bitmap))
per_pin          1327 sound/pci/hda/patch_hdmi.c 		return per_pin->pin_nid_idx;
per_pin          1344 sound/pci/hda/patch_hdmi.c 				struct hdmi_spec_per_pin *per_pin)
per_pin          1349 sound/pci/hda/patch_hdmi.c 	if (per_pin->pcm)
per_pin          1351 sound/pci/hda/patch_hdmi.c 	idx = hdmi_find_pcm_slot(spec, per_pin);
per_pin          1354 sound/pci/hda/patch_hdmi.c 	per_pin->pcm_idx = idx;
per_pin          1355 sound/pci/hda/patch_hdmi.c 	per_pin->pcm = get_hdmi_pcm(spec, idx);
per_pin          1360 sound/pci/hda/patch_hdmi.c 				struct hdmi_spec_per_pin *per_pin)
per_pin          1365 sound/pci/hda/patch_hdmi.c 	if (!per_pin->pcm)
per_pin          1367 sound/pci/hda/patch_hdmi.c 	idx = per_pin->pcm_idx;
per_pin          1368 sound/pci/hda/patch_hdmi.c 	per_pin->pcm_idx = -1;
per_pin          1369 sound/pci/hda/patch_hdmi.c 	per_pin->pcm = NULL;
per_pin          1375 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin, hda_nid_t cvt_nid)
per_pin          1379 sound/pci/hda/patch_hdmi.c 	for (mux_idx = 0; mux_idx < per_pin->num_mux_nids; mux_idx++)
per_pin          1380 sound/pci/hda/patch_hdmi.c 		if (per_pin->mux_nids[mux_idx] == cvt_nid)
per_pin          1388 sound/pci/hda/patch_hdmi.c 			   struct hdmi_spec_per_pin *per_pin)
per_pin          1390 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = per_pin->codec;
per_pin          1397 sound/pci/hda/patch_hdmi.c 	if (per_pin->pcm_idx >= 0 && per_pin->pcm_idx < spec->pcm_used)
per_pin          1398 sound/pci/hda/patch_hdmi.c 		pcm = get_pcm_rec(spec, per_pin->pcm_idx);
per_pin          1403 sound/pci/hda/patch_hdmi.c 	if (!test_bit(per_pin->pcm_idx, &spec->pcm_in_use))
per_pin          1410 sound/pci/hda/patch_hdmi.c 	per_pin->cvt_nid = hinfo->nid;
per_pin          1412 sound/pci/hda/patch_hdmi.c 	mux_idx = hdmi_get_pin_cvt_mux(spec, per_pin, hinfo->nid);
per_pin          1413 sound/pci/hda/patch_hdmi.c 	if (mux_idx < per_pin->num_mux_nids) {
per_pin          1414 sound/pci/hda/patch_hdmi.c 		snd_hda_set_dev_select(codec, per_pin->pin_nid,
per_pin          1415 sound/pci/hda/patch_hdmi.c 				   per_pin->dev_id);
per_pin          1416 sound/pci/hda/patch_hdmi.c 		snd_hda_codec_write_cache(codec, per_pin->pin_nid, 0,
per_pin          1420 sound/pci/hda/patch_hdmi.c 	snd_hda_spdif_ctls_assign(codec, per_pin->pcm_idx, hinfo->nid);
per_pin          1424 sound/pci/hda/patch_hdmi.c 		per_pin->channels = substream->runtime->channels;
per_pin          1425 sound/pci/hda/patch_hdmi.c 	per_pin->setup = true;
per_pin          1426 sound/pci/hda/patch_hdmi.c 	per_pin->mux_idx = mux_idx;
per_pin          1428 sound/pci/hda/patch_hdmi.c 	hdmi_setup_audio_infoframe(codec, per_pin, non_pcm);
per_pin          1432 sound/pci/hda/patch_hdmi.c 			   struct hdmi_spec_per_pin *per_pin)
per_pin          1434 sound/pci/hda/patch_hdmi.c 	if (per_pin->pcm_idx >= 0 && per_pin->pcm_idx < spec->pcm_used)
per_pin          1435 sound/pci/hda/patch_hdmi.c 		snd_hda_spdif_ctls_unassign(per_pin->codec, per_pin->pcm_idx);
per_pin          1437 sound/pci/hda/patch_hdmi.c 	per_pin->chmap_set = false;
per_pin          1438 sound/pci/hda/patch_hdmi.c 	memset(per_pin->chmap, 0, sizeof(per_pin->chmap));
per_pin          1440 sound/pci/hda/patch_hdmi.c 	per_pin->setup = false;
per_pin          1441 sound/pci/hda/patch_hdmi.c 	per_pin->channels = 0;
per_pin          1448 sound/pci/hda/patch_hdmi.c 		       struct hdmi_spec_per_pin *per_pin,
per_pin          1451 sound/pci/hda/patch_hdmi.c 	struct hdmi_eld *pin_eld = &per_pin->sink_eld;
per_pin          1458 sound/pci/hda/patch_hdmi.c 	pcm_idx = per_pin->pcm_idx;
per_pin          1461 sound/pci/hda/patch_hdmi.c 			hdmi_attach_hda_pcm(spec, per_pin);
per_pin          1462 sound/pci/hda/patch_hdmi.c 			hdmi_pcm_setup_pin(spec, per_pin);
per_pin          1464 sound/pci/hda/patch_hdmi.c 			hdmi_pcm_reset_pin(spec, per_pin);
per_pin          1465 sound/pci/hda/patch_hdmi.c 			hdmi_detach_hda_pcm(spec, per_pin);
per_pin          1472 sound/pci/hda/patch_hdmi.c 		pcm_idx = per_pin->pcm_idx;
per_pin          1501 sound/pci/hda/patch_hdmi.c 	if (eld->eld_valid && !old_eld_valid && per_pin->setup) {
per_pin          1502 sound/pci/hda/patch_hdmi.c 		pin_cvt_fixup(codec, per_pin, 0);
per_pin          1503 sound/pci/hda/patch_hdmi.c 		hdmi_setup_audio_infoframe(codec, per_pin, per_pin->non_pcm);
per_pin          1515 sound/pci/hda/patch_hdmi.c static bool hdmi_present_sense_via_verbs(struct hdmi_spec_per_pin *per_pin,
per_pin          1519 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = per_pin->codec;
per_pin          1522 sound/pci/hda/patch_hdmi.c 	hda_nid_t pin_nid = per_pin->pin_nid;
per_pin          1537 sound/pci/hda/patch_hdmi.c 	mutex_lock(&per_pin->lock);
per_pin          1562 sound/pci/hda/patch_hdmi.c 		schedule_delayed_work(&per_pin->work, msecs_to_jiffies(300));
per_pin          1564 sound/pci/hda/patch_hdmi.c 		update_eld(codec, per_pin, eld);
per_pin          1574 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&per_pin->lock);
per_pin          1579 sound/pci/hda/patch_hdmi.c 				 struct hdmi_spec_per_pin *per_pin)
per_pin          1591 sound/pci/hda/patch_hdmi.c 	if (per_pin->pcm_idx >= 0 && spec->dyn_pcm_assign)
per_pin          1592 sound/pci/hda/patch_hdmi.c 		jack = spec->pcm_rec[per_pin->pcm_idx].jack;
per_pin          1599 sound/pci/hda/patch_hdmi.c 		jack_tbl = snd_hda_jack_tbl_get(codec, per_pin->pin_nid);
per_pin          1608 sound/pci/hda/patch_hdmi.c 			       struct hdmi_spec_per_pin *per_pin)
per_pin          1616 sound/pci/hda/patch_hdmi.c 	mutex_lock(&per_pin->lock);
per_pin          1618 sound/pci/hda/patch_hdmi.c 	size = snd_hdac_acomp_get_eld(&codec->core, per_pin->pin_nid,
per_pin          1619 sound/pci/hda/patch_hdmi.c 				      per_pin->dev_id, &eld->monitor_present,
per_pin          1639 sound/pci/hda/patch_hdmi.c 	jack = pin_idx_to_jack(codec, per_pin);
per_pin          1640 sound/pci/hda/patch_hdmi.c 	changed = update_eld(codec, per_pin, eld);
per_pin          1642 sound/pci/hda/patch_hdmi.c 		jack = pin_idx_to_jack(codec, per_pin);
per_pin          1647 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&per_pin->lock);
per_pin          1650 sound/pci/hda/patch_hdmi.c static bool hdmi_present_sense(struct hdmi_spec_per_pin *per_pin, int repoll)
per_pin          1652 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = per_pin->codec;
per_pin          1662 sound/pci/hda/patch_hdmi.c 		ret = hdmi_present_sense_via_verbs(per_pin, repoll);
per_pin          1665 sound/pci/hda/patch_hdmi.c 		sync_eld_via_acomp(codec, per_pin);
per_pin          1674 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin =
per_pin          1676 sound/pci/hda/patch_hdmi.c 	struct hda_codec *codec = per_pin->codec;
per_pin          1680 sound/pci/hda/patch_hdmi.c 	jack = snd_hda_jack_tbl_get(codec, per_pin->pin_nid);
per_pin          1684 sound/pci/hda/patch_hdmi.c 	if (per_pin->repoll_count++ > 6)
per_pin          1685 sound/pci/hda/patch_hdmi.c 		per_pin->repoll_count = 0;
per_pin          1688 sound/pci/hda/patch_hdmi.c 	if (hdmi_present_sense(per_pin, per_pin->repoll_count))
per_pin          1689 sound/pci/hda/patch_hdmi.c 		snd_hda_jack_report_sync(per_pin->codec);
per_pin          1701 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin          1753 sound/pci/hda/patch_hdmi.c 		per_pin = snd_array_new(&spec->pins);
per_pin          1755 sound/pci/hda/patch_hdmi.c 		if (!per_pin)
per_pin          1759 sound/pci/hda/patch_hdmi.c 			per_pin->pcm = NULL;
per_pin          1760 sound/pci/hda/patch_hdmi.c 			per_pin->pcm_idx = -1;
per_pin          1762 sound/pci/hda/patch_hdmi.c 			per_pin->pcm = get_hdmi_pcm(spec, pin_idx);
per_pin          1763 sound/pci/hda/patch_hdmi.c 			per_pin->pcm_idx = pin_idx;
per_pin          1765 sound/pci/hda/patch_hdmi.c 		per_pin->pin_nid = pin_nid;
per_pin          1766 sound/pci/hda/patch_hdmi.c 		per_pin->pin_nid_idx = spec->num_nids;
per_pin          1767 sound/pci/hda/patch_hdmi.c 		per_pin->dev_id = i;
per_pin          1768 sound/pci/hda/patch_hdmi.c 		per_pin->non_pcm = false;
per_pin          1886 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin          1910 sound/pci/hda/patch_hdmi.c 	per_pin = get_pin(spec, pin_idx);
per_pin          1911 sound/pci/hda/patch_hdmi.c 	pin_nid = per_pin->pin_nid;
per_pin          1921 sound/pci/hda/patch_hdmi.c 	pin_cvt_fixup(codec, per_pin, 0);
per_pin          1926 sound/pci/hda/patch_hdmi.c 		snd_hdac_sync_audio_rate(&codec->core, pin_nid, per_pin->dev_id,
per_pin          1930 sound/pci/hda/patch_hdmi.c 	mutex_lock(&per_pin->lock);
per_pin          1931 sound/pci/hda/patch_hdmi.c 	per_pin->channels = substream->runtime->channels;
per_pin          1932 sound/pci/hda/patch_hdmi.c 	per_pin->setup = true;
per_pin          1942 sound/pci/hda/patch_hdmi.c 	hdmi_setup_audio_infoframe(codec, per_pin, non_pcm);
per_pin          1943 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&per_pin->lock);
per_pin          1975 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin          2005 sound/pci/hda/patch_hdmi.c 		per_pin = get_pin(spec, pin_idx);
per_pin          2008 sound/pci/hda/patch_hdmi.c 			pinctl = snd_hda_codec_read(codec, per_pin->pin_nid, 0,
per_pin          2010 sound/pci/hda/patch_hdmi.c 			snd_hda_codec_write(codec, per_pin->pin_nid, 0,
per_pin          2015 sound/pci/hda/patch_hdmi.c 		mutex_lock(&per_pin->lock);
per_pin          2016 sound/pci/hda/patch_hdmi.c 		per_pin->chmap_set = false;
per_pin          2017 sound/pci/hda/patch_hdmi.c 		memset(per_pin->chmap, 0, sizeof(per_pin->chmap));
per_pin          2019 sound/pci/hda/patch_hdmi.c 		per_pin->setup = false;
per_pin          2020 sound/pci/hda/patch_hdmi.c 		per_pin->channels = 0;
per_pin          2021 sound/pci/hda/patch_hdmi.c 		mutex_unlock(&per_pin->lock);
per_pin          2040 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = pcm_idx_to_pin(spec, pcm_idx);
per_pin          2042 sound/pci/hda/patch_hdmi.c 	if (!per_pin)
per_pin          2045 sound/pci/hda/patch_hdmi.c 	return per_pin->sink_eld.info.spk_alloc;
per_pin          2053 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = pcm_idx_to_pin(spec, pcm_idx);
per_pin          2056 sound/pci/hda/patch_hdmi.c 	if (!per_pin)
per_pin          2059 sound/pci/hda/patch_hdmi.c 	memcpy(chmap, per_pin->chmap, ARRAY_SIZE(per_pin->chmap));
per_pin          2067 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = pcm_idx_to_pin(spec, pcm_idx);
per_pin          2069 sound/pci/hda/patch_hdmi.c 	if (!per_pin)
per_pin          2071 sound/pci/hda/patch_hdmi.c 	mutex_lock(&per_pin->lock);
per_pin          2072 sound/pci/hda/patch_hdmi.c 	per_pin->chmap_set = true;
per_pin          2073 sound/pci/hda/patch_hdmi.c 	memcpy(per_pin->chmap, chmap, ARRAY_SIZE(per_pin->chmap));
per_pin          2075 sound/pci/hda/patch_hdmi.c 		hdmi_setup_audio_infoframe(codec, per_pin, per_pin->non_pcm);
per_pin          2076 sound/pci/hda/patch_hdmi.c 	mutex_unlock(&per_pin->lock);
per_pin          2083 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = pcm_idx_to_pin(spec, pcm_idx);
per_pin          2085 sound/pci/hda/patch_hdmi.c 	return per_pin ? true:false;
per_pin          2154 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin          2171 sound/pci/hda/patch_hdmi.c 	per_pin = get_pin(spec, pcm_idx);
per_pin          2172 sound/pci/hda/patch_hdmi.c 	phantom_jack = !is_jack_detectable(codec, per_pin->pin_nid);
per_pin          2176 sound/pci/hda/patch_hdmi.c 	ret = snd_hda_jack_add_kctl(codec, per_pin->pin_nid, hdmi_str,
per_pin          2180 sound/pci/hda/patch_hdmi.c 	jack = snd_hda_jack_tbl_get(codec, per_pin->pin_nid);
per_pin          2215 sound/pci/hda/patch_hdmi.c 			struct hdmi_spec_per_pin *per_pin =
per_pin          2218 sound/pci/hda/patch_hdmi.c 						  per_pin->pin_nid,
per_pin          2219 sound/pci/hda/patch_hdmi.c 						  per_pin->mux_nids[0],
per_pin          2236 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
per_pin          2237 sound/pci/hda/patch_hdmi.c 		struct hdmi_eld *pin_eld = &per_pin->sink_eld;
per_pin          2240 sound/pci/hda/patch_hdmi.c 		hdmi_present_sense(per_pin, 0);
per_pin          2264 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
per_pin          2266 sound/pci/hda/patch_hdmi.c 		per_pin->codec = codec;
per_pin          2267 sound/pci/hda/patch_hdmi.c 		mutex_init(&per_pin->lock);
per_pin          2268 sound/pci/hda/patch_hdmi.c 		INIT_DELAYED_WORK(&per_pin->work, hdmi_repoll_eld);
per_pin          2269 sound/pci/hda/patch_hdmi.c 		eld_proc_new(per_pin, pin_idx);
per_pin          2282 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
per_pin          2283 sound/pci/hda/patch_hdmi.c 		hda_nid_t pin_nid = per_pin->pin_nid;
per_pin          2284 sound/pci/hda/patch_hdmi.c 		int dev_id = per_pin->dev_id;
per_pin          2337 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
per_pin          2338 sound/pci/hda/patch_hdmi.c 		cancel_delayed_work_sync(&per_pin->work);
per_pin          2339 sound/pci/hda/patch_hdmi.c 		eld_proc_free(per_pin);
per_pin          2365 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
per_pin          2366 sound/pci/hda/patch_hdmi.c 		hdmi_present_sense(per_pin, 1);
per_pin          2772 sound/pci/hda/patch_hdmi.c 			       struct hdmi_spec_per_pin *per_pin,
per_pin          2775 sound/pci/hda/patch_hdmi.c 	if (per_pin) {
per_pin          2776 sound/pci/hda/patch_hdmi.c 		snd_hda_set_dev_select(codec, per_pin->pin_nid,
per_pin          2777 sound/pci/hda/patch_hdmi.c 			       per_pin->dev_id);
per_pin          2778 sound/pci/hda/patch_hdmi.c 		intel_verify_pin_cvt_connect(codec, per_pin);
per_pin          2779 sound/pci/hda/patch_hdmi.c 		intel_not_share_assigned_cvt(codec, per_pin->pin_nid,
per_pin          2780 sound/pci/hda/patch_hdmi.c 				     per_pin->dev_id, per_pin->mux_idx);
per_pin          2987 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin = get_pin(spec, 0);
per_pin          2988 sound/pci/hda/patch_hdmi.c 	hda_nid_t pin = per_pin->pin_nid;
per_pin          3169 sound/pci/hda/patch_hdmi.c 	struct hdmi_spec_per_pin *per_pin;
per_pin          3184 sound/pci/hda/patch_hdmi.c 	per_pin = snd_array_new(&spec->pins);
per_pin          3186 sound/pci/hda/patch_hdmi.c 	if (!per_pin || !per_cvt) {
per_pin          3191 sound/pci/hda/patch_hdmi.c 	per_pin->pin_nid = pin_nid;
per_pin          3970 sound/pci/hda/patch_hdmi.c 		struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
per_pin          3973 sound/pci/hda/patch_hdmi.c 		snd_hda_codec_write(codec, per_pin->pin_nid, 0, ATI_VERB_SET_DOWNMIX_INFO, 0);
per_pin          3977 sound/pci/hda/patch_hdmi.c 			snd_hda_codec_write(codec, per_pin->pin_nid, 0,