Home
last modified time | relevance | path

Searched refs:spk_ctl_gpio (Results 1 – 9 of 9) sorted by relevance

/OK3568_Linux_fs/kernel/sound/soc/rockchip/
H A Drockchip_audio_pwm.c29 struct gpio_desc *spk_ctl_gpio; member
41 if (apwm->spk_ctl_gpio) in rockchip_audio_spk_ctl()
42 gpiod_direction_output(apwm->spk_ctl_gpio, on); in rockchip_audio_spk_ctl()
308 apwm->spk_ctl_gpio = devm_gpiod_get_optional(&pdev->dev, "spk-ctl", in rockchip_audio_pwm_probe()
311 if (!apwm->spk_ctl_gpio) { in rockchip_audio_pwm_probe()
313 } else if (IS_ERR(apwm->spk_ctl_gpio)) { in rockchip_audio_pwm_probe()
314 ret = PTR_ERR(apwm->spk_ctl_gpio); in rockchip_audio_pwm_probe()
H A Drockchip_multicodecs.c63 struct gpio_desc *spk_ctl_gpio; member
298 gpiod_set_value_cansleep(mc_data->spk_ctl_gpio, 1); in mc_spk_event()
301 gpiod_set_value_cansleep(mc_data->spk_ctl_gpio, 0); in mc_spk_event()
764 mc_data->spk_ctl_gpio = devm_gpiod_get_optional(&pdev->dev, in rk_multicodecs_probe()
767 if (IS_ERR(mc_data->spk_ctl_gpio)) in rk_multicodecs_probe()
768 return PTR_ERR(mc_data->spk_ctl_gpio); in rk_multicodecs_probe()
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Des8311.c41 struct gpio_desc *spk_ctl_gpio; member
488 if (es8311->spk_ctl_gpio) in es8311_mute()
489 gpiod_direction_output(es8311->spk_ctl_gpio, 0); in es8311_mute()
493 if (es8311->spk_ctl_gpio) { in es8311_mute()
494 gpiod_direction_output(es8311->spk_ctl_gpio, 1); in es8311_mute()
630 es8311->spk_ctl_gpio = devm_gpiod_get_optional(&client->dev, "spk-ctl", in es8311_parse_dt()
632 if (!es8311->spk_ctl_gpio) { in es8311_parse_dt()
634 } else if (IS_ERR(es8311->spk_ctl_gpio)) { in es8311_parse_dt()
635 ret = PTR_ERR(es8311->spk_ctl_gpio); in es8311_parse_dt()
H A Drk312x_codec.c93 struct gpio_desc *spk_ctl_gpio; member
262 rk312x_priv->spk_ctl_gpio) { in rk312x_codec_ctl_gpio()
263 gpiod_set_value(rk312x_priv->spk_ctl_gpio, level); in rk312x_codec_ctl_gpio()
2020 if (rk312x->spk_ctl_gpio) { in gpio_store()
2021 gpiod_set_value(rk312x->spk_ctl_gpio, 0); in gpio_store()
2031 if (rk312x->spk_ctl_gpio) { in gpio_store()
2032 gpiod_set_value(rk312x->spk_ctl_gpio, 1); in gpio_store()
2236 if (rk312x_priv->spk_ctl_gpio) in rk312x_remove()
2237 gpiod_set_value(rk312x_priv->spk_ctl_gpio, 0); in rk312x_remove()
2337 rk312x->spk_ctl_gpio = devm_gpiod_get_optional(&pdev->dev, "spk-ctl", in rk312x_platform_probe()
[all …]
H A Des8326.c54 struct gpio_desc *spk_ctl_gpio; member
105 if ((gpio & ES8326_CODEC_SET_SPK) && es8326->spk_ctl_gpio) in es8326_set_gpio()
106 gpiod_set_value(es8326->spk_ctl_gpio, level); in es8326_set_gpio()
852 es8326->spk_ctl_gpio = devm_gpiod_get_optional(&i2c->dev, in es8326_i2c_probe()
855 if (IS_ERR(es8326->spk_ctl_gpio)) in es8326_i2c_probe()
856 return PTR_ERR(es8326->spk_ctl_gpio); in es8326_i2c_probe()
H A Des8396.c219 struct gpio_desc *spk_ctl_gpio; member
2767 if (es8396->spk_ctl_gpio && es8396->aif2_select == 0) in es8396_aif1_mute()
2768 gpiod_set_value(es8396->spk_ctl_gpio, 0); in es8396_aif1_mute()
2773 if (es8396->spk_ctl_gpio) in es8396_aif1_mute()
2774 gpiod_set_value(es8396->spk_ctl_gpio, 1); in es8396_aif1_mute()
2790 if (es8396->spk_ctl_gpio && es8396->aif1_select == 0) in es8396_aif2_mute()
2791 gpiod_set_value(es8396->spk_ctl_gpio, 0); in es8396_aif2_mute()
2796 if (es8396->spk_ctl_gpio) in es8396_aif2_mute()
2797 gpiod_set_value(es8396->spk_ctl_gpio, 1); in es8396_aif2_mute()
3147 es8396->spk_ctl_gpio = devm_gpiod_get_optional(&i2c_client->dev, in es8396_i2c_probe()
[all …]
H A Drk817_codec.c91 struct gpio_desc *spk_ctl_gpio; member
240 rk817->spk_ctl_gpio) { in rk817_codec_ctl_gpio()
241 gpiod_set_value(rk817->spk_ctl_gpio, level); in rk817_codec_ctl_gpio()
1311 rk817->spk_ctl_gpio = devm_gpiod_get_optional(dev, "spk-ctl", in rk817_codec_parse_dt_property()
1313 if (!IS_ERR_OR_NULL(rk817->spk_ctl_gpio)) { in rk817_codec_parse_dt_property()
1315 desc_to_gpio(rk817->spk_ctl_gpio)); in rk817_codec_parse_dt_property()
H A Drk3308_codec.c157 struct gpio_desc *spk_ctl_gpio; member
988 if (rk3308->spk_ctl_gpio) in rk3308_speaker_ctl()
989 gpiod_direction_output(rk3308->spk_ctl_gpio, on); in rk3308_speaker_ctl()
991 if (rk3308->spk_ctl_gpio) in rk3308_speaker_ctl()
992 gpiod_direction_output(rk3308->spk_ctl_gpio, on); in rk3308_speaker_ctl()
4569 rk3308->spk_ctl_gpio = devm_gpiod_get_optional(&pdev->dev, "spk-ctl", in rk3308_platform_probe()
4572 if (!rk3308->spk_ctl_gpio) { in rk3308_platform_probe()
4574 } else if (IS_ERR(rk3308->spk_ctl_gpio)) { in rk3308_platform_probe()
4575 ret = PTR_ERR(rk3308->spk_ctl_gpio); in rk3308_platform_probe()
H A Drk312x_codec.h561 int spk_ctl_gpio; member