Lines Matching refs:codec_dev
61 struct device *codec_dev; member
607 struct device *codec_dev; in sof_es8336_probe() local
700 codec_dev = acpi_get_first_physical_node(adev); in sof_es8336_probe()
701 if (!codec_dev) in sof_es8336_probe()
703 priv->codec_dev = get_device(codec_dev); in sof_es8336_probe()
711 put_device(codec_dev); in sof_es8336_probe()
715 ret = device_add_software_node(codec_dev, to_software_node(fwnode)); in sof_es8336_probe()
720 put_device(codec_dev); in sof_es8336_probe()
737 ret = devm_acpi_dev_add_driver_gpios(codec_dev, gpio_mapping); in sof_es8336_probe()
739 dev_warn(codec_dev, "unable to add GPIO mapping table\n"); in sof_es8336_probe()
741 priv->gpio_speakers = gpiod_get_optional(codec_dev, "speakers-enable", GPIOD_OUT_LOW); in sof_es8336_probe()
748 priv->gpio_headphone = gpiod_get_optional(codec_dev, "headphone-enable", GPIOD_OUT_LOW); in sof_es8336_probe()
776 device_remove_software_node(priv->codec_dev); in sof_es8336_probe()
777 put_device(codec_dev); in sof_es8336_probe()
788 device_remove_software_node(priv->codec_dev); in sof_es8336_remove()
789 put_device(priv->codec_dev); in sof_es8336_remove()