Home
last modified time | relevance | path

Searched refs:pdev (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/sound/soc/tegra/
Dtegra20_spdif.c265 static int tegra20_spdif_platform_probe(struct platform_device *pdev) in tegra20_spdif_platform_probe() argument
272 spdif = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_spdif), in tegra20_spdif_platform_probe()
275 dev_err(&pdev->dev, "Can't allocate tegra20_spdif\n"); in tegra20_spdif_platform_probe()
278 dev_set_drvdata(&pdev->dev, spdif); in tegra20_spdif_platform_probe()
280 spdif->clk_spdif_out = devm_clk_get(&pdev->dev, "spdif_out"); in tegra20_spdif_platform_probe()
287 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in tegra20_spdif_platform_probe()
288 regs = devm_ioremap_resource(&pdev->dev, mem); in tegra20_spdif_platform_probe()
292 dmareq = platform_get_resource(pdev, IORESOURCE_DMA, 0); in tegra20_spdif_platform_probe()
294 dev_err(&pdev->dev, "No DMA resource\n"); in tegra20_spdif_platform_probe()
298 spdif->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra20_spdif_platform_probe()
[all …]
Dtegra20_i2s.c339 static int tegra20_i2s_platform_probe(struct platform_device *pdev) in tegra20_i2s_platform_probe() argument
346 i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_i2s), GFP_KERNEL); in tegra20_i2s_platform_probe()
348 dev_err(&pdev->dev, "Can't allocate tegra20_i2s\n"); in tegra20_i2s_platform_probe()
352 dev_set_drvdata(&pdev->dev, i2s); in tegra20_i2s_platform_probe()
355 i2s->dai.name = dev_name(&pdev->dev); in tegra20_i2s_platform_probe()
357 i2s->clk_i2s = clk_get(&pdev->dev, NULL); in tegra20_i2s_platform_probe()
359 dev_err(&pdev->dev, "Can't retrieve i2s clock\n"); in tegra20_i2s_platform_probe()
364 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in tegra20_i2s_platform_probe()
365 regs = devm_ioremap_resource(&pdev->dev, mem); in tegra20_i2s_platform_probe()
371 i2s->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra20_i2s_platform_probe()
[all …]
Dtegra30_i2s.c377 static int tegra30_i2s_platform_probe(struct platform_device *pdev) in tegra30_i2s_platform_probe() argument
386 i2s = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_i2s), GFP_KERNEL); in tegra30_i2s_platform_probe()
388 dev_err(&pdev->dev, "Can't allocate tegra30_i2s\n"); in tegra30_i2s_platform_probe()
392 dev_set_drvdata(&pdev->dev, i2s); in tegra30_i2s_platform_probe()
394 match = of_match_device(tegra30_i2s_of_match, &pdev->dev); in tegra30_i2s_platform_probe()
396 dev_err(&pdev->dev, "Error: No device match found\n"); in tegra30_i2s_platform_probe()
403 i2s->dai.name = dev_name(&pdev->dev); in tegra30_i2s_platform_probe()
405 ret = of_property_read_u32_array(pdev->dev.of_node, in tegra30_i2s_platform_probe()
414 i2s->clk_i2s = clk_get(&pdev->dev, NULL); in tegra30_i2s_platform_probe()
416 dev_err(&pdev->dev, "Can't retrieve i2s clock\n"); in tegra30_i2s_platform_probe()
[all …]
Dtegra20_ac97.c311 static int tegra20_ac97_platform_probe(struct platform_device *pdev) in tegra20_ac97_platform_probe() argument
318 ac97 = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_ac97), in tegra20_ac97_platform_probe()
321 dev_err(&pdev->dev, "Can't allocate tegra20_ac97\n"); in tegra20_ac97_platform_probe()
325 dev_set_drvdata(&pdev->dev, ac97); in tegra20_ac97_platform_probe()
327 ac97->clk_ac97 = devm_clk_get(&pdev->dev, NULL); in tegra20_ac97_platform_probe()
329 dev_err(&pdev->dev, "Can't retrieve ac97 clock\n"); in tegra20_ac97_platform_probe()
334 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in tegra20_ac97_platform_probe()
335 regs = devm_ioremap_resource(&pdev->dev, mem); in tegra20_ac97_platform_probe()
341 ac97->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra20_ac97_platform_probe()
344 dev_err(&pdev->dev, "regmap init failed\n"); in tegra20_ac97_platform_probe()
[all …]
Dtegra20_das.c134 static int tegra20_das_probe(struct platform_device *pdev) in tegra20_das_probe() argument
143 das = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_das), GFP_KERNEL); in tegra20_das_probe()
145 dev_err(&pdev->dev, "Can't allocate tegra20_das\n"); in tegra20_das_probe()
149 das->dev = &pdev->dev; in tegra20_das_probe()
151 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in tegra20_das_probe()
152 regs = devm_ioremap_resource(&pdev->dev, res); in tegra20_das_probe()
158 das->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra20_das_probe()
161 dev_err(&pdev->dev, "regmap init failed\n"); in tegra20_das_probe()
169 dev_err(&pdev->dev, "Can't set up DAS DAP connection\n"); in tegra20_das_probe()
175 dev_err(&pdev->dev, "Can't set up DAS DAC connection\n"); in tegra20_das_probe()
[all …]
Dtegra_wm9712.c71 static int tegra_wm9712_driver_probe(struct platform_device *pdev) in tegra_wm9712_driver_probe() argument
73 struct device_node *np = pdev->dev.of_node; in tegra_wm9712_driver_probe()
78 machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712), in tegra_wm9712_driver_probe()
81 dev_err(&pdev->dev, "Can't allocate tegra_wm9712 struct\n"); in tegra_wm9712_driver_probe()
85 card->dev = &pdev->dev; in tegra_wm9712_driver_probe()
86 platform_set_drvdata(pdev, card); in tegra_wm9712_driver_probe()
91 dev_err(&pdev->dev, "Can't allocate wm9712 platform device\n"); in tegra_wm9712_driver_probe()
110 dev_err(&pdev->dev, in tegra_wm9712_driver_probe()
118 ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); in tegra_wm9712_driver_probe()
128 dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", in tegra_wm9712_driver_probe()
[all …]
/sound/soc/fsl/
Dfsl_spdif.c98 struct platform_device *pdev; member
121 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_dpll_lock() local
127 dev_dbg(&pdev->dev, "isr: Rx dpll %s \n", in spdif_irq_dpll_lock()
137 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_sym_error() local
139 dev_dbg(&pdev->dev, "isr: receiver found illegal symbol\n"); in spdif_irq_sym_error()
151 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_uqrx_full() local
166 dev_err(&pdev->dev, "unsupported channel name\n"); in spdif_irq_uqrx_full()
170 dev_dbg(&pdev->dev, "isr: %c Channel receive register full\n", name); in spdif_irq_uqrx_full()
175 dev_err(&pdev->dev, "User bit receive buffer overflow\n"); in spdif_irq_uqrx_full()
189 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_uq_sync() local
[all …]
Dimx-sgtl5000.c58 static int imx_sgtl5000_probe(struct platform_device *pdev) in imx_sgtl5000_probe() argument
60 struct device_node *np = pdev->dev.of_node; in imx_sgtl5000_probe()
70 dev_err(&pdev->dev, "mux-int-port missing or invalid\n"); in imx_sgtl5000_probe()
75 dev_err(&pdev->dev, "mux-ext-port missing or invalid\n"); in imx_sgtl5000_probe()
93 dev_err(&pdev->dev, "audmux internal port setup failed\n"); in imx_sgtl5000_probe()
100 dev_err(&pdev->dev, "audmux external port setup failed\n"); in imx_sgtl5000_probe()
104 ssi_np = of_parse_phandle(pdev->dev.of_node, "ssi-controller", 0); in imx_sgtl5000_probe()
105 codec_np = of_parse_phandle(pdev->dev.of_node, "audio-codec", 0); in imx_sgtl5000_probe()
107 dev_err(&pdev->dev, "phandle missing or invalid\n"); in imx_sgtl5000_probe()
114 dev_err(&pdev->dev, "failed to find SSI platform device\n"); in imx_sgtl5000_probe()
[all …]
Dimx-wm8962.c41 struct platform_device *pdev; member
76 struct device *dev = &priv->pdev->dev; in imx_wm8962_set_bias_level()
145 struct device *dev = &priv->pdev->dev; in imx_wm8962_late_probe()
158 static int imx_wm8962_probe(struct platform_device *pdev) in imx_wm8962_probe() argument
160 struct device_node *np = pdev->dev.of_node; in imx_wm8962_probe()
169 priv->pdev = pdev; in imx_wm8962_probe()
173 dev_err(&pdev->dev, "mux-int-port missing or invalid\n"); in imx_wm8962_probe()
178 dev_err(&pdev->dev, "mux-ext-port missing or invalid\n"); in imx_wm8962_probe()
196 dev_err(&pdev->dev, "audmux internal port setup failed\n"); in imx_wm8962_probe()
203 dev_err(&pdev->dev, "audmux external port setup failed\n"); in imx_wm8962_probe()
[all …]
/sound/soc/sunxi/
Dsun4i-spdif.c163 struct platform_device *pdev; member
247 struct platform_device *pdev = host->pdev; in sun4i_spdif_hw_params() local
296 dev_err(&pdev->dev, in sun4i_spdif_hw_params()
437 static int sun4i_spdif_probe(struct platform_device *pdev) in sun4i_spdif_probe() argument
444 dev_dbg(&pdev->dev, "Entered %s\n", __func__); in sun4i_spdif_probe()
446 host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); in sun4i_spdif_probe()
450 host->pdev = pdev; in sun4i_spdif_probe()
454 host->cpu_dai_drv.name = dev_name(&pdev->dev); in sun4i_spdif_probe()
457 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sun4i_spdif_probe()
458 base = devm_ioremap_resource(&pdev->dev, res); in sun4i_spdif_probe()
[all …]
Dsun4i-i2s.c603 static int sun4i_i2s_probe(struct platform_device *pdev) in sun4i_i2s_probe() argument
611 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in sun4i_i2s_probe()
614 platform_set_drvdata(pdev, i2s); in sun4i_i2s_probe()
616 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sun4i_i2s_probe()
617 regs = devm_ioremap_resource(&pdev->dev, res); in sun4i_i2s_probe()
621 irq = platform_get_irq(pdev, 0); in sun4i_i2s_probe()
623 dev_err(&pdev->dev, "Can't retrieve our interrupt\n"); in sun4i_i2s_probe()
627 quirks = of_device_get_match_data(&pdev->dev); in sun4i_i2s_probe()
629 dev_err(&pdev->dev, "Failed to determine the quirks to use\n"); in sun4i_i2s_probe()
633 i2s->bus_clk = devm_clk_get(&pdev->dev, "apb"); in sun4i_i2s_probe()
[all …]
/sound/isa/cs423x/
Dcs4236.c254 static int snd_cs423x_pnp_init_wss(int dev, struct pnp_dev *pdev) in snd_cs423x_pnp_init_wss() argument
256 if (pnp_activate_dev(pdev) < 0) { in snd_cs423x_pnp_init_wss()
260 port[dev] = pnp_port_start(pdev, 0); in snd_cs423x_pnp_init_wss()
262 fm_port[dev] = pnp_port_start(pdev, 1); in snd_cs423x_pnp_init_wss()
263 sb_port[dev] = pnp_port_start(pdev, 2); in snd_cs423x_pnp_init_wss()
264 irq[dev] = pnp_irq(pdev, 0); in snd_cs423x_pnp_init_wss()
265 dma1[dev] = pnp_dma(pdev, 0); in snd_cs423x_pnp_init_wss()
266 dma2[dev] = pnp_dma(pdev, 1) == 4 ? -1 : (int)pnp_dma(pdev, 1); in snd_cs423x_pnp_init_wss()
275 static int snd_cs423x_pnp_init_ctrl(int dev, struct pnp_dev *pdev) in snd_cs423x_pnp_init_ctrl() argument
277 if (pnp_activate_dev(pdev) < 0) { in snd_cs423x_pnp_init_ctrl()
[all …]
/sound/soc/img/
Dimg-parallel-out.c208 static int img_prl_out_probe(struct platform_device *pdev) in img_prl_out_probe() argument
214 struct device *dev = &pdev->dev; in img_prl_out_probe()
216 prl = devm_kzalloc(&pdev->dev, sizeof(*prl), GFP_KERNEL); in img_prl_out_probe()
220 platform_set_drvdata(pdev, prl); in img_prl_out_probe()
222 prl->dev = &pdev->dev; in img_prl_out_probe()
224 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in img_prl_out_probe()
225 base = devm_ioremap_resource(&pdev->dev, res); in img_prl_out_probe()
231 prl->rst = devm_reset_control_get(&pdev->dev, "rst"); in img_prl_out_probe()
234 dev_err(&pdev->dev, "No top level reset found\n"); in img_prl_out_probe()
238 prl->clk_sys = devm_clk_get(&pdev->dev, "sys"); in img_prl_out_probe()
[all …]
Dimg-spdif-out.c314 static int img_spdif_out_probe(struct platform_device *pdev) in img_spdif_out_probe() argument
320 struct device *dev = &pdev->dev; in img_spdif_out_probe()
322 spdif = devm_kzalloc(&pdev->dev, sizeof(*spdif), GFP_KERNEL); in img_spdif_out_probe()
326 platform_set_drvdata(pdev, spdif); in img_spdif_out_probe()
328 spdif->dev = &pdev->dev; in img_spdif_out_probe()
330 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in img_spdif_out_probe()
331 base = devm_ioremap_resource(&pdev->dev, res); in img_spdif_out_probe()
337 spdif->rst = devm_reset_control_get(&pdev->dev, "rst"); in img_spdif_out_probe()
340 dev_err(&pdev->dev, "No top level reset found\n"); in img_spdif_out_probe()
344 spdif->clk_sys = devm_clk_get(&pdev->dev, "sys"); in img_spdif_out_probe()
[all …]
/sound/soc/samsung/
Dpcm.c486 static int s3c_pcm_dev_probe(struct platform_device *pdev) in s3c_pcm_dev_probe() argument
495 if ((pdev->id < 0) || pdev->id >= ARRAY_SIZE(s3c_pcm)) { in s3c_pcm_dev_probe()
496 dev_err(&pdev->dev, "id %d out of range\n", pdev->id); in s3c_pcm_dev_probe()
500 pcm_pdata = pdev->dev.platform_data; in s3c_pcm_dev_probe()
503 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c_pcm_dev_probe()
505 dev_err(&pdev->dev, "Unable to get register resource\n"); in s3c_pcm_dev_probe()
509 if (pcm_pdata && pcm_pdata->cfg_gpio && pcm_pdata->cfg_gpio(pdev)) { in s3c_pcm_dev_probe()
510 dev_err(&pdev->dev, "Unable to configure gpio\n"); in s3c_pcm_dev_probe()
514 pcm = &s3c_pcm[pdev->id]; in s3c_pcm_dev_probe()
515 pcm->dev = &pdev->dev; in s3c_pcm_dev_probe()
[all …]
/sound/soc/rockchip/
Drockchip_spdif.c277 static int rk_spdif_probe(struct platform_device *pdev) in rk_spdif_probe() argument
279 struct device_node *np = pdev->dev.of_node; in rk_spdif_probe()
292 dev_err(&pdev->dev, in rk_spdif_probe()
303 spdif = devm_kzalloc(&pdev->dev, sizeof(*spdif), GFP_KERNEL); in rk_spdif_probe()
307 spdif->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_spdif_probe()
309 dev_err(&pdev->dev, "Can't retrieve rk_spdif bus clock\n"); in rk_spdif_probe()
318 spdif->mclk = devm_clk_get(&pdev->dev, "mclk"); in rk_spdif_probe()
320 dev_err(&pdev->dev, "Can't retrieve rk_spdif master clock\n"); in rk_spdif_probe()
331 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in rk_spdif_probe()
332 regs = devm_ioremap_resource(&pdev->dev, res); in rk_spdif_probe()
[all …]
Drockchip_i2s.c548 static int rockchip_i2s_probe(struct platform_device *pdev) in rockchip_i2s_probe() argument
550 struct device_node *node = pdev->dev.of_node; in rockchip_i2s_probe()
559 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in rockchip_i2s_probe()
561 dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n"); in rockchip_i2s_probe()
565 i2s->dev = &pdev->dev; in rockchip_i2s_probe()
569 of_id = of_match_device(rockchip_i2s_match, &pdev->dev); in rockchip_i2s_probe()
577 i2s->hclk = devm_clk_get(&pdev->dev, "i2s_hclk"); in rockchip_i2s_probe()
579 dev_err(&pdev->dev, "Can't retrieve i2s bus clock\n"); in rockchip_i2s_probe()
588 i2s->mclk = devm_clk_get(&pdev->dev, "i2s_clk"); in rockchip_i2s_probe()
590 dev_err(&pdev->dev, "Can't retrieve i2s master clock\n"); in rockchip_i2s_probe()
[all …]
/sound/soc/ux500/
Dmop500.c71 static int mop500_of_probe(struct platform_device *pdev, in mop500_of_probe() argument
82 dev_err(&pdev->dev, "Phandle missing or invalid\n"); in mop500_of_probe()
101 static int mop500_probe(struct platform_device *pdev) in mop500_probe() argument
103 struct device_node *np = pdev->dev.of_node; in mop500_probe()
106 dev_dbg(&pdev->dev, "%s: Enter.\n", __func__); in mop500_probe()
108 mop500_card.dev = &pdev->dev; in mop500_probe()
111 ret = mop500_of_probe(pdev, np); in mop500_probe()
116 dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n", in mop500_probe()
118 platform_set_drvdata(pdev, &mop500_card); in mop500_probe()
122 dev_dbg(&pdev->dev, "%s: Card %s: num_links = %d\n", in mop500_probe()
[all …]
/sound/soc/atmel/
Dsam9x5_wm8731.c78 static int sam9x5_wm8731_driver_probe(struct platform_device *pdev) in sam9x5_wm8731_driver_probe() argument
80 struct device_node *np = pdev->dev.of_node; in sam9x5_wm8731_driver_probe()
88 dev_err(&pdev->dev, "No device node supplied\n"); in sam9x5_wm8731_driver_probe()
92 card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
93 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
94 dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
102 card->dev = &pdev->dev; in sam9x5_wm8731_driver_probe()
117 dev_err(&pdev->dev, "atmel,model node missing\n"); in sam9x5_wm8731_driver_probe()
123 dev_err(&pdev->dev, "atmel,audio-routing node missing\n"); in sam9x5_wm8731_driver_probe()
129 dev_err(&pdev->dev, "atmel,audio-codec node missing\n"); in sam9x5_wm8731_driver_probe()
[all …]
Datmel_wm8904.c80 static int atmel_asoc_wm8904_dt_init(struct platform_device *pdev) in atmel_asoc_wm8904_dt_init() argument
82 struct device_node *np = pdev->dev.of_node; in atmel_asoc_wm8904_dt_init()
89 dev_err(&pdev->dev, "only device tree supported\n"); in atmel_asoc_wm8904_dt_init()
95 dev_err(&pdev->dev, "failed to parse card name\n"); in atmel_asoc_wm8904_dt_init()
101 dev_err(&pdev->dev, "failed to parse audio routing\n"); in atmel_asoc_wm8904_dt_init()
107 dev_err(&pdev->dev, "failed to get dai and pcm info\n"); in atmel_asoc_wm8904_dt_init()
117 dev_err(&pdev->dev, "failed to get codec info\n"); in atmel_asoc_wm8904_dt_init()
127 static int atmel_asoc_wm8904_probe(struct platform_device *pdev) in atmel_asoc_wm8904_probe() argument
133 card->dev = &pdev->dev; in atmel_asoc_wm8904_probe()
134 ret = atmel_asoc_wm8904_dt_init(pdev); in atmel_asoc_wm8904_probe()
[all …]
/sound/atmel/
Dabdac.c93 struct platform_device *pdev; member
131 dev_dbg(&dac->pdev->dev, "too complex transfer\n"); in atmel_abdac_prepare_dma()
141 dev_dbg(&dac->pdev->dev, "could not prepare cyclic DMA\n"); in atmel_abdac_prepare_dma()
292 dev_err(&dac->pdev->dev, "underrun detected\n"); in abdac_interrupt()
295 dev_err(&dac->pdev->dev, "spurious interrupt (status=0x%x)\n", in abdac_interrupt()
321 dac->pdev->id, 1, 0, &pcm); in atmel_abdac_pcm_new()
333 &dac->pdev->dev, hw.periods_min * hw.period_bytes_min, in atmel_abdac_pcm_new()
392 static int atmel_abdac_probe(struct platform_device *pdev) in atmel_abdac_probe() argument
403 regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); in atmel_abdac_probe()
405 dev_dbg(&pdev->dev, "no memory resource\n"); in atmel_abdac_probe()
[all …]
/sound/soc/sirf/
Dsirf-audio.c83 static int sirf_audio_probe(struct platform_device *pdev) in sirf_audio_probe() argument
89 sirf_audio_card = devm_kzalloc(&pdev->dev, sizeof(struct sirf_audio_card), in sirf_audio_probe()
95 of_parse_phandle(pdev->dev.of_node, "sirf,audio-platform", 0); in sirf_audio_probe()
97 of_parse_phandle(pdev->dev.of_node, "sirf,audio-platform", 0); in sirf_audio_probe()
99 of_parse_phandle(pdev->dev.of_node, "sirf,audio-codec", 0); in sirf_audio_probe()
100 sirf_audio_card->gpio_spk_pa = of_get_named_gpio(pdev->dev.of_node, in sirf_audio_probe()
102 sirf_audio_card->gpio_hp_pa = of_get_named_gpio(pdev->dev.of_node, in sirf_audio_probe()
105 ret = devm_gpio_request_one(&pdev->dev, in sirf_audio_probe()
109 dev_err(&pdev->dev, in sirf_audio_probe()
116 ret = devm_gpio_request_one(&pdev->dev, in sirf_audio_probe()
[all …]
/sound/soc/xtensa/
Dxtfpga-i2s.c537 static int xtfpga_i2s_probe(struct platform_device *pdev) in xtfpga_i2s_probe() argument
543 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in xtfpga_i2s_probe()
548 platform_set_drvdata(pdev, i2s); in xtfpga_i2s_probe()
549 i2s->dev = &pdev->dev; in xtfpga_i2s_probe()
550 dev_dbg(&pdev->dev, "dev: %p, i2s: %p\n", &pdev->dev, i2s); in xtfpga_i2s_probe()
552 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in xtfpga_i2s_probe()
553 i2s->regs = devm_ioremap_resource(&pdev->dev, mem); in xtfpga_i2s_probe()
559 i2s->regmap = devm_regmap_init_mmio(&pdev->dev, i2s->regs, in xtfpga_i2s_probe()
562 dev_err(&pdev->dev, "regmap init failed\n"); in xtfpga_i2s_probe()
567 i2s->clk = devm_clk_get(&pdev->dev, NULL); in xtfpga_i2s_probe()
[all …]
/sound/soc/mediatek/mt8173/
Dmt8173-rt5650.c247 static int mt8173_rt5650_dev_probe(struct platform_device *pdev) in mt8173_rt5650_dev_probe() argument
255 platform_node = of_parse_phandle(pdev->dev.of_node, in mt8173_rt5650_dev_probe()
258 dev_err(&pdev->dev, "Property 'platform' missing or invalid\n"); in mt8173_rt5650_dev_probe()
269 of_parse_phandle(pdev->dev.of_node, "mediatek,audio-codec", 0); in mt8173_rt5650_dev_probe()
271 dev_err(&pdev->dev, in mt8173_rt5650_dev_probe()
278 np = of_get_child_by_name(pdev->dev.of_node, "codec-capture"); in mt8173_rt5650_dev_probe()
280 dev_err(&pdev->dev, in mt8173_rt5650_dev_probe()
287 dev_err(&pdev->dev, in mt8173_rt5650_dev_probe()
295 if (device_property_present(&pdev->dev, "mediatek,mclk")) { in mt8173_rt5650_dev_probe()
296 ret = device_property_read_u32(&pdev->dev, in mt8173_rt5650_dev_probe()
[all …]
/sound/isa/
Dals100.c124 struct pnp_dev *pdev; in snd_card_als100_pnp() local
134 pdev = acard->dev; in snd_card_als100_pnp()
136 err = pnp_activate_dev(pdev); in snd_card_als100_pnp()
141 port[dev] = pnp_port_start(pdev, 0); in snd_card_als100_pnp()
143 dma8[dev] = pnp_dma(pdev, 0); in snd_card_als100_pnp()
145 dma8[dev] = pnp_dma(pdev, 1); in snd_card_als100_pnp()
146 dma16[dev] = pnp_dma(pdev, 0); in snd_card_als100_pnp()
148 irq[dev] = pnp_irq(pdev, 0); in snd_card_als100_pnp()
150 pdev = acard->devmpu; in snd_card_als100_pnp()
151 if (pdev != NULL) { in snd_card_als100_pnp()
[all …]

12345678910>>...13