Lines Matching defs:pin_idx
255 int pin_idx;
265 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
266 per_pin = get_pin(spec, pin_idx);
269 return pin_idx;
295 int pin_idx;
297 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
298 per_pin = get_pin(spec, pin_idx);
301 return pin_idx;
797 int pin_idx = pin_id_to_pin_index(codec, nid, dev_id);
799 if (pin_idx < 0)
802 hdmi_present_sense(get_pin(spec, pin_idx), 1);
988 * If pin_idx is less then zero, just try to find an available converter.
993 int pin_idx, int *cvt_id,
1001 /* pin_idx < 0 means no pin will be bound to the converter */
1002 if (pin_idx < 0)
1005 per_pin = get_pin(spec, pin_idx);
1097 int pin_idx;
1100 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
1104 per_pin = get_pin(spec, pin_idx);
1246 int pin_idx, cvt_idx, pcm_idx;
1258 pin_idx = hinfo_to_pin_index(codec, hinfo);
1262 if (pin_idx < 0) {
1267 err = hdmi_choose_cvt(codec, pin_idx, &cvt_idx, false);
1276 per_pin = get_pin(spec, pin_idx);
1331 static int hdmi_read_pin_conn(struct hda_codec *codec, int pin_idx)
1334 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
1706 int cvt_idx, pin_idx, err;
1730 pin_idx = pin_id_to_pin_index(codec, per_pin->pin_nid, per_pin->dev_id);
1731 err = hdmi_choose_cvt(codec, pin_idx, &cvt_idx, true);
1880 int pin_idx;
1929 pin_idx = spec->num_pins;
1943 err = hdmi_read_pin_conn(codec, pin_idx);
2091 int pin_idx;
2099 pin_idx = hinfo_to_pin_index(codec, hinfo);
2100 if (pin_idx < 0) {
2110 per_pin = get_pin(spec, pin_idx);
2174 int cvt_idx, pin_idx, pcm_idx;
2200 pin_idx = hinfo_to_pin_index(codec, hinfo);
2205 if (pin_idx < 0)
2208 per_pin = get_pin(spec, pin_idx);
2367 int pin_idx, pcm_idx;
2399 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
2400 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
2430 int pin_idx;
2432 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
2433 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
2438 eld_proc_new(per_pin, pin_idx);
2446 int pin_idx;
2449 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
2450 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
2492 int pin_idx, pcm_idx;
2501 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
2502 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
2520 int pin_idx;
2522 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
2523 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
2532 int pin_idx;
2537 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
2538 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
2910 int pin_idx = pin_id_to_pin_index(codec, pin_nid, dev_id);
2914 if (pin_idx < 0)
2917 per_pin = get_pin(spec, pin_idx);
2960 int pin_idx, res;
2964 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
2965 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
2998 int pin_idx, res;
3006 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
3007 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);
4389 int pin_idx, err;
4396 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) {
4397 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx);