Lines Matching refs:pin_idx
245 int pin_idx; in pin_id_to_pin_index() local
255 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in pin_id_to_pin_index()
256 per_pin = get_pin(spec, pin_idx); in pin_id_to_pin_index()
259 return pin_idx; in pin_id_to_pin_index()
285 int pin_idx; in hinfo_to_pin_index() local
287 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in hinfo_to_pin_index()
288 per_pin = get_pin(spec, pin_idx); in hinfo_to_pin_index()
291 return pin_idx; in hinfo_to_pin_index()
765 int pin_idx = pin_id_to_pin_index(codec, nid, dev_id); in check_presence_and_report() local
767 if (pin_idx < 0) in check_presence_and_report()
770 if (hdmi_present_sense(get_pin(spec, pin_idx), 1)) in check_presence_and_report()
954 int pin_idx, int *cvt_id) in hdmi_choose_cvt() argument
962 if (pin_idx < 0) in hdmi_choose_cvt()
965 per_pin = get_pin(spec, pin_idx); in hdmi_choose_cvt()
1047 int pin_idx; in intel_not_share_assigned_cvt() local
1050 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in intel_not_share_assigned_cvt()
1054 per_pin = get_pin(spec, pin_idx); in intel_not_share_assigned_cvt()
1198 int pin_idx, cvt_idx, pcm_idx; in hdmi_pcm_open() local
1210 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_open()
1212 if (snd_BUG_ON(pin_idx < 0)) { in hdmi_pcm_open()
1220 if (pin_idx < 0) { in hdmi_pcm_open()
1226 err = hdmi_choose_cvt(codec, pin_idx, &cvt_idx); in hdmi_pcm_open()
1235 per_pin = get_pin(spec, pin_idx); in hdmi_pcm_open()
1286 static int hdmi_read_pin_conn(struct hda_codec *codec, int pin_idx) in hdmi_read_pin_conn() argument
1289 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx); in hdmi_read_pin_conn()
1680 int pin_idx; in hdmi_add_pin() local
1732 pin_idx = spec->num_pins; in hdmi_add_pin()
1742 per_pin->pcm = get_hdmi_pcm(spec, pin_idx); in hdmi_add_pin()
1743 per_pin->pcm_idx = pin_idx; in hdmi_add_pin()
1752 err = hdmi_read_pin_conn(codec, pin_idx); in hdmi_add_pin()
1863 int pin_idx; in generic_hdmi_playback_pcm_prepare() local
1872 pin_idx = hinfo_to_pin_index(codec, hinfo); in generic_hdmi_playback_pcm_prepare()
1873 if (spec->dyn_pcm_assign && pin_idx < 0) { in generic_hdmi_playback_pcm_prepare()
1884 if (snd_BUG_ON(pin_idx < 0)) { in generic_hdmi_playback_pcm_prepare()
1888 per_pin = get_pin(spec, pin_idx); in generic_hdmi_playback_pcm_prepare()
1943 int cvt_idx, pin_idx, pcm_idx; in hdmi_pcm_close() local
1965 pin_idx = hinfo_to_pin_index(codec, hinfo); in hdmi_pcm_close()
1966 if (spec->dyn_pcm_assign && pin_idx < 0) in hdmi_pcm_close()
1969 if (snd_BUG_ON(pin_idx < 0)) { in hdmi_pcm_close()
1973 per_pin = get_pin(spec, pin_idx); in hdmi_pcm_close()
2162 int pin_idx, pcm_idx; in generic_hdmi_build_controls() local
2203 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in generic_hdmi_build_controls()
2204 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx); in generic_hdmi_build_controls()
2227 int pin_idx; in generic_hdmi_init_per_pins() local
2229 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in generic_hdmi_init_per_pins()
2230 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx); in generic_hdmi_init_per_pins()
2235 eld_proc_new(per_pin, pin_idx); in generic_hdmi_init_per_pins()
2243 int pin_idx; in generic_hdmi_init() local
2245 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in generic_hdmi_init()
2246 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx); in generic_hdmi_init()
2287 int pin_idx, pcm_idx; in generic_hdmi_free() local
2292 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in generic_hdmi_free()
2293 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx); in generic_hdmi_free()
2315 int pin_idx; in generic_hdmi_resume() local
2320 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in generic_hdmi_resume()
2321 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx); in generic_hdmi_resume()
3713 int pin_idx, err; in atihdmi_init() local
3720 for (pin_idx = 0; pin_idx < spec->num_pins; pin_idx++) { in atihdmi_init()
3721 struct hdmi_spec_per_pin *per_pin = get_pin(spec, pin_idx); in atihdmi_init()