Home
last modified time | relevance | path

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

123

/sound/soc/generic/
Dsimple-card.c169 asoc_simple_card_sub_parse_of(struct device_node *np, in asoc_simple_card_sub_parse_of() argument
184 ret = of_parse_phandle_with_args(np, "sound-dai", in asoc_simple_card_sub_parse_of()
189 *p_node = args.np; in asoc_simple_card_sub_parse_of()
195 ret = snd_soc_of_get_dai_name(np, name); in asoc_simple_card_sub_parse_of()
200 ret = snd_soc_of_parse_tdm_slot(np, &dai->slots, &dai->slot_width); in asoc_simple_card_sub_parse_of()
210 if (of_property_read_bool(np, "clocks")) { in asoc_simple_card_sub_parse_of()
211 clk = of_clk_get(np, 0); in asoc_simple_card_sub_parse_of()
218 } else if (!of_property_read_u32(np, "system-clock-frequency", &val)) { in asoc_simple_card_sub_parse_of()
221 clk = of_clk_get(args.np, 0); in asoc_simple_card_sub_parse_of()
237 struct device_node *np = NULL; in asoc_simple_card_dai_link_of() local
[all …]
/sound/aoa/soundbus/i2sbus/
Dcore.c117 static int i2sbus_get_and_fixup_rsrc(struct device_node *np, int index, in i2sbus_get_and_fixup_rsrc() argument
134 return of_address_to_resource(np, index, res); in i2sbus_get_and_fixup_rsrc()
136 parent = of_get_parent(np); in i2sbus_get_and_fixup_rsrc()
141 reg = of_get_property(np, "reg", NULL); in i2sbus_get_and_fixup_rsrc()
156 struct device_node *np) in i2sbus_add_dev() argument
171 if (strlen(np->name) != 5) in i2sbus_add_dev()
173 if (strncmp(np->name, "i2s-", 4)) in i2sbus_add_dev()
181 while ((child = of_get_next_child(np, child))) { in i2sbus_add_dev()
224 dev->sound.ofdev.dev.of_node = np; in i2sbus_add_dev()
233 dev->bus_number = np->name[4] - 'a'; in i2sbus_add_dev()
[all …]
Dcontrol.c43 struct device_node *np; in i2sbus_control_add_dev() local
45 np = i2sdev->sound.ofdev.dev.of_node; in i2sbus_control_add_dev()
46 i2sdev->enable = pmf_find_function(np, "enable"); in i2sbus_control_add_dev()
47 i2sdev->cell_enable = pmf_find_function(np, "cell-enable"); in i2sbus_control_add_dev()
48 i2sdev->clock_enable = pmf_find_function(np, "clock-enable"); in i2sbus_control_add_dev()
49 i2sdev->cell_disable = pmf_find_function(np, "cell-disable"); in i2sbus_control_add_dev()
50 i2sdev->clock_disable = pmf_find_function(np, "clock-disable"); in i2sbus_control_add_dev()
/sound/aoa/core/
Dgpio-feature.c60 struct device_node *np, *gpio; in get_gpio() local
67 np = of_find_node_by_name(NULL, name); in get_gpio()
68 if (!np) { in get_gpio()
76 while ((np = of_get_next_child(gpio, np))) { in get_gpio()
77 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()
102 reg = of_get_property(np, "audio-gpio-active-state", NULL); in get_gpio()
113 return np; in get_gpio()
116 static void get_irq(struct device_node * np, int *irqptr) in get_irq() argument
[all …]
/sound/soc/ux500/
Dmop500.c76 struct device_node *np) in mop500_of_probe() argument
81 msp_np[0] = of_parse_phandle(np, "stericsson,cpu-dai", 0); in mop500_of_probe()
82 msp_np[1] = of_parse_phandle(np, "stericsson,cpu-dai", 1); in mop500_of_probe()
83 codec_np = of_parse_phandle(np, "stericsson,audio-codec", 0); in mop500_of_probe()
107 struct device_node *np = pdev->dev.of_node; in mop500_probe() local
114 if (np) { in mop500_probe()
115 ret = mop500_of_probe(pdev, np); in mop500_probe()
/sound/soc/fsl/
Deukrea-tlv320.c107 struct device_node *np = pdev->dev.of_node; in eukrea_tlv320_probe() local
111 if (np) { in eukrea_tlv320_probe()
135 ret = of_property_read_u32(np, "fsl,mux-int-port", &int_port); in eukrea_tlv320_probe()
141 ret = of_property_read_u32(np, "fsl,mux-ext-port", &ext_port); in eukrea_tlv320_probe()
184 if (!np) in eukrea_tlv320_probe()
201 if (np) { in eukrea_tlv320_probe()
220 if (np) in eukrea_tlv320_probe()
Dfsl-asoc-card.c259 static int fsl_asoc_card_audmux_init(struct device_node *np, in fsl_asoc_card_audmux_init() argument
267 ret = of_property_read_u32(np, "mux-int-port", &int_port); in fsl_asoc_card_audmux_init()
272 ret = of_property_read_u32(np, "mux-ext-port", &ext_port); in fsl_asoc_card_audmux_init()
388 struct device_node *np = pdev->dev.of_node; in fsl_asoc_card_probe() local
401 cpu_np = of_parse_phandle(np, "audio-cpu", 0); in fsl_asoc_card_probe()
404 cpu_np = of_parse_phandle(np, "ssi-controller", 0); in fsl_asoc_card_probe()
405 codec_np = of_parse_phandle(np, "audio-codec", 0); in fsl_asoc_card_probe()
426 asrc_np = of_parse_phandle(np, "audio-asrc", 0); in fsl_asoc_card_probe()
445 if (of_device_is_compatible(np, "fsl,imx-audio-cs42888")) { in fsl_asoc_card_probe()
452 } else if (of_device_is_compatible(np, "fsl,imx-audio-sgtl5000")) { in fsl_asoc_card_probe()
[all …]
Dimx-spdif.c23 struct device_node *spdif_np, *np = pdev->dev.of_node; in imx_spdif_audio_probe() local
27 spdif_np = of_parse_phandle(np, "spdif-controller", 0); in imx_spdif_audio_probe()
49 if (of_property_read_bool(np, "spdif-out")) in imx_spdif_audio_probe()
52 if (of_property_read_bool(np, "spdif-in")) in imx_spdif_audio_probe()
Dfsl_dma.c860 struct device_node *ssi_np, *np; in find_ssi_node() local
866 np = of_parse_phandle(ssi_np, "fsl,playback-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()
871 np = of_parse_phandle(ssi_np, "fsl,capture-dma", 0); in find_ssi_node()
872 of_node_put(np); in find_ssi_node()
873 if (np == dma_channel_np) in find_ssi_node()
892 struct device_node *np = pdev->dev.of_node; in fsl_soc_dma_probe() local
899 ssi_np = find_ssi_node(np); in fsl_soc_dma_probe()
913 dma = kzalloc(sizeof(*dma) + strlen(np->full_name), GFP_KERNEL); in fsl_soc_dma_probe()
[all …]
Dmpc8610_hpcd.c194 struct device_node *np = ssi_pdev->dev.of_node; in mpc8610_hpcd_probe() local
202 codec_np = of_parse_phandle(np, "codec-handle", 0); in mpc8610_hpcd_probe()
231 iprop = of_get_property(np, "cell-index", NULL); in mpc8610_hpcd_probe()
240 sprop = of_get_property(np, "fsl,mode", NULL); in mpc8610_hpcd_probe()
315 ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", in mpc8610_hpcd_probe()
326 ret = fsl_asoc_get_dma_channel(np, "fsl,capture-dma", in mpc8610_hpcd_probe()
Dp1022_ds.c204 struct device_node *np = ssi_pdev->dev.of_node; in p1022_ds_probe() local
212 codec_np = of_parse_phandle(np, "codec-handle", 0); in p1022_ds_probe()
241 iprop = of_get_property(np, "cell-index", NULL); in p1022_ds_probe()
250 sprop = of_get_property(np, "fsl,mode", NULL); in p1022_ds_probe()
325 ret = fsl_asoc_get_dma_channel(np, "fsl,playback-dma", &mdata->dai[0], in p1022_ds_probe()
335 ret = fsl_asoc_get_dma_channel(np, "fsl,capture-dma", &mdata->dai[1], in p1022_ds_probe()
Dfsl_sai.c560 struct device_node *np = pdev->dev.of_node; in fsl_sai_probe() local
576 sai->is_lsb_first = of_property_read_bool(np, "lsb-first"); in fsl_sai_probe()
615 dev_err(&pdev->dev, "no irq for node %s\n", np->full_name); in fsl_sai_probe()
619 ret = devm_request_irq(&pdev->dev, irq, fsl_sai_isr, 0, np->name, sai); in fsl_sai_probe()
632 if (of_find_property(np, "fsl,sai-synchronous-rx", NULL) && in fsl_sai_probe()
633 of_find_property(np, "fsl,sai-asynchronous", NULL)) { in fsl_sai_probe()
639 if (of_find_property(np, "fsl,sai-synchronous-rx", NULL)) { in fsl_sai_probe()
643 } else if (of_find_property(np, "fsl,sai-asynchronous", NULL)) { in fsl_sai_probe()
/sound/soc/codecs/
Dsta350.c1116 struct device_node *np = dev->of_node; in sta350_probe_dt() local
1126 of_property_read_u8(np, "st,output-conf", in sta350_probe_dt()
1128 of_property_read_u8(np, "st,ch1-output-mapping", in sta350_probe_dt()
1130 of_property_read_u8(np, "st,ch2-output-mapping", in sta350_probe_dt()
1132 of_property_read_u8(np, "st,ch3-output-mapping", in sta350_probe_dt()
1135 if (of_get_property(np, "st,thermal-warning-recovery", NULL)) in sta350_probe_dt()
1137 if (of_get_property(np, "st,thermal-warning-adjustment", NULL)) in sta350_probe_dt()
1139 if (of_get_property(np, "st,fault-detect-recovery", NULL)) in sta350_probe_dt()
1143 if (!of_property_read_string(np, "st,ffx-power-output-mode", in sta350_probe_dt()
1159 of_property_read_u16(np, "st,drop-compensation-ns", &tmp); in sta350_probe_dt()
[all …]
Dmc13783.c752 struct device_node *np; in mc13783_codec_probe() local
763 np = of_get_child_by_name(pdev->dev.parent->of_node, "codec"); in mc13783_codec_probe()
764 if (!np) in mc13783_codec_probe()
767 ret = of_property_read_u32(np, "adc-port", &priv->adc_ssi_port); in mc13783_codec_probe()
769 of_node_put(np); in mc13783_codec_probe()
773 ret = of_property_read_u32(np, "dac-port", &priv->dac_ssi_port); in mc13783_codec_probe()
775 of_node_put(np); in mc13783_codec_probe()
779 of_node_put(np); in mc13783_codec_probe()
/sound/soc/tegra/
Dtegra_wm8903.c246 struct device_node *np = pdev->dev.of_node; in tegra_wm8903_driver_probe() local
262 machine->gpio_spkr_en = of_get_named_gpio(np, "nvidia,spkr-en-gpios", in tegra_wm8903_driver_probe()
275 machine->gpio_hp_mute = of_get_named_gpio(np, "nvidia,hp-mute-gpios", in tegra_wm8903_driver_probe()
288 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_wm8903_driver_probe()
292 machine->gpio_int_mic_en = of_get_named_gpio(np, in tegra_wm8903_driver_probe()
307 machine->gpio_ext_mic_en = of_get_named_gpio(np, in tegra_wm8903_driver_probe()
330 tegra_wm8903_dai.codec_of_node = of_parse_phandle(np, in tegra_wm8903_driver_probe()
339 tegra_wm8903_dai.cpu_of_node = of_parse_phandle(np, in tegra_wm8903_driver_probe()
Dtegra_max98090.c219 struct device_node *np = pdev->dev.of_node; in tegra_max98090_probe() local
235 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_max98090_probe()
240 of_get_named_gpio(np, "nvidia,mic-det-gpios", 0); in tegra_max98090_probe()
252 tegra_max98090_dai.codec_of_node = of_parse_phandle(np, in tegra_max98090_probe()
261 tegra_max98090_dai.cpu_of_node = of_parse_phandle(np, in tegra_max98090_probe()
Dtegra_rt5640.c167 struct device_node *np = pdev->dev.of_node; in tegra_rt5640_probe() local
183 machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0); in tegra_rt5640_probe()
195 tegra_rt5640_dai.codec_of_node = of_parse_phandle(np, in tegra_rt5640_probe()
204 tegra_rt5640_dai.cpu_of_node = of_parse_phandle(np, in tegra_rt5640_probe()
Dtrimslice.c119 struct device_node *np = pdev->dev.of_node; in tegra_snd_trimslice_probe() local
135 trimslice_tlv320aic23_dai.codec_of_node = of_parse_phandle(np, in tegra_snd_trimslice_probe()
144 trimslice_tlv320aic23_dai.cpu_of_node = of_parse_phandle(np, in tegra_snd_trimslice_probe()
/sound/soc/atmel/
Dsam9g20_wm8731.c194 struct device_node *np = pdev->dev.of_node; in at91sam9g20ek_audio_probe() local
200 if (!np) { in at91sam9g20ek_audio_probe()
240 if (np) { in at91sam9g20ek_audio_probe()
252 codec_np = of_parse_phandle(np, "atmel,audio-codec", 0); in at91sam9g20ek_audio_probe()
262 cpu_np = of_parse_phandle(np, "atmel,ssc-controller", 0); in at91sam9g20ek_audio_probe()
Dsam9x5_wm8731.c80 struct device_node *np = pdev->dev.of_node; in sam9x5_wm8731_driver_probe() local
87 if (!np) { in sam9x5_wm8731_driver_probe()
127 codec_np = of_parse_phandle(np, "atmel,audio-codec", 0); in sam9x5_wm8731_driver_probe()
136 cpu_np = of_parse_phandle(np, "atmel,ssc-controller", 0); in sam9x5_wm8731_driver_probe()
Datmel_wm8904.c82 struct device_node *np = pdev->dev.of_node; in atmel_asoc_wm8904_dt_init() local
88 if (!np) { in atmel_asoc_wm8904_dt_init()
105 cpu_np = of_parse_phandle(np, "atmel,ssc-controller", 0); in atmel_asoc_wm8904_dt_init()
115 codec_np = of_parse_phandle(np, "atmel,audio-codec", 0); in atmel_asoc_wm8904_dt_init()
/sound/ppc/
Dtumbler.c1066 struct device_node *np; in find_audio_device() local
1072 for (np = of_get_next_child(gpiop, NULL); np; in find_audio_device()
1073 np = of_get_next_child(gpiop, np)) { in find_audio_device()
1074 const char *property = of_get_property(np, "audio-gpio", NULL); in find_audio_device()
1079 return np; in find_audio_device()
1086 struct device_node *np; in find_compatible_audio_device() local
1092 for (np = of_get_next_child(gpiop, NULL); np; in find_compatible_audio_device()
1093 np = of_get_next_child(gpiop, np)) { in find_compatible_audio_device()
1094 if (of_device_is_compatible(np, name)) in find_compatible_audio_device()
1098 return np; in find_compatible_audio_device()
[all …]
/sound/soc/mxs/
Dmxs-sgtl5000.c129 struct device_node *np = pdev->dev.of_node; in mxs_sgtl5000_probe() local
132 saif_np[0] = of_parse_phandle(np, "saif-controllers", 0); in mxs_sgtl5000_probe()
133 saif_np[1] = of_parse_phandle(np, "saif-controllers", 1); in mxs_sgtl5000_probe()
134 codec_np = of_parse_phandle(np, "audio-codec", 0); in mxs_sgtl5000_probe()
/sound/soc/davinci/
Ddavinci-evm.c127 struct device_node *np = card->dev->of_node; in evm_aic3x_init() local
134 if (np) { in evm_aic3x_init()
367 struct device_node *np = pdev->dev.of_node; in davinci_evm_probe() local
377 dai->codec_of_node = of_parse_phandle(np, "ti,audio-codec", 0); in davinci_evm_probe()
381 dai->cpu_of_node = of_parse_phandle(np, "ti,mcasp-controller", 0); in davinci_evm_probe()
406 ret = of_property_read_u32(np, "ti,codec-clock-rate", &drvdata->sysclk); in davinci_evm_probe()
/sound/soc/omap/
Drx51.c398 struct device_node *np = pdev->dev.of_node; in rx51_soc_probe() local
407 if (np) { in rx51_soc_probe()
410 dai_node = of_parse_phandle(np, "nokia,cpu-dai", 0); in rx51_soc_probe()
420 dai_node = of_parse_phandle(np, "nokia,audio-codec", 0); in rx51_soc_probe()
428 dai_node = of_parse_phandle(np, "nokia,audio-codec", 1); in rx51_soc_probe()
438 dai_node = of_parse_phandle(np, "nokia,headphone-amplifier", 0); in rx51_soc_probe()

123