• Home
  • Raw
  • Download

Lines Matching refs:gpio

90 		struct cras_gpio_jack gpio;  member
198 free(jack->gpio.device_name); in cras_free_jack()
199 if (jack->gpio.fd >= 0) { in cras_free_jack()
201 cras_system_rm_select_fd(jack->gpio.fd); in cras_free_jack()
202 close(jack->gpio.fd); in cras_free_jack()
223 return jack->gpio.current_state; in get_jack_current_state()
258 jack->gpio.current_state = 0; in check_jack_edid()
331 jack->gpio.current_state = 0; in jack_state_change_cb()
354 int r = sys_input_get_switch_state(jack->gpio.fd, in gpio_switch_initial_state()
355 jack->gpio.switch_event, &v); in gpio_switch_initial_state()
356 jack->gpio.current_state = r == 0 ? v : 0; in gpio_switch_initial_state()
390 r = gpio_switch_read(jack->gpio.fd, ev, in gpio_switch_callback()
396 if (is_audio_switch_event(&ev[i], jack->gpio.switch_event)) { in gpio_switch_callback()
397 jack->gpio.current_state = ev[i].value; in gpio_switch_callback()
455 jack->gpio.fd = gpio_switch_open(pathname); in create_jack_for_gpio()
456 if (jack->gpio.fd == -1) { in create_jack_for_gpio()
461 jack->gpio.switch_event = switch_event; in create_jack_for_gpio()
463 jack->gpio.device_name = strdup(dev_name); in create_jack_for_gpio()
464 if (!jack->gpio.device_name) { in create_jack_for_gpio()
469 if (!strstr(jack->gpio.device_name, card_name) || in create_jack_for_gpio()
470 (gpio_switch_eviocgbit(jack->gpio.fd, bits, sizeof(bits)) < 0) || in create_jack_for_gpio()
500 r = sys_input_get_switch_state(jack->gpio.fd, switch_event, in cras_complete_gpio_jack()
501 &jack->gpio.current_state); in cras_complete_gpio_jack()
506 r = cras_system_add_select_fd(jack->gpio.fd, gpio_switch_callback, jack, in cras_complete_gpio_jack()
545 jack_list->ucm, jack->gpio.device_name, direction); in open_and_monitor_gpio()
553 (strstr(jack->gpio.device_name, "Headphone") || in open_and_monitor_gpio()
554 strstr(jack->gpio.device_name, "Headset"))) in open_and_monitor_gpio()
558 strstr(jack->gpio.device_name, "HDMI")) in open_and_monitor_gpio()
787 is_jack_hdmi_dp((*result_jack)->gpio.device_name)) in find_gpio_jacks()
1170 return jack->gpio.device_name; in cras_alsa_jack_get_name()