Lines Matching defs:port

187 	int (*port2pin)(struct hda_codec *, int); /* reverse port/pin mapping */
260 * return the first virtual pin on this port
2682 static void generic_acomp_pin_eld_notify(void *audio_ptr, int port, int dev_id)
2686 hda_nid_t pin_nid = spec->port2pin(codec, port);
2801 /* There is a fixed mapping between audio pin node and display port.
2803 * Pin Widget 5 - PORT B (port = 1 in i915 driver)
2804 * Pin Widget 6 - PORT C (port = 2 in i915 driver)
2805 * Pin Widget 7 - PORT D (port = 3 in i915 driver)
2808 * Pin Widget 4 - PORT B (port = 1 in i915 driver)
2809 * Pin Widget 5 - PORT C (port = 2 in i915 driver)
2810 * Pin Widget 6 - PORT D (port = 3 in i915 driver)
2839 * the index which indicate the port number
2846 codec_info(codec, "Can't find the HDMI/DP port for pin NID 0x%x\n", pin_nid);
2850 static int intel_port2pin(struct hda_codec *codec, int port)
2855 /* we assume only from port-B to port-D */
2856 if (port < 1 || port > 3)
2858 return port + intel_base_nid(codec) - 1;
2861 if (port < 0 || port >= spec->port_num)
2863 return spec->port_map[port];
2866 static void intel_pin_eld_notify(void *audio_ptr, int port, int pipe)
2872 pin_nid = intel_port2pin(codec, port);
3137 * pin to port mapping table where the value indicate the pin number and
3138 * the index indicate the port number.
3149 * pin to port mapping table where the value indicate the pin number and
3150 * the index indicate the port number.
3770 /* map from pin NID to port; port is 0-based */
3777 /* reverse-map from port to pin NID: see above */
3778 static int nvhdmi_port2pin(struct hda_codec *codec, int port)
3780 return port + 4;
4413 /* map from pin NID to port; port is 0-based */
4420 /* reverse-map from port to pin NID: see above */
4421 static int atihdmi_port2pin(struct hda_codec *codec, int port)
4423 return port * 2 + 3;