Home
last modified time | relevance | path

Searched refs:jack_name (Results 1 – 10 of 10) sorted by relevance

/external/adhd/cras/src/server/
Dcras_alsa_ucm_section.c18 free((void *)section->jack_name); in ucm_section_free()
37 const char *jack_name, in ucm_section_create() argument
61 if (jack_name) { in ucm_section_create()
62 section->jack_name = strdup(jack_name); in ucm_section_create()
63 if (!section->jack_name) in ucm_section_create()
125 syslog(LOG_DEBUG, " jack: %s %s", section->jack_name, in ucm_section_dump()
Dcras_alsa_ucm_section.h29 const char *jack_name; member
59 const char *jack_name,
Dcras_alsa_jack.c585 r = create_jack_for_gpio(jack_list, pathname, section->jack_name, in open_and_monitor_gpio_with_section()
662 if (strcmp(dev_name, data->section->jack_name)) { in gpio_switch_list_with_section()
679 static int jack_matches_regex(const char *jack_name, const char *re) in jack_matches_regex() argument
691 rc = regexec(&regex, jack_name, ARRAY_SIZE(m), m, 0) == 0; in jack_matches_regex()
739 static int is_jack_hdmi_dp(const char *jack_name) in is_jack_hdmi_dp() argument
744 return !!strstr(jack_name, hdmi_dp); in is_jack_hdmi_dp()
863 static int is_jack_uac2(const char *jack_name, in is_jack_uac2() argument
866 return jack_matches_regex(jack_name, direction == CRAS_STREAM_OUTPUT ? in is_jack_uac2()
1001 snd_ctl_elem_id_set_name(elem_id, section->jack_name); in find_hctl_jack_for_section()
1006 syslog(LOG_DEBUG, "Found Jack: %s for %s", section->jack_name, in find_hctl_jack_for_section()
[all …]
Dcras_alsa_io.c1503 const char *jack_name; in jack_output_plug_event() local
1510 jack_name = cras_alsa_jack_get_name(jack); in jack_output_plug_event()
1511 if (!strcmp(jack_name, "Speaker Phantom Jack")) in jack_output_plug_event()
1512 jack_name = INTERNAL_SPEAKER; in jack_output_plug_event()
1519 jack_name); in jack_output_plug_event()
1522 node = new_output(aio, NULL, jack_name); in jack_output_plug_event()
1534 jack_name, node->base.name); in jack_output_plug_event()
1543 syslog(LOG_DEBUG, "%s plugged: %d, %s", jack_name, plugged, in jack_output_plug_event()
1576 const char *jack_name; in jack_input_plug_event() local
1582 jack_name = cras_alsa_jack_get_name(jack); in jack_input_plug_event()
[all …]
Dcras_alsa_jack.h153 int cras_alsa_jack_exists(unsigned int card_index, const char *jack_name);
Dcras_alsa_ucm.c894 const char *jack_name = NULL; in ucm_parse_device_section() local
939 jack_name = jack_dev; in ucm_parse_device_section()
942 jack_name = jack_control; in ucm_parse_device_section()
947 dependent_dev_idx, dir, jack_name, in ucm_parse_device_section()
/external/adhd/cras/tools/
Dcreate_volume_curve.py49 jack_name = raw_input(">");
57 GenerateSimpleStep(jack_name, max_volume, step_size)
59 GenerateExplicit(jack_name)
69 GenerateTwoSlope(jack_name, max_volume, step_1, step_2, pivot_point)
/external/adhd/cras/src/tests/
Dalsa_ucm_unittest.cc1190 static const char* jack_name = "my-card-name Headset Jack"; in TEST() local
1200 jack_name, jack_type); in TEST()
1206 EXPECT_NE(jack_name, section->jack_name); in TEST()
1328 EXPECT_EQ(0, strcmp(section->jack_name, values[1])); in TEST()
1346 EXPECT_EQ(NULL, section->jack_name); in TEST()
1364 EXPECT_EQ(0, strcmp(section->jack_name, values[1])); in TEST()
1377 EXPECT_EQ(NULL, section->jack_name); in TEST()
1393 EXPECT_EQ(NULL, section->jack_name); in TEST()
Dalsa_io_unittest.cc822 static const char* jack_name = "jack"; in TEST() local
834 cras_alsa_jack_get_name_ret_value = jack_name; in TEST()
835 ucm_get_dsp_name_for_dev_values[jack_name] = "override_dsp"; in TEST()
1117 static const char* jack_name = "TestCard - Headset Jack"; in TEST() local
1152 jack_name, "hctl"); in TEST()
1202 cras_alsa_jack_get_name_ret_value = jack_name; in TEST()
1255 static const char* jack_name = "TestCard - Headset Jack"; in TEST() local
1272 jack_name, "hctl"); in TEST()
1297 static const char* jack_name = "TestCard - Headset Jack"; in TEST() local
1334 jack_name, "hctl"); in TEST()
[all …]
Dalsa_jack_unittest.cc383 const char* jack_name) { in run_gpio_jack_test() argument
395 gpio_switch_list_for_each_dev_names.push_back(jack_name); in run_gpio_jack_test()