Lines Matching refs:nid
115 int (*check_power_status)(struct hda_codec *codec, hda_nid_t nid);
117 void (*stream_pm)(struct hda_codec *codec, hda_nid_t nid, bool on);
141 hda_nid_t nid; /* default NID to query rates/formats/bps, or set up */
267 /* filter the requested power state per nid */
268 unsigned int (*power_filter)(struct hda_codec *codec, hda_nid_t nid,
273 struct hda_codec *codec, hda_nid_t nid);
325 snd_hda_codec_read(struct hda_codec *codec, hda_nid_t nid,
329 return snd_hdac_codec_read(&codec->core, nid, flags, verb, parm);
333 snd_hda_codec_write(struct hda_codec *codec, hda_nid_t nid, int flags,
336 return snd_hdac_codec_write(&codec->core, nid, flags, verb, parm);
339 #define snd_hda_param_read(codec, nid, param) \
340 snd_hdac_read_parm(&(codec)->core, nid, param)
341 #define snd_hda_get_sub_nodes(codec, nid, start_nid) \
342 snd_hdac_get_sub_nodes(&(codec)->core, nid, start_nid)
343 int snd_hda_get_connections(struct hda_codec *codec, hda_nid_t nid,
346 snd_hda_get_num_conns(struct hda_codec *codec, hda_nid_t nid)
348 return snd_hda_get_connections(codec, nid, NULL, 0);
351 #define snd_hda_get_raw_connections(codec, nid, list, max_conns) \
352 snd_hdac_get_connections(&(codec)->core, nid, list, max_conns)
353 #define snd_hda_get_num_raw_conns(codec, nid) \
354 snd_hdac_get_connections(&(codec)->core, nid, NULL, 0)
356 int snd_hda_get_conn_list(struct hda_codec *codec, hda_nid_t nid,
358 int snd_hda_override_conn_list(struct hda_codec *codec, hda_nid_t nid, int nums,
361 hda_nid_t nid, int recursive);
362 unsigned int snd_hda_get_num_devices(struct hda_codec *codec, hda_nid_t nid);
363 int snd_hda_get_devices(struct hda_codec *codec, hda_nid_t nid,
365 int snd_hda_get_dev_select(struct hda_codec *codec, hda_nid_t nid);
366 int snd_hda_set_dev_select(struct hda_codec *codec, hda_nid_t nid, int dev_id);
369 hda_nid_t nid;
379 snd_hda_codec_write_cache(struct hda_codec *codec, hda_nid_t nid,
382 return snd_hdac_regmap_write(&codec->core, nid, verb, parm);
387 hda_nid_t nid;
393 unsigned int snd_hda_codec_get_pincfg(struct hda_codec *codec, hda_nid_t nid);
394 int snd_hda_codec_set_pincfg(struct hda_codec *codec, hda_nid_t nid,
397 hda_nid_t nid, unsigned int cfg); /* for hwdep */
402 hda_nid_t nid; /* Converter nid values relate to */
407 hda_nid_t nid);
409 void snd_hda_spdif_ctls_assign(struct hda_codec *codec, int idx, hda_nid_t nid);
443 void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid,
446 void __snd_hda_codec_cleanup_stream(struct hda_codec *codec, hda_nid_t nid,
448 #define snd_hda_codec_cleanup_stream(codec, nid) \
449 __snd_hda_codec_cleanup_stream(codec, nid, 0)
451 #define snd_hda_query_supported_pcm(codec, nid, ratesp, fmtsp, bpsp) \
452 snd_hdac_query_supported_pcm(&(codec)->core, nid, ratesp, fmtsp, bpsp)
453 #define snd_hda_is_supported_format(codec, nid, fmt) \
454 snd_hdac_is_supported_format(&(codec)->core, nid, fmt)
481 int hda_call_check_power_status(struct hda_codec *codec, hda_nid_t nid)
485 return codec->patch_ops.check_power_status(codec, nid);