Lines Matching refs:codec_dev
61 struct device *codec_dev; member
600 struct device *codec_dev; in sof_es8336_probe() local
687 codec_dev = acpi_get_first_physical_node(adev); in sof_es8336_probe()
689 if (!codec_dev) in sof_es8336_probe()
691 priv->codec_dev = get_device(codec_dev); in sof_es8336_probe()
696 put_device(codec_dev); in sof_es8336_probe()
706 put_device(codec_dev); in sof_es8336_probe()
710 ret = device_add_software_node(codec_dev, to_software_node(fwnode)); in sof_es8336_probe()
715 put_device(codec_dev); in sof_es8336_probe()
732 ret = devm_acpi_dev_add_driver_gpios(codec_dev, gpio_mapping); in sof_es8336_probe()
734 dev_warn(codec_dev, "unable to add GPIO mapping table\n"); in sof_es8336_probe()
736 priv->gpio_speakers = gpiod_get_optional(codec_dev, "speakers-enable", GPIOD_OUT_LOW); in sof_es8336_probe()
743 priv->gpio_headphone = gpiod_get_optional(codec_dev, "headphone-enable", GPIOD_OUT_LOW); in sof_es8336_probe()
771 device_remove_software_node(priv->codec_dev); in sof_es8336_probe()
772 put_device(codec_dev); in sof_es8336_probe()
783 device_remove_software_node(priv->codec_dev); in sof_es8336_remove()
784 put_device(priv->codec_dev); in sof_es8336_remove()