Lines Matching refs:nid
175 unsigned int snd_hdac_make_cmd(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_make_cmd() argument
181 if ((addr & ~0xf) || (nid & ~0x7f) || in snd_hdac_make_cmd()
184 addr, nid, verb, parm); in snd_hdac_make_cmd()
189 val |= (u32)nid << 20; in snd_hdac_make_cmd()
228 int snd_hdac_read(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read() argument
231 unsigned int cmd = snd_hdac_make_cmd(codec, nid, verb, parm); in snd_hdac_read()
242 int _snd_hdac_read_parm(struct hdac_device *codec, hda_nid_t nid, int parm, in _snd_hdac_read_parm() argument
247 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in _snd_hdac_read_parm()
261 int snd_hdac_read_parm_uncached(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_read_parm_uncached() argument
268 val = snd_hdac_read_parm(codec, nid, parm); in snd_hdac_read_parm_uncached()
282 int snd_hdac_override_parm(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_override_parm() argument
285 unsigned int verb = (AC_VERB_PARAMETERS << 8) | (nid << 20) | parm; in snd_hdac_override_parm()
307 int snd_hdac_get_sub_nodes(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_get_sub_nodes() argument
312 parm = snd_hdac_read_parm_uncached(codec, nid, AC_PAR_NODE_COUNT); in snd_hdac_get_sub_nodes()
328 hda_nid_t nid; in setup_fg_nodes() local
330 total_nodes = snd_hdac_get_sub_nodes(codec, AC_NODE_ROOT, &nid); in setup_fg_nodes()
331 for (i = 0; i < total_nodes; i++, nid++) { in setup_fg_nodes()
332 function_id = snd_hdac_read_parm(codec, nid, in setup_fg_nodes()
336 codec->afg = nid; in setup_fg_nodes()
341 codec->mfg = nid; in setup_fg_nodes()
375 static unsigned int get_num_conns(struct hdac_device *codec, hda_nid_t nid) in get_num_conns() argument
377 unsigned int wcaps = get_wcaps(codec, nid); in get_num_conns()
384 parm = snd_hdac_read_parm(codec, nid, AC_PAR_CONNLIST_LEN); in get_num_conns()
403 int snd_hdac_get_connections(struct hdac_device *codec, hda_nid_t nid, in snd_hdac_get_connections() argument
412 parm = get_num_conns(codec, nid); in snd_hdac_get_connections()
433 err = snd_hdac_read(codec, nid, AC_VERB_GET_CONNECT_LIST, 0, in snd_hdac_get_connections()
450 err = snd_hdac_read(codec, nid, in snd_hdac_get_connections()
461 nid, i, parm); in snd_hdac_get_connections()