Home
last modified time | relevance | path

Searched refs:np (Results 1 – 25 of 114) sorted by relevance

12345

/sound/soc/generic/
Dsimple-card.c72 dlc->of_node = args.np; in asoc_simple_parse_dai()
81 struct device_node *np, in simple_parse_convert() argument
85 struct device_node *node = of_get_parent(np); in simple_parse_convert()
90 asoc_simple_parse_convert(dev, np, NULL, adata); in simple_parse_convert()
116 struct device_node *np, in simple_dai_link_of_dpcm() argument
128 struct device_node *node = of_get_parent(np); in simple_dai_link_of_dpcm()
138 if (li->cpu == (np == codec)) in simple_dai_link_of_dpcm()
141 dev_dbg(dev, "link_of DPCM (%pOF)\n", np); in simple_dai_link_of_dpcm()
164 ret = asoc_simple_parse_cpu(np, dai_link, &is_single_links); in simple_dai_link_of_dpcm()
168 ret = asoc_simple_parse_clk_cpu(dev, np, dai_link, dai); in simple_dai_link_of_dpcm()
[all …]
/sound/soc/meson/
Daxg-card.c88 *dai_of_node = args.np; in axg_card_parse_dai()
402 struct device_node *np; in axg_card_parse_codecs_masks() local
411 for_each_child_of_node(node, np) { in axg_card_parse_codecs_masks()
412 snd_soc_of_get_slot_mask(np, "dai-tdm-slot-rx-mask", in axg_card_parse_codecs_masks()
414 snd_soc_of_get_slot_mask(np, "dai-tdm-slot-tx-mask", in axg_card_parse_codecs_masks()
470 struct device_node *np; in axg_card_set_be_link() local
491 for_each_child_of_node(node, np) { in axg_card_set_be_link()
492 ret = axg_card_parse_dai(card, np, &codec->of_node, in axg_card_set_be_link()
495 of_node_put(np); in axg_card_set_be_link()
504 dev_err(card->dev, "error setting %pOFn link name\n", np); in axg_card_set_be_link()
[all …]
/sound/aoa/core/
Dgpio-feature.c59 struct device_node *np, *gpio; in get_gpio() local
66 np = of_find_node_by_name(NULL, name); in get_gpio()
67 if (!np) { in get_gpio()
75 while ((np = of_get_next_child(gpio, np))) { in get_gpio()
76 audio_gpio = of_get_property(np, "audio-gpio", NULL); in get_gpio()
86 if (!np) in get_gpio()
90 reg = of_get_property(np, "reg", NULL); in get_gpio()
92 of_node_put(np); in get_gpio()
104 reg = of_get_property(np, "audio-gpio-active-state", NULL); in get_gpio()
115 return np; in get_gpio()
[all …]
/sound/aoa/soundbus/i2sbus/
Dcore.c114 static int i2sbus_get_and_fixup_rsrc(struct device_node *np, int index, in i2sbus_get_and_fixup_rsrc() argument
131 return of_address_to_resource(np, index, res); in i2sbus_get_and_fixup_rsrc()
133 parent = of_get_parent(np); in i2sbus_get_and_fixup_rsrc()
138 reg = of_get_property(np, "reg", NULL); in i2sbus_get_and_fixup_rsrc()
153 struct device_node *np) in i2sbus_add_dev() argument
169 if (snprintf(node_name, sizeof(node_name), "%pOFn", np) != 5) in i2sbus_add_dev()
179 for_each_child_of_node(np, child) { in i2sbus_add_dev()
222 dev->sound.ofdev.dev.of_node = np; in i2sbus_add_dev()
237 rnames[i], np); in i2sbus_add_dev()
240 int irq = irq_of_parse_and_map(np, i); in i2sbus_add_dev()
[all …]
Dcontrol.c42 struct device_node *np; in i2sbus_control_add_dev() local
44 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
45 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev()
46 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev()
47 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev()
48 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev()
49 i2sdev->clock_disable = pmf_find_function(np, "clock-disable"); in i2sbus_control_add_dev()
/sound/soc/qcom/
Dcommon.c10 struct device_node *np; in qcom_snd_parse_of() local
45 for_each_child_of_node(dev->of_node, np) { in qcom_snd_parse_of()
56 ret = of_property_read_string(np, "link-name", &link->name); in qcom_snd_parse_of()
62 cpu = of_get_child_by_name(np, "cpu"); in qcom_snd_parse_of()
63 platform = of_get_child_by_name(np, "platform"); in qcom_snd_parse_of()
64 codec = of_get_child_by_name(np, "codec"); in qcom_snd_parse_of()
78 link->cpus->of_node = args.np; in qcom_snd_parse_of()
132 of_node_put(np); in qcom_snd_parse_of()
Dapq8016_sbc.c118 struct device_node *np, *codec, *cpu, *node = dev->of_node; in apq8016_sbc_parse_of() local
153 for_each_child_of_node(node, np) { in apq8016_sbc_parse_of()
164 cpu = of_get_child_by_name(np, "cpu"); in apq8016_sbc_parse_of()
165 codec = of_get_child_by_name(np, "codec"); in apq8016_sbc_parse_of()
194 ret = of_property_read_string(np, "link-name", &link->name); in apq8016_sbc_parse_of()
211 of_node_put(np); in apq8016_sbc_parse_of()
/sound/soc/ux500/
Dmop500.c73 struct device_node *np) in mop500_of_probe() argument
78 msp_np[0] = of_parse_phandle(np, "stericsson,cpu-dai", 0); in mop500_of_probe()
79 msp_np[1] = of_parse_phandle(np, "stericsson,cpu-dai", 1); in mop500_of_probe()
80 codec_np = of_parse_phandle(np, "stericsson,audio-codec", 0); in mop500_of_probe()
104 struct device_node *np = pdev->dev.of_node; in mop500_probe() local
111 if (np) { in mop500_probe()
112 ret = mop500_of_probe(pdev, np); in mop500_probe()
/sound/soc/codecs/
Dsta350.c1094 struct device_node *np = dev->of_node; in sta350_probe_dt() local
1104 of_property_read_u8(np, "st,output-conf", in sta350_probe_dt()
1106 of_property_read_u8(np, "st,ch1-output-mapping", in sta350_probe_dt()
1108 of_property_read_u8(np, "st,ch2-output-mapping", in sta350_probe_dt()
1110 of_property_read_u8(np, "st,ch3-output-mapping", in sta350_probe_dt()
1113 if (of_get_property(np, "st,thermal-warning-recovery", NULL)) in sta350_probe_dt()
1115 if (of_get_property(np, "st,thermal-warning-adjustment", NULL)) in sta350_probe_dt()
1117 if (of_get_property(np, "st,fault-detect-recovery", NULL)) in sta350_probe_dt()
1121 if (!of_property_read_string(np, "st,ffx-power-output-mode", in sta350_probe_dt()
1137 of_property_read_u16(np, "st,drop-compensation-ns", &tmp); in sta350_probe_dt()
[all …]
Dak4642.c608 struct device_node *np = dev->of_node; in ak4642_of_parse_mcko() local
610 const char *clk_name = np->name; in ak4642_of_parse_mcko()
614 if (of_property_read_u32(np, "clock-frequency", &rate)) in ak4642_of_parse_mcko()
617 if (of_property_read_bool(np, "clocks")) in ak4642_of_parse_mcko()
618 parent_clk_name = of_clk_get_parent_name(np, 0); in ak4642_of_parse_mcko()
620 of_property_read_string(np, "clock-output-names", &clk_name); in ak4642_of_parse_mcko()
624 of_clk_add_provider(np, of_clk_src_simple_get, clk); in ak4642_of_parse_mcko()
637 struct device_node *np = dev->of_node; in ak4642_i2c_probe() local
643 if (np) { in ak4642_i2c_probe()
Dsta32x.c1037 struct device_node *np = dev->of_node; in sta32x_probe_dt() local
1045 of_property_read_u8(np, "st,output-conf", in sta32x_probe_dt()
1047 of_property_read_u8(np, "st,ch1-output-mapping", in sta32x_probe_dt()
1049 of_property_read_u8(np, "st,ch2-output-mapping", in sta32x_probe_dt()
1051 of_property_read_u8(np, "st,ch3-output-mapping", in sta32x_probe_dt()
1054 if (of_get_property(np, "st,fault-detect-recovery", NULL)) in sta32x_probe_dt()
1056 if (of_get_property(np, "st,thermal-warning-recovery", NULL)) in sta32x_probe_dt()
1058 if (of_get_property(np, "st,thermal-warning-adjustment", NULL)) in sta32x_probe_dt()
1060 if (of_get_property(np, "st,needs_esd_watchdog", NULL)) in sta32x_probe_dt()
1064 of_property_read_u16(np, "st,drop-compensation-ns", &tmp); in sta32x_probe_dt()
[all …]
/sound/soc/fsl/
Deukrea-tlv320.c88 struct device_node *np = pdev->dev.of_node; in eukrea_tlv320_probe() local
92 if (np) { in eukrea_tlv320_probe()
116 ret = of_property_read_u32(np, "fsl,mux-int-port", &int_port); in eukrea_tlv320_probe()
122 ret = of_property_read_u32(np, "fsl,mux-ext-port", &ext_port); in eukrea_tlv320_probe()
165 if (!np) in eukrea_tlv320_probe()
182 if (np) { in eukrea_tlv320_probe()
Dfsl-asoc-card.c316 static int fsl_asoc_card_audmux_init(struct device_node *np, in fsl_asoc_card_audmux_init() argument
324 ret = of_property_read_u32(np, "mux-int-port", &int_port); in fsl_asoc_card_audmux_init()
329 ret = of_property_read_u32(np, "mux-ext-port", &ext_port); in fsl_asoc_card_audmux_init()
484 struct device_node *np = pdev->dev.of_node; in fsl_asoc_card_probe() local
497 cpu_np = of_parse_phandle(np, "audio-cpu", 0); in fsl_asoc_card_probe()
500 cpu_np = of_parse_phandle(np, "ssi-controller", 0); in fsl_asoc_card_probe()
514 codec_np = of_parse_phandle(np, "audio-codec", 0); in fsl_asoc_card_probe()
520 asrc_np = of_parse_phandle(np, "audio-asrc", 0); in fsl_asoc_card_probe()
542 if (of_device_is_compatible(np, "fsl,imx-audio-cs42888")) { in fsl_asoc_card_probe()
551 } else if (of_device_is_compatible(np, "fsl,imx-audio-cs427x")) { in fsl_asoc_card_probe()
[all …]
Dimx-spdif.c16 struct device_node *spdif_np, *np = pdev->dev.of_node; in imx_spdif_audio_probe() local
21 spdif_np = of_parse_phandle(np, "spdif-controller", 0); in imx_spdif_audio_probe()
52 if (of_property_read_bool(np, "spdif-out")) in imx_spdif_audio_probe()
55 if (of_property_read_bool(np, "spdif-in")) in imx_spdif_audio_probe()
Dfsl_dma.c855 struct device_node *ssi_np, *np; in find_ssi_node() local
861 np = of_parse_phandle(ssi_np, "fsl,playback-dma", 0); in find_ssi_node()
862 of_node_put(np); in find_ssi_node()
863 if (np == dma_channel_np) in find_ssi_node()
866 np = of_parse_phandle(ssi_np, "fsl,capture-dma", 0); in find_ssi_node()
867 of_node_put(np); in find_ssi_node()
868 if (np == dma_channel_np) in find_ssi_node()
887 struct device_node *np = pdev->dev.of_node; in fsl_soc_dma_probe() local
894 ssi_np = find_ssi_node(np); in fsl_soc_dma_probe()
939 dma->channel = of_iomap(np, 0); in fsl_soc_dma_probe()
[all …]
Dimx-audmix.c146 struct device_node *np = pdev->dev.of_node; in imx_audmix_probe() local
171 np->full_name); in imx_audmix_probe()
224 cpu_pdev = of_find_device_by_node(args.np); in imx_audmix_probe()
232 fe_name_pref, args.np->full_name + 1); in imx_audmix_probe()
237 out_cpu_np = args.np; in imx_audmix_probe()
255 priv->dai[i].cpus->of_node = args.np; in imx_audmix_probe()
257 priv->dai[i].platforms->of_node = args.np; in imx_audmix_probe()
292 priv->dai_conf[i].of_node = args.np; in imx_audmix_probe()
/sound/soc/atmel/
Dmikroe-proto.c67 struct device_node *np = pdev->dev.of_node; in snd_proto_probe() local
74 if (!np) { in snd_proto_probe()
108 codec_np = of_parse_phandle(np, "audio-codec", 0); in snd_proto_probe()
115 cpu_np = of_parse_phandle(np, "i2s-controller", 0); in snd_proto_probe()
123 dai_fmt = snd_soc_of_parse_daifmt(np, NULL, in snd_proto_probe()
/sound/soc/tegra/
Dtegra_wm8903.c229 struct device_node *np = pdev->dev.of_node; in tegra_wm8903_driver_probe() local
242 machine->gpio_spkr_en = of_get_named_gpio(np, "nvidia,spkr-en-gpios", in tegra_wm8903_driver_probe()
255 machine->gpio_hp_mute = of_get_named_gpio(np, "nvidia,hp-mute-gpios", in tegra_wm8903_driver_probe()
268 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_wm8903_driver_probe()
272 machine->gpio_int_mic_en = of_get_named_gpio(np, in tegra_wm8903_driver_probe()
287 machine->gpio_ext_mic_en = of_get_named_gpio(np, in tegra_wm8903_driver_probe()
310 tegra_wm8903_dai.codecs->of_node = of_parse_phandle(np, in tegra_wm8903_driver_probe()
319 tegra_wm8903_dai.cpus->of_node = of_parse_phandle(np, in tegra_wm8903_driver_probe()
Dtegra_rt5677.c190 struct device_node *np = pdev->dev.of_node; in tegra_rt5677_probe() local
203 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_rt5677_probe()
207 machine->gpio_mic_present = of_get_named_gpio(np, in tegra_rt5677_probe()
212 machine->gpio_hp_en = of_get_named_gpio(np, "nvidia,hp-en-gpios", 0); in tegra_rt5677_probe()
224 machine->gpio_dmic_clk_en = of_get_named_gpio(np, in tegra_rt5677_probe()
246 tegra_rt5677_dai.codecs->of_node = of_parse_phandle(np, in tegra_rt5677_probe()
255 tegra_rt5677_dai.cpus->of_node = of_parse_phandle(np, in tegra_rt5677_probe()
Dtegra_max98090.c197 struct device_node *np = pdev->dev.of_node; in tegra_max98090_probe() local
210 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_max98090_probe()
215 of_get_named_gpio(np, "nvidia,mic-det-gpios", 0); in tegra_max98090_probe()
227 tegra_max98090_dai.codecs->of_node = of_parse_phandle(np, in tegra_max98090_probe()
236 tegra_max98090_dai.cpus->of_node = of_parse_phandle(np, in tegra_max98090_probe()
/sound/soc/rockchip/
Drk3288_hdmi_analog.c174 struct device_node *np = pdev->dev.of_node; in snd_rk_mc_probe() local
185 machine->gpio_hp_det = of_get_named_gpio(np, in snd_rk_mc_probe()
190 machine->gpio_hp_en = of_get_named_gpio(np, in snd_rk_mc_probe()
210 rk_dailink.codecs[0].of_node = of_parse_phandle(np, in snd_rk_mc_probe()
218 ret = of_parse_phandle_with_fixed_args(np, "rockchip,audio-codec", in snd_rk_mc_probe()
232 rk_dailink.cpus->of_node = of_parse_phandle(np, "rockchip,i2s-controller", in snd_rk_mc_probe()
/sound/soc/mxs/
Dmxs-sgtl5000.c113 struct device_node *np = pdev->dev.of_node; in mxs_sgtl5000_probe() local
116 saif_np[0] = of_parse_phandle(np, "saif-controllers", 0); in mxs_sgtl5000_probe()
117 saif_np[1] = of_parse_phandle(np, "saif-controllers", 1); in mxs_sgtl5000_probe()
118 codec_np = of_parse_phandle(np, "audio-codec", 0); in mxs_sgtl5000_probe()
150 if (of_find_property(np, "audio-routing", NULL)) { in mxs_sgtl5000_probe()
/sound/soc/stm/
Dstm32_sai_sub.c1354 struct device_node *np = pdev->dev.of_node; in stm32_sai_sub_parse_of() local
1360 if (!np) in stm32_sai_sub_parse_of()
1388 if (of_property_match_string(np, "dma-names", "tx") >= 0) { in stm32_sai_sub_parse_of()
1390 } else if (of_property_match_string(np, "dma-names", "rx") >= 0) { in stm32_sai_sub_parse_of()
1399 if (of_get_property(np, "st,iec60958", NULL)) { in stm32_sai_sub_parse_of()
1411 args.np = NULL; in stm32_sai_sub_parse_of()
1412 ret = of_parse_phandle_with_fixed_args(np, "st,sync", 1, 0, &args); in stm32_sai_sub_parse_of()
1419 if (args.np) { in stm32_sai_sub_parse_of()
1420 if (args.np == np) { in stm32_sai_sub_parse_of()
1421 dev_err(&pdev->dev, "%pOFn sync own reference\n", np); in stm32_sai_sub_parse_of()
[all …]
/sound/soc/samsung/
Darndale_rt5631.c92 struct device_node *np = pdev->dev.of_node; in arndale_audio_probe() local
97 for (n = 0; np && n < ARRAY_SIZE(arndale_rt5631_dai); n++) { in arndale_audio_probe()
99 arndale_rt5631_dai[n].cpus->of_node = of_parse_phandle(np, in arndale_audio_probe()
113 arndale_rt5631_dai[n].codecs->of_node = of_parse_phandle(np, in arndale_audio_probe()
/sound/soc/sh/rcar/
Dssi.c1058 struct device_node *np; in rsnd_parse_connect_ssi() local
1067 for_each_child_of_node(node, np) { in rsnd_parse_connect_ssi()
1069 if (np == playback) in rsnd_parse_connect_ssi()
1071 if (np == capture) in rsnd_parse_connect_ssi()
1098 struct device_node *np; in rsnd_ssi_probe() local
1126 for_each_child_of_node(node, np) { in rsnd_ssi_probe()
1127 if (!of_device_is_available(np)) in rsnd_ssi_probe()
1138 of_node_put(np); in rsnd_ssi_probe()
1142 if (of_get_property(np, "shared-pin", NULL)) in rsnd_ssi_probe()
1145 if (of_get_property(np, "no-busif", NULL)) in rsnd_ssi_probe()
[all …]

12345