Lines Matching refs:pdev
22 struct platform_device *pdev; member
126 static int imx_audmix_probe(struct platform_device *pdev) in imx_audmix_probe() argument
128 struct device_node *np = pdev->dev.of_node; in imx_audmix_probe()
138 if (pdev->dev.parent) { in imx_audmix_probe()
139 audmix_np = pdev->dev.parent->of_node; in imx_audmix_probe()
141 dev_err(&pdev->dev, "Missing parent device.\n"); in imx_audmix_probe()
146 dev_err(&pdev->dev, "Missing DT node for parent device.\n"); in imx_audmix_probe()
152 dev_err(&pdev->dev, "Missing AUDMIX platform device for %s\n", in imx_audmix_probe()
160 dev_err(&pdev->dev, "Need 2 dais to be provided for %s\n", in imx_audmix_probe()
165 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in imx_audmix_probe()
171 priv->dai = devm_kcalloc(&pdev->dev, priv->num_dai, in imx_audmix_probe()
177 priv->dai_conf = devm_kcalloc(&pdev->dev, priv->num_dai_conf, in imx_audmix_probe()
184 priv->dapm_routes = devm_kcalloc(&pdev->dev, priv->num_dapm_routes, in imx_audmix_probe()
194 dlc = devm_kcalloc(&pdev->dev, 2, sizeof(*dlc), GFP_KERNEL); in imx_audmix_probe()
205 dev_err(&pdev->dev, "of_parse_phandle_with_args failed\n"); in imx_audmix_probe()
211 dev_err(&pdev->dev, "failed to find SAI platform device\n"); in imx_audmix_probe()
216 dai_name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s%s", in imx_audmix_probe()
221 dev_info(pdev->dev.parent, "DAI FE name:%s\n", dai_name); in imx_audmix_probe()
251 be_name = devm_kasprintf(&pdev->dev, GFP_KERNEL, in imx_audmix_probe()
278 devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s %s", in imx_audmix_probe()
286 devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s %s", in imx_audmix_probe()
297 dev_err(&pdev->dev, "failed to find SAI platform device\n"); in imx_audmix_probe()
311 priv->card.dev = &pdev->dev; in imx_audmix_probe()
315 platform_set_drvdata(pdev, &priv->card); in imx_audmix_probe()
318 ret = devm_snd_soc_register_card(&pdev->dev, &priv->card); in imx_audmix_probe()
320 dev_err(&pdev->dev, "snd_soc_register_card failed\n"); in imx_audmix_probe()