/sound/soc/tegra/ |
D | tegra20_spdif.c | 265 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() 279 dev_set_drvdata(&pdev->dev, spdif); in tegra20_spdif_platform_probe() 281 spdif->clk_spdif_out = clk_get(&pdev->dev, "spdif_out"); in tegra20_spdif_platform_probe() 288 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in tegra20_spdif_platform_probe() 290 dev_err(&pdev->dev, "No memory resource\n"); in tegra20_spdif_platform_probe() 295 dmareq = platform_get_resource(pdev, IORESOURCE_DMA, 0); in tegra20_spdif_platform_probe() 297 dev_err(&pdev->dev, "No DMA resource\n"); in tegra20_spdif_platform_probe() 302 memregion = devm_request_mem_region(&pdev->dev, mem->start, in tegra20_spdif_platform_probe() [all …]
|
D | tegra20_i2s.c | 339 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() 366 dev_err(&pdev->dev, "No memory resource\n"); in tegra20_i2s_platform_probe() 371 memregion = devm_request_mem_region(&pdev->dev, mem->start, in tegra20_i2s_platform_probe() [all …]
|
D | tegra30_i2s.c | 377 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 …]
|
D | tegra20_das.c | 134 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() 153 dev_err(&pdev->dev, "No memory resource\n"); in tegra20_das_probe() 158 region = devm_request_mem_region(&pdev->dev, res->start, in tegra20_das_probe() 159 resource_size(res), pdev->name); in tegra20_das_probe() 161 dev_err(&pdev->dev, "Memory region already claimed\n"); in tegra20_das_probe() 166 regs = devm_ioremap(&pdev->dev, res->start, resource_size(res)); in tegra20_das_probe() [all …]
|
D | tegra20_ac97.c | 311 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 …]
|
D | tegra30_ahub.c | 518 static int tegra30_ahub_probe(struct platform_device *pdev) in tegra30_ahub_probe() argument 531 match = of_match_device(tegra30_ahub_of_match, &pdev->dev); in tegra30_ahub_probe() 546 rst = reset_control_get(&pdev->dev, in tegra30_ahub_probe() 549 dev_err(&pdev->dev, "Can't get reset %s\n", in tegra30_ahub_probe() 561 ahub = devm_kzalloc(&pdev->dev, sizeof(struct tegra30_ahub), in tegra30_ahub_probe() 564 dev_err(&pdev->dev, "Can't allocate tegra30_ahub\n"); in tegra30_ahub_probe() 568 dev_set_drvdata(&pdev->dev, ahub); in tegra30_ahub_probe() 571 ahub->dev = &pdev->dev; in tegra30_ahub_probe() 573 ahub->clk_d_audio = clk_get(&pdev->dev, "d_audio"); in tegra30_ahub_probe() 575 dev_err(&pdev->dev, "Can't retrieve ahub d_audio clock\n"); in tegra30_ahub_probe() [all …]
|
D | tegra_wm9712.c | 75 static int tegra_wm9712_driver_probe(struct platform_device *pdev) in tegra_wm9712_driver_probe() argument 77 struct device_node *np = pdev->dev.of_node; in tegra_wm9712_driver_probe() 82 machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm9712), in tegra_wm9712_driver_probe() 85 dev_err(&pdev->dev, "Can't allocate tegra_wm9712 struct\n"); in tegra_wm9712_driver_probe() 89 card->dev = &pdev->dev; in tegra_wm9712_driver_probe() 90 platform_set_drvdata(pdev, card); in tegra_wm9712_driver_probe() 95 dev_err(&pdev->dev, "Can't allocate wm9712 platform device\n"); in tegra_wm9712_driver_probe() 114 dev_err(&pdev->dev, in tegra_wm9712_driver_probe() 122 ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); in tegra_wm9712_driver_probe() 132 dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", in tegra_wm9712_driver_probe() [all …]
|
D | trimslice.c | 117 static int tegra_snd_trimslice_probe(struct platform_device *pdev) in tegra_snd_trimslice_probe() argument 119 struct device_node *np = pdev->dev.of_node; in tegra_snd_trimslice_probe() 124 trimslice = devm_kzalloc(&pdev->dev, sizeof(struct tegra_trimslice), in tegra_snd_trimslice_probe() 127 dev_err(&pdev->dev, "Can't allocate tegra_trimslice\n"); in tegra_snd_trimslice_probe() 131 card->dev = &pdev->dev; in tegra_snd_trimslice_probe() 132 platform_set_drvdata(pdev, card); in tegra_snd_trimslice_probe() 138 dev_err(&pdev->dev, in tegra_snd_trimslice_probe() 147 dev_err(&pdev->dev, in tegra_snd_trimslice_probe() 156 ret = tegra_asoc_utils_init(&trimslice->util_data, &pdev->dev); in tegra_snd_trimslice_probe() 162 dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", in tegra_snd_trimslice_probe() [all …]
|
D | tegra_wm8753.c | 122 static int tegra_wm8753_driver_probe(struct platform_device *pdev) in tegra_wm8753_driver_probe() argument 124 struct device_node *np = pdev->dev.of_node; in tegra_wm8753_driver_probe() 129 machine = devm_kzalloc(&pdev->dev, sizeof(struct tegra_wm8753), in tegra_wm8753_driver_probe() 132 dev_err(&pdev->dev, "Can't allocate tegra_wm8753 struct\n"); in tegra_wm8753_driver_probe() 136 card->dev = &pdev->dev; in tegra_wm8753_driver_probe() 137 platform_set_drvdata(pdev, card); in tegra_wm8753_driver_probe() 151 dev_err(&pdev->dev, in tegra_wm8753_driver_probe() 160 dev_err(&pdev->dev, in tegra_wm8753_driver_probe() 168 ret = tegra_asoc_utils_init(&machine->util_data, &pdev->dev); in tegra_wm8753_driver_probe() 174 dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", in tegra_wm8753_driver_probe() [all …]
|
/sound/soc/fsl/ |
D | fsl_spdif.c | 98 struct platform_device *pdev; member 122 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_dpll_lock() local 128 dev_dbg(&pdev->dev, "isr: Rx dpll %s \n", in spdif_irq_dpll_lock() 138 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_sym_error() local 140 dev_dbg(&pdev->dev, "isr: receiver found illegal symbol\n"); in spdif_irq_sym_error() 152 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_uqrx_full() local 167 dev_err(&pdev->dev, "unsupported channel name\n"); in spdif_irq_uqrx_full() 171 dev_dbg(&pdev->dev, "isr: %c Channel receive register full\n", name); in spdif_irq_uqrx_full() 176 dev_err(&pdev->dev, "User bit receivce buffer overflow\n"); in spdif_irq_uqrx_full() 190 struct platform_device *pdev = spdif_priv->pdev; in spdif_irq_uq_sync() local [all …]
|
D | imx-sgtl5000.c | 58 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 …]
|
D | imx-wm8962.c | 41 struct platform_device *pdev; member 75 struct device *dev = &priv->pdev->dev; in imx_wm8962_set_bias_level() 141 struct device *dev = &priv->pdev->dev; in imx_wm8962_late_probe() 152 static int imx_wm8962_probe(struct platform_device *pdev) in imx_wm8962_probe() argument 154 struct device_node *np = pdev->dev.of_node; in imx_wm8962_probe() 163 priv->pdev = pdev; in imx_wm8962_probe() 167 dev_err(&pdev->dev, "mux-int-port missing or invalid\n"); in imx_wm8962_probe() 172 dev_err(&pdev->dev, "mux-ext-port missing or invalid\n"); in imx_wm8962_probe() 190 dev_err(&pdev->dev, "audmux internal port setup failed\n"); in imx_wm8962_probe() 197 dev_err(&pdev->dev, "audmux external port setup failed\n"); in imx_wm8962_probe() [all …]
|
D | fsl_esai.c | 52 struct platform_device *pdev; member 72 struct platform_device *pdev = esai_priv->pdev; in esai_isr() local 78 dev_dbg(&pdev->dev, "isr: Transmition Initialized\n"); in esai_isr() 81 dev_warn(&pdev->dev, "isr: Receiving overrun\n"); in esai_isr() 84 dev_warn(&pdev->dev, "isr: Transmition underrun\n"); in esai_isr() 87 dev_dbg(&pdev->dev, "isr: Just transmitted the last slot\n"); in esai_isr() 90 dev_dbg(&pdev->dev, "isr: Transmition data exception\n"); in esai_isr() 93 dev_dbg(&pdev->dev, "isr: Transmitting even slots\n"); in esai_isr() 96 dev_dbg(&pdev->dev, "isr: Transmitting data\n"); in esai_isr() 99 dev_dbg(&pdev->dev, "isr: Just received the last slot\n"); in esai_isr() [all …]
|
/sound/isa/cs423x/ |
D | cs4236.c | 254 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/rockchip/ |
D | rockchip_i2s.c | 411 static int rockchip_i2s_probe(struct platform_device *pdev) in rockchip_i2s_probe() argument 418 i2s = devm_kzalloc(&pdev->dev, sizeof(*i2s), GFP_KERNEL); in rockchip_i2s_probe() 420 dev_err(&pdev->dev, "Can't allocate rk_i2s_dev\n"); in rockchip_i2s_probe() 425 i2s->hclk = devm_clk_get(&pdev->dev, "i2s_hclk"); in rockchip_i2s_probe() 427 dev_err(&pdev->dev, "Can't retrieve i2s bus clock\n"); in rockchip_i2s_probe() 436 i2s->mclk = devm_clk_get(&pdev->dev, "i2s_clk"); in rockchip_i2s_probe() 438 dev_err(&pdev->dev, "Can't retrieve i2s master clock\n"); in rockchip_i2s_probe() 442 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in rockchip_i2s_probe() 443 regs = devm_ioremap_resource(&pdev->dev, res); in rockchip_i2s_probe() 447 i2s->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in rockchip_i2s_probe() [all …]
|
/sound/soc/ux500/ |
D | mop500.c | 75 static int mop500_of_probe(struct platform_device *pdev, in mop500_of_probe() argument 86 dev_err(&pdev->dev, "Phandle missing or invalid\n"); in mop500_of_probe() 105 static int mop500_probe(struct platform_device *pdev) in mop500_probe() argument 107 struct device_node *np = pdev->dev.of_node; in mop500_probe() 110 dev_dbg(&pdev->dev, "%s: Enter.\n", __func__); in mop500_probe() 112 mop500_card.dev = &pdev->dev; in mop500_probe() 115 ret = mop500_of_probe(pdev, np); in mop500_probe() 120 dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n", in mop500_probe() 122 platform_set_drvdata(pdev, &mop500_card); in mop500_probe() 126 dev_dbg(&pdev->dev, "%s: Card %s: num_links = %d\n", in mop500_probe() [all …]
|
/sound/soc/samsung/ |
D | pcm.c | 486 static int s3c_pcm_dev_probe(struct platform_device *pdev) in s3c_pcm_dev_probe() argument 494 if ((pdev->id < 0) || pdev->id >= ARRAY_SIZE(s3c_pcm)) { in s3c_pcm_dev_probe() 495 dev_err(&pdev->dev, "id %d out of range\n", pdev->id); in s3c_pcm_dev_probe() 499 pcm_pdata = pdev->dev.platform_data; in s3c_pcm_dev_probe() 502 mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c_pcm_dev_probe() 504 dev_err(&pdev->dev, "Unable to get register resource\n"); in s3c_pcm_dev_probe() 508 if (pcm_pdata && pcm_pdata->cfg_gpio && pcm_pdata->cfg_gpio(pdev)) { in s3c_pcm_dev_probe() 509 dev_err(&pdev->dev, "Unable to configure gpio\n"); in s3c_pcm_dev_probe() 513 pcm = &s3c_pcm[pdev->id]; in s3c_pcm_dev_probe() 514 pcm->dev = &pdev->dev; in s3c_pcm_dev_probe() [all …]
|
D | i2s.c | 46 struct platform_device *pdev; member 291 dev_err(&i2s->pdev->dev, "Unsupported BCLK divider\n"); in set_bfs() 324 dev_err(&i2s->pdev->dev, "Wrong BCLK Divider!\n"); in set_bfs() 471 dev_err(&i2s->pdev->dev, in i2s_set_sysclk() 506 i2s->op_clk = clk_get(&i2s->pdev->dev, in i2s_set_sysclk() 509 i2s->op_clk = clk_get(&i2s->pdev->dev, in i2s_set_sysclk() 525 dev_err(&i2s->pdev->dev, in i2s_set_sysclk() 542 dev_err(&i2s->pdev->dev, "We don't serve that!\n"); in i2s_set_sysclk() 584 dev_err(&i2s->pdev->dev, "Format not supported\n"); in i2s_set_fmt() 602 dev_err(&i2s->pdev->dev, "Polarity not supported\n"); in i2s_set_fmt() [all …]
|
/sound/soc/atmel/ |
D | sam9x5_wm8731.c | 78 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 …]
|
D | atmel_wm8904.c | 80 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/ |
D | abdac.c | 93 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/ |
D | sirf-audio.c | 83 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/spear/ |
D | spdif_in.c | 201 static int spdif_in_probe(struct platform_device *pdev) in spdif_in_probe() argument 208 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in spdif_in_probe() 212 res_fifo = platform_get_resource(pdev, IORESOURCE_IO, 0); in spdif_in_probe() 216 if (!devm_request_mem_region(&pdev->dev, res->start, in spdif_in_probe() 217 resource_size(res), pdev->name)) { in spdif_in_probe() 218 dev_warn(&pdev->dev, "Failed to get memory resourse\n"); in spdif_in_probe() 222 host = devm_kzalloc(&pdev->dev, sizeof(*host), GFP_KERNEL); in spdif_in_probe() 224 dev_warn(&pdev->dev, "kzalloc fail\n"); in spdif_in_probe() 228 host->io_base = devm_ioremap(&pdev->dev, res->start, in spdif_in_probe() 231 dev_warn(&pdev->dev, "ioremap failed\n"); in spdif_in_probe() [all …]
|
/sound/isa/ |
D | als100.c | 124 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 …]
|
/sound/soc/dwc/ |
D | designware_i2s.c | 341 static int dw_i2s_probe(struct platform_device *pdev) in dw_i2s_probe() argument 343 const struct i2s_platform_data *pdata = pdev->dev.platform_data; in dw_i2s_probe() 351 dev_err(&pdev->dev, "Invalid platform data\n"); in dw_i2s_probe() 355 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dw_i2s_probe() 357 dev_err(&pdev->dev, "no i2s resource defined\n"); in dw_i2s_probe() 361 if (!devm_request_mem_region(&pdev->dev, res->start, in dw_i2s_probe() 362 resource_size(res), pdev->name)) { in dw_i2s_probe() 363 dev_err(&pdev->dev, "i2s region already claimed\n"); in dw_i2s_probe() 367 dev = devm_kzalloc(&pdev->dev, sizeof(*dev), GFP_KERNEL); in dw_i2s_probe() 369 dev_warn(&pdev->dev, "kzalloc fail\n"); in dw_i2s_probe() [all …]
|