Lines Matching refs:pdev
23 struct platform_device *pdev; member
144 static int imx_audmix_probe(struct platform_device *pdev) in imx_audmix_probe() argument
146 struct device_node *np = pdev->dev.of_node; in imx_audmix_probe()
156 if (pdev->dev.parent) { in imx_audmix_probe()
157 audmix_np = pdev->dev.parent->of_node; in imx_audmix_probe()
159 dev_err(&pdev->dev, "Missing parent device.\n"); in imx_audmix_probe()
164 dev_err(&pdev->dev, "Missing DT node for parent device.\n"); in imx_audmix_probe()
170 dev_err(&pdev->dev, "Missing AUDMIX platform device for %s\n", in imx_audmix_probe()
178 dev_err(&pdev->dev, "Need 2 dais to be provided for %s\n", in imx_audmix_probe()
183 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in imx_audmix_probe()
188 priv->dai = devm_kcalloc(&pdev->dev, priv->num_dai, in imx_audmix_probe()
194 priv->dai_conf = devm_kcalloc(&pdev->dev, priv->num_dai_conf, in imx_audmix_probe()
201 priv->dapm_routes = devm_kcalloc(&pdev->dev, priv->num_dapm_routes, in imx_audmix_probe()
211 dlc = devm_kcalloc(&pdev->dev, 6, sizeof(*dlc), GFP_KERNEL); in imx_audmix_probe()
218 dev_err(&pdev->dev, "of_parse_phandle_with_args failed\n"); in imx_audmix_probe()
224 dev_err(&pdev->dev, "failed to find SAI platform device\n"); in imx_audmix_probe()
229 dai_name = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s%s", in imx_audmix_probe()
234 dev_info(pdev->dev.parent, "DAI FE name:%s\n", dai_name); in imx_audmix_probe()
239 devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s %s", in imx_audmix_probe()
267 be_name = devm_kasprintf(&pdev->dev, GFP_KERNEL, in imx_audmix_probe()
269 be_pb = devm_kasprintf(&pdev->dev, GFP_KERNEL, in imx_audmix_probe()
271 be_cp = devm_kasprintf(&pdev->dev, GFP_KERNEL, in imx_audmix_probe()
300 devm_kasprintf(&pdev->dev, GFP_KERNEL, "%s %s", in imx_audmix_probe()
314 dev_err(&pdev->dev, "failed to find SAI platform device\n"); in imx_audmix_probe()
335 priv->card.dev = &pdev->dev; in imx_audmix_probe()
339 platform_set_drvdata(pdev, &priv->card); in imx_audmix_probe()
342 ret = devm_snd_soc_register_card(&pdev->dev, &priv->card); in imx_audmix_probe()
344 dev_err(&pdev->dev, "snd_soc_register_card failed\n"); in imx_audmix_probe()