Lines Matching defs:nid
427 hdafg_widget_lookup(struct hdafg_softc *sc, int nid)
434 if (nid < sc->sc_startnode || nid >= sc->sc_endnode) {
435 hda_debug(sc, "nid %02X out of range (%02X-%02X)\n",
436 nid, sc->sc_startnode, sc->sc_endnode);
439 return &sc->sc_widgets[nid - sc->sc_startnode];
443 hdafg_control_lookup(struct hdafg_softc *sc, int nid,
455 if (ctl->ctl_widget->w_nid != nid)
510 hda_debug(sc, "ghost nid=%02X\n", cnid);
592 int16_t nid;
605 if (!prop_dictionary_get_int16(dict, "nid", &nid) ||
608 if (nid == w->w_nid)
649 hda_trace(sc, "forcing speaker nid %02X to assoc=14\n",
657 hda_trace(sc, "forcing hp out nid %02X to assoc=14\n",
952 hdafg_dump_dst_nid(struct hdafg_softc *sc, int nid, int depth)
961 w = hdafg_widget_lookup(sc, nid);
966 aprint_debug("nid=%02X [%s]", w->w_nid, w->w_name);
1364 int nid;
1377 for (nid = sc->sc_startnode; nid < sc->sc_endnode; nid++)
1378 hdaudio_command(sc->sc_codec, nid,
1394 for (nid = sc->sc_startnode; nid < sc->sc_endnode; nid++) {
1395 w = hdafg_widget_lookup(sc, nid);
1398 wcap = hdaudio_command(sc->sc_codec, nid, CORB_GET_PARAMETER,
1407 for (nid = sc->sc_startnode; nid < sc->sc_endnode; nid++) {
1408 w = hdafg_widget_lookup(sc, nid);
1412 w->w_nid = nid;
1589 int nid, int dupseq, int minassoc, int only, int depth)
1597 w = hdafg_widget_lookup(sc, nid);
1603 hda_trace(sc, "depth %d nid %02X busy by assoc %d\n",
1604 depth + 1, nid, w->w_bindas);
1611 "depth %d nid %02X busy by seqmask %x\n",
1612 depth + 1, nid, w->w_bindas);
1664 hda_trace(sc, "depth %d nid %02X dupseq %d returned %02X\n",
1665 depth + 1, nid, dupseq, m);
1688 /* Trace this pin taking min nid into account */
1714 int nid, int only, int depth)
1722 w = hdafg_widget_lookup(sc, nid);
1739 /* Try to find reachable ADCs with specified nid */
1747 if (wc->w_conns[i] != nid)
1806 hdafg_assoc_trace_to_out(struct hdafg_softc *sc, int nid, int depth)
1815 w = hdafg_widget_lookup(sc, nid);
1838 /* Try to find reachable ADCs with specified nid */
1846 if (wc->w_conns[i] != nid)
2063 hda_print(sc, "%03X: nid %02X type %d %s (%s) index %d",
2283 hdafg_control_amp_get(struct hdafg_softc *sc, int nid,
2293 if (ctl->ctl_widget->w_nid != nid)
2588 hdafg_control_source_amp(struct hdafg_softc *sc, int nid, int index,
2598 w = hdafg_widget_lookup(sc, nid);
2665 if (wc->w_connsenable[j] && wc->w_conns[j] == nid) {
2678 hdafg_control_dest_amp(struct hdafg_softc *sc, int nid,
2689 w = hdafg_widget_lookup(sc, nid);
2705 wc->w_conns[j] == nid)
3112 hda_print(sc, "connect HDMI nid %02X, xmitctrl = 0x%08X\n",
3430 int nchan, i, nid;
3455 for (nid = sc->sc_startnode; nid < sc->sc_endnode; nid++) {
3456 w = hdafg_widget_lookup(sc, nid);
3710 uint8_t nid = 0;
3751 rv = prop_dictionary_get_uint8(args, "node-id", &nid);
3752 if (rv == false || nid == 0) {
3764 sc->sc_nid = nid;
3864 int nid;
3887 for (nid = sc->sc_startnode; nid < sc->sc_endnode; nid++) {
3888 wl = hdafg_widget_lookup(sc, nid);
3940 int nid;
3945 for (nid = sc->sc_startnode; nid < sc->sc_endnode; nid++) {
3946 hdaudio_command(sc->sc_codec, nid,
3948 w = hdafg_widget_lookup(sc, nid);
4411 int nid;
4417 nid = sc->sc_startnode + index;
4418 if (nid >= sc->sc_endnode)
4421 w = hdafg_widget_lookup(sc, nid);
4429 prop_dictionary_set_uint8(response, "nid", w->w_nid);
4499 int nid;
4514 nid = HDAFG_STAC9200_AFG;
4516 response = hdaudio_command(sc->sc_codec, nid,
4523 hdaudio_command(sc->sc_codec, nid, HDAFG_SET_ANACTRL,
4538 nid = HDAFG_ALC231_MONO_OUT_MIXER;
4539 response = hdaudio_command(sc->sc_codec, nid,