Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 56) sorted by relevance

123

/sound/soc/generic/
Dsimple-card.c31 static int asoc_simple_parse_dai(struct device_node *node, in asoc_simple_parse_dai() argument
38 if (!node) in asoc_simple_parse_dai()
45 ret = of_parse_phandle_with_args(node, DAI, CELL, 0, &args); in asoc_simple_parse_dai()
68 ret = snd_soc_of_get_dai_name(node, &dlc->dai_name); in asoc_simple_parse_dai()
85 struct device_node *node = of_get_parent(np); in simple_parse_convert() local
88 asoc_simple_parse_convert(dev, node, PREFIX, adata); in simple_parse_convert()
89 asoc_simple_parse_convert(dev, node, NULL, adata); in simple_parse_convert()
92 of_node_put(node); in simple_parse_convert()
101 struct device_node *node = of_get_parent(cpu); in simple_parse_mclk_fs() local
108 of_property_read_u32(node, prop, &props->mclk_fs); in simple_parse_mclk_fs()
[all …]
Daudio-graph-card.c62 struct device_node *node; in graph_get_dai_id() local
86 node = of_get_parent(ep); in graph_get_dai_id()
87 reg = of_get_property(node, "reg", NULL); in graph_get_dai_id()
88 of_node_put(node); in graph_get_dai_id()
92 node = of_graph_get_port_parent(ep); in graph_get_dai_id()
100 for_each_endpoint_of_node(node, endpoint) { in graph_get_dai_id()
106 of_node_put(node); in graph_get_dai_id()
118 struct device_node *node; in asoc_simple_parse_dai() local
125 node = of_graph_get_port_parent(ep); in asoc_simple_parse_dai()
128 args.np = node; in asoc_simple_parse_dai()
[all …]
Dsimple-card-utils.c56 struct device_node *node, in asoc_simple_parse_daifmt() argument
65 daifmt = snd_soc_of_parse_daifmt(node, prefix, in asoc_simple_parse_daifmt()
161 struct device_node *node, in asoc_simple_parse_clk() argument
174 clk = devm_get_clk_from_child(dev, node, NULL); in asoc_simple_parse_clk()
179 } else if (!of_property_read_u32(node, "system-clock-frequency", &val)) { in asoc_simple_parse_clk()
187 if (of_property_read_bool(node, "system-clock-direction-out")) in asoc_simple_parse_clk()
402 struct device_node *node = card->dev->of_node; in asoc_simple_parse_routing() local
410 if (!of_property_read_bool(node, prop)) in asoc_simple_parse_routing()
420 struct device_node *node = card->dev->of_node; in asoc_simple_parse_widgets() local
428 if (of_property_read_bool(node, prop)) in asoc_simple_parse_widgets()
/sound/soc/meson/
Daxg-card.c71 struct device_node *node, in axg_card_parse_dai() argument
78 if (!dai_name || !dai_of_node || !node) in axg_card_parse_dai()
81 ret = of_parse_phandle_with_args(node, "sound-dai", in axg_card_parse_dai()
95 struct device_node *node, in axg_card_set_link_name() argument
99 prefix, node->full_name); in axg_card_set_link_name()
137 struct device_node *node = card->dev->of_node; in axg_card_add_aux_devices() local
141 num = of_count_phandle_with_args(node, "audio-aux-devs", NULL); in axg_card_add_aux_devices()
163 of_parse_phandle(node, "audio-aux-devs", i); in axg_card_add_aux_devices()
307 static unsigned int axg_card_parse_daifmt(struct device_node *node, in axg_card_parse_daifmt() argument
314 daifmt = snd_soc_of_parse_daifmt(node, PREFIX, in axg_card_parse_daifmt()
[all …]
/sound/soc/sh/rcar/
Dssiu.c361 struct device_node *node = rsnd_ssiu_of_node(priv); in rsnd_parse_connect_ssiu() local
369 if (node) { in rsnd_parse_connect_ssiu()
371 for_each_child_of_node(node, np) { in rsnd_parse_connect_ssiu()
380 of_node_put(node); in rsnd_parse_connect_ssiu()
393 struct device_node *node; in rsnd_ssiu_probe() local
406 node = rsnd_ssiu_of_node(priv); in rsnd_ssiu_probe()
407 if (node) in rsnd_ssiu_probe()
408 nr = of_get_child_count(node); in rsnd_ssiu_probe()
426 if ((node) && in rsnd_ssiu_probe()
444 if (node) { in rsnd_ssiu_probe()
Dctu.c298 struct device_node *node; in rsnd_ctu_probe() local
310 node = rsnd_ctu_of_node(priv); in rsnd_ctu_probe()
311 if (!node) in rsnd_ctu_probe()
314 nr = of_get_child_count(node); in rsnd_ctu_probe()
331 for_each_child_of_node(node, np) { in rsnd_ctu_probe()
360 of_node_put(node); in rsnd_ctu_probe()
Dmix.c272 struct device_node *node; in rsnd_mix_probe() local
284 node = rsnd_mix_of_node(priv); in rsnd_mix_probe()
285 if (!node) in rsnd_mix_probe()
288 nr = of_get_child_count(node); in rsnd_mix_probe()
305 for_each_child_of_node(node, np) { in rsnd_mix_probe()
329 of_node_put(node); in rsnd_mix_probe()
Ddvc.c308 struct device_node *node; in rsnd_dvc_probe() local
320 node = rsnd_dvc_of_node(priv); in rsnd_dvc_probe()
321 if (!node) in rsnd_dvc_probe()
324 nr = of_get_child_count(node); in rsnd_dvc_probe()
341 for_each_child_of_node(node, np) { in rsnd_dvc_probe()
365 of_node_put(node); in rsnd_dvc_probe()
Dssi.c1057 struct device_node *node; in rsnd_parse_connect_ssi() local
1062 node = rsnd_ssi_of_node(priv); in rsnd_parse_connect_ssi()
1063 if (!node) in rsnd_parse_connect_ssi()
1067 for_each_child_of_node(node, np) { in rsnd_parse_connect_ssi()
1076 of_node_put(node); in rsnd_parse_connect_ssi()
1097 struct device_node *node; in rsnd_ssi_probe() local
1106 node = rsnd_ssi_of_node(priv); in rsnd_ssi_probe()
1107 if (!node) in rsnd_ssi_probe()
1110 nr = of_get_child_count(node); in rsnd_ssi_probe()
1126 for_each_child_of_node(node, np) { in rsnd_ssi_probe()
[all …]
Dsrc.c614 struct device_node *node; in rsnd_src_probe() local
626 node = rsnd_src_of_node(priv); in rsnd_src_probe()
627 if (!node) in rsnd_src_probe()
630 nr = of_get_child_count(node); in rsnd_src_probe()
646 for_each_child_of_node(node, np) { in rsnd_src_probe()
683 of_node_put(node); in rsnd_src_probe()
/sound/soc/codecs/
Dmax98504.c311 struct device_node *node = dev->of_node; in max98504_i2c_probe() local
319 if (node) { in max98504_i2c_probe()
320 if (!of_property_read_u32(node, "maxim,brownout-threshold", in max98504_i2c_probe()
324 of_property_read_u32(node, "maxim,brownout-attenuation", in max98504_i2c_probe()
326 of_property_read_u32(node, "maxim,brownout-attack-hold-ms", in max98504_i2c_probe()
328 of_property_read_u32(node, "maxim,brownout-timed-hold-ms", in max98504_i2c_probe()
330 of_property_read_u32(node, "maxim,brownout-release-rate-ms", in max98504_i2c_probe()
/sound/soc/xilinx/
Dxlnx_i2s.c103 struct device_node *node = dev->of_node; in xlnx_i2s_probe() local
113 ret = of_property_read_u32(node, "xlnx,num-channels", &ch); in xlnx_i2s_probe()
120 ret = of_property_read_u32(node, "xlnx,dwidth", &data_width); in xlnx_i2s_probe()
136 if (of_device_is_compatible(node, "xlnx,i2s-transmitter-1.0")) { in xlnx_i2s_probe()
144 } else if (of_device_is_compatible(node, "xlnx,i2s-receiver-1.0")) { in xlnx_i2s_probe()
/sound/ppc/
Dpmac.c820 ppc_md.feature_call(PMAC_FTR_SOUND_CHIP_ENABLE, chip->node, 0, enable); in snd_pmac_sound_feature()
836 if (chip->node) in snd_pmac_free()
862 if (chip->node) { in snd_pmac_free()
872 of_node_put(chip->node); in snd_pmac_free()
897 for (mio = chip->node->parent; mio; mio = mio->parent) { in detect_byte_swap()
949 chip->node = of_find_node_by_name(NULL, "awacs"); in snd_pmac_detect()
950 sound = of_node_get(chip->node); in snd_pmac_detect()
956 if (!chip->node) in snd_pmac_detect()
957 chip->node = of_find_node_by_name(NULL, "davbus"); in snd_pmac_detect()
962 if (! chip->node) { in snd_pmac_detect()
[all …]
Dtumbler.c1086 struct device_node *node; in tumbler_find_device() local
1092 node = find_compatible_audio_device(device); in tumbler_find_device()
1094 node = find_audio_device(device); in tumbler_find_device()
1095 if (! node) { in tumbler_find_device()
1101 base = of_get_property(node, "AAPL,address", NULL); in tumbler_find_device()
1103 base = of_get_property(node, "reg", NULL); in tumbler_find_device()
1107 of_node_put(node); in tumbler_find_device()
1118 base = of_get_property(node, "audio-gpio-active-state", NULL); in tumbler_find_device()
1134 prop = of_get_property(node, platform, NULL); in tumbler_find_device()
1150 ret = irq_of_parse_and_map(node, 0); in tumbler_find_device()
[all …]
/sound/soc/ti/
Domap-twl4030.c240 struct device_node *node = pdev->dev.of_node; in omap_twl4030_probe() local
251 if (node) { in omap_twl4030_probe()
260 dai_node = of_parse_phandle(node, "ti,mcbsp", 0); in omap_twl4030_probe()
271 dai_node = of_parse_phandle(node, "ti,mcbsp-voice", 0); in omap_twl4030_probe()
282 priv->jack_detect = of_get_named_gpio(node, in omap_twl4030_probe()
286 prop = of_find_property(node, "ti,audio-routing", NULL); in omap_twl4030_probe()
Domap-abe-twl6040.c213 struct device_node *node = pdev->dev.of_node; in omap_abe_probe() local
220 if (!node) { in omap_abe_probe()
248 dai_node = of_parse_phandle(node, "ti,mcpdm", 0); in omap_abe_probe()
267 dai_node = of_parse_phandle(node, "ti,dmic", 0); in omap_abe_probe()
286 priv->jack_detection = of_property_read_bool(node, "ti,jack-detection"); in omap_abe_probe()
287 of_property_read_u32(node, "ti,mclk-freq", &priv->mclk_freq); in omap_abe_probe()
/sound/soc/qcom/qdsp6/
Dq6adm.c52 struct list_head node; member
98 list_for_each_entry(c, &adm->copps_list, node) { in q6adm_find_copp()
120 list_del(&c->node); in q6adm_free_copp()
308 list_for_each_entry(c, &adm->copps_list, node) { in q6adm_find_matching_copp()
411 list_add_tail(&copp->node, &adm->copps_list); in q6adm_open()
465 struct q6adm_session_map_node_v5 *node; in q6adm_matrix_map() local
473 pkt_size = (APR_HDR_SIZE + sizeof(*route) + sizeof(*node) + in q6adm_matrix_map()
482 node = matrix_map + APR_HDR_SIZE + sizeof(*route); in q6adm_matrix_map()
483 copps_list = matrix_map + APR_HDR_SIZE + sizeof(*route) + sizeof(*node); in q6adm_matrix_map()
505 node->session_id = payload_map.session_id; in q6adm_matrix_map()
[all …]
Dq6afe-dai.c1352 struct device_node *node; in of_q6afe_parse_dai_data() local
1355 for_each_child_of_node(dev->of_node, node) { in of_q6afe_parse_dai_data()
1360 ret = of_property_read_u32(node, "reg", &id); in of_q6afe_parse_dai_data()
1370 ret = of_property_read_variable_u32_array(node, in of_q6afe_parse_dai_data()
1387 ret = of_property_read_u32(node, "qcom,tdm-sync-mode", in of_q6afe_parse_dai_data()
1393 ret = of_property_read_u32(node, "qcom,tdm-sync-src", in of_q6afe_parse_dai_data()
1399 ret = of_property_read_u32(node, "qcom,tdm-data-out", in of_q6afe_parse_dai_data()
1405 ret = of_property_read_u32(node, "qcom,tdm-invert-sync", in of_q6afe_parse_dai_data()
1411 ret = of_property_read_u32(node, "qcom,tdm-data-delay", in of_q6afe_parse_dai_data()
1417 ret = of_property_read_u32(node, "qcom,tdm-data-align", in of_q6afe_parse_dai_data()
/sound/xen/
Dxen_snd_front_cfg.c393 char node[3]; in cfg_device() local
417 snprintf(node, sizeof(node), "%d", num_streams); in cfg_device()
418 if (!xenbus_exists(XBT_NIL, device_path, node)) in cfg_device()
481 char node[3]; in xen_snd_front_cfg_card() local
486 snprintf(node, sizeof(node), "%d", num_devices); in xen_snd_front_cfg_card()
487 if (!xenbus_exists(XBT_NIL, xb_dev->nodename, node)) in xen_snd_front_cfg_card()
/sound/soc/intel/atom/sst/
Dsst_ipc.c43 list_add_tail(&msg->node, &ctx->block_list); in sst_create_block()
72 list_for_each_entry(block, &ctx->block_list, node) { in sst_wake_up_block()
99 list_for_each_entry_safe(block, __block, &ctx->block_list, node) { in sst_free_block()
103 list_del(&freed->node); in sst_free_block()
157 struct ipc_post, node); in sst_post_message_mrfld()
158 list_del(&msg->node); in sst_post_message_mrfld()
/sound/aoa/core/
Dgpio-pmf.c20 rc = pmf_call_function(rt->node, #name "-mute", &args); \
43 rc = pmf_call_function(rt->node, "hw-reset", &args); in pmf_gpio_set_hw_reset()
188 err = pmf_register_irq_client(rt->node, in pmf_set_notify()
229 err = pmf_call_function(rt->node, name, &args); in pmf_get_detect()
/sound/soc/qcom/
Dapq8016_sbc.c118 struct device_node *np, *codec, *cpu, *node = dev->of_node; in apq8016_sbc_parse_of() local
130 if (of_property_read_bool(node, "qcom,audio-routing")) { in apq8016_sbc_parse_of()
139 num_links = of_get_child_count(node); in apq8016_sbc_parse_of()
153 for_each_child_of_node(node, np) { in apq8016_sbc_parse_of()
/sound/soc/sti/
Dsti_uniperif.c381 static int sti_uniperiph_cpu_dai_of(struct device_node *node, in sti_uniperiph_cpu_dai_of() argument
395 of_id = of_match_node(snd_soc_sti_match, node); in sti_uniperiph_cpu_dai_of()
436 if (!of_property_read_string(node, "st,tdm-mode", &mode)) in sti_uniperiph_cpu_dai_of()
473 struct device_node *node = pdev->dev.of_node; in sti_uniperiph_probe() local
486 ret = sti_uniperiph_cpu_dai_of(node, priv); in sti_uniperiph_probe()
/sound/ac97/
Dbus.c73 struct device_node *node; in ac97_of_get_child_device() local
80 for_each_child_of_node(ac97_ctrl->parent->of_node, node) { in ac97_of_get_child_device()
81 if ((idx != of_property_read_u32(node, "reg", &reg)) || in ac97_of_get_child_device()
82 !of_device_is_compatible(node, compat)) in ac97_of_get_child_device()
84 return node; in ac97_of_get_child_device()
/sound/soc/intel/skylake/
Dskl-topology.h189 } node; member
261 struct list_head node; member
419 struct list_head node; member
425 struct list_head node; member

123