Lines Matching refs:codec_dev
61 struct device *codec_dev; member
609 struct device *codec_dev; in sof_es8336_probe() local
696 codec_dev = acpi_get_first_physical_node(adev); in sof_es8336_probe()
698 if (!codec_dev) in sof_es8336_probe()
700 priv->codec_dev = get_device(codec_dev); in sof_es8336_probe()
705 put_device(codec_dev); in sof_es8336_probe()
715 put_device(codec_dev); in sof_es8336_probe()
719 ret = device_add_software_node(codec_dev, to_software_node(fwnode)); in sof_es8336_probe()
724 put_device(codec_dev); in sof_es8336_probe()
741 ret = devm_acpi_dev_add_driver_gpios(codec_dev, gpio_mapping); in sof_es8336_probe()
743 dev_warn(codec_dev, "unable to add GPIO mapping table\n"); in sof_es8336_probe()
745 priv->gpio_speakers = gpiod_get_optional(codec_dev, "speakers-enable", GPIOD_OUT_LOW); in sof_es8336_probe()
752 priv->gpio_headphone = gpiod_get_optional(codec_dev, "headphone-enable", GPIOD_OUT_LOW); in sof_es8336_probe()
780 device_remove_software_node(priv->codec_dev); in sof_es8336_probe()
781 put_device(codec_dev); in sof_es8336_probe()
792 device_remove_software_node(priv->codec_dev); in sof_es8336_remove()
793 put_device(priv->codec_dev); in sof_es8336_remove()