Lines Matching refs:snd_device

662 static struct operator_specific_device *get_operator_specific_device(snd_device_t snd_device)  in get_operator_specific_device()  argument
673 list_for_each(node, operator_specific_device_table[snd_device]) { in get_operator_specific_device()
683 static int get_operator_specific_device_acdb_id(snd_device_t snd_device) in get_operator_specific_device_acdb_id() argument
686 int ret = acdb_device_table[snd_device]; in get_operator_specific_device_acdb_id()
688 device = get_operator_specific_device(snd_device); in get_operator_specific_device_acdb_id()
695 static const char *get_operator_specific_device_mixer_path(snd_device_t snd_device) in get_operator_specific_device_mixer_path() argument
698 const char *ret = device_table[snd_device]; in get_operator_specific_device_mixer_path()
700 device = get_operator_specific_device(snd_device); in get_operator_specific_device_mixer_path()
716 snd_device_t snd_device = SND_DEVICE_NONE; in platform_set_echo_reference() local
726 snd_device = platform_get_output_snd_device(adev->platform, out_device); in platform_set_echo_reference()
727 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device); in platform_set_echo_reference()
1299 const char *platform_get_snd_device_name(snd_device_t snd_device) in platform_get_snd_device_name() argument
1301 if (snd_device >= SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX) { in platform_get_snd_device_name()
1302 if (operator_specific_device_table[snd_device] != NULL) { in platform_get_snd_device_name()
1303 return get_operator_specific_device_mixer_path(snd_device); in platform_get_snd_device_name()
1305 return device_table[snd_device]; in platform_get_snd_device_name()
1310 int platform_get_snd_device_name_extn(void *platform, snd_device_t snd_device, in platform_get_snd_device_name_extn() argument
1317 strlcpy(device_name, platform_get_snd_device_name(snd_device), in platform_get_snd_device_name_extn()
1319 } else if (snd_device >= SND_DEVICE_MIN && snd_device < SND_DEVICE_MAX) { in platform_get_snd_device_name_extn()
1320 if (operator_specific_device_table[snd_device] != NULL) { in platform_get_snd_device_name_extn()
1321 strlcpy(device_name, get_operator_specific_device_mixer_path(snd_device), in platform_get_snd_device_name_extn()
1324 strlcpy(device_name, device_table[snd_device], DEVICE_NAME_MAX_SIZE); in platform_get_snd_device_name_extn()
1326 hw_info_append_hw_type(my_data->hw_info, snd_device, device_name); in platform_get_snd_device_name_extn()
1337 snd_device_t snd_device __unused) in platform_check_and_set_playback_backend_cfg()
1344 snd_device_t snd_device __unused) in platform_check_and_set_capture_backend_cfg()
1361 snd_device_t snd_device) in platform_add_backend_name() argument
1366 if ((snd_device < SND_DEVICE_MIN) || (snd_device >= SND_DEVICE_MAX)) { in platform_add_backend_name()
1367 ALOGE("%s: Invalid snd_device = %d", __func__, snd_device); in platform_add_backend_name()
1371 const char * suffix = backend_table[snd_device]; in platform_add_backend_name()
1479 int platform_get_effect_config_data(snd_device_t snd_device, in platform_get_effect_config_data() argument
1485 if ((snd_device < SND_DEVICE_IN_BEGIN) || (snd_device >= SND_DEVICE_MAX) || in platform_get_effect_config_data()
1488 __func__, snd_device, effect_type); in platform_get_effect_config_data()
1500 __func__, snd_device, in platform_get_effect_config_data()
1501 effect_config_table[GET_IN_DEVICE_INDEX(snd_device)][effect_type].module_id); in platform_get_effect_config_data()
1502 *effect_config = effect_config_table[GET_IN_DEVICE_INDEX(snd_device)][effect_type]; in platform_get_effect_config_data()
1508 void platform_add_external_specific_device(snd_device_t snd_device __unused, in platform_add_external_specific_device()
1515 void platform_add_operator_specific_device(snd_device_t snd_device, in platform_add_operator_specific_device() argument
1522 if (operator_specific_device_table[snd_device] == NULL) { in platform_add_operator_specific_device()
1523 operator_specific_device_table[snd_device] = in platform_add_operator_specific_device()
1525 list_init(operator_specific_device_table[snd_device]); in platform_add_operator_specific_device()
1534 list_add_tail(operator_specific_device_table[snd_device], &device->list); in platform_add_operator_specific_device()
1537 platform_get_snd_device_name(snd_device), operator, mixer_path, acdb_id); in platform_add_operator_specific_device()
1541 int platform_set_snd_device_acdb_id(snd_device_t snd_device, unsigned int acdb_id) in platform_set_snd_device_acdb_id() argument
1545 if ((snd_device < SND_DEVICE_MIN) || (snd_device >= SND_DEVICE_MAX)) { in platform_set_snd_device_acdb_id()
1547 __func__, snd_device); in platform_set_snd_device_acdb_id()
1552 platform_get_snd_device_name(snd_device), acdb_device_table[snd_device], acdb_id); in platform_set_snd_device_acdb_id()
1553 acdb_device_table[snd_device] = acdb_id; in platform_set_snd_device_acdb_id()
1599 int platform_set_effect_config_data(snd_device_t snd_device,
1605 if ((snd_device < SND_DEVICE_IN_BEGIN) || (snd_device >= SND_DEVICE_MAX) ||
1608 __func__, snd_device, effect_type);
1616 effect_config_table[GET_IN_DEVICE_INDEX(snd_device)][effect_type] = effect_config;
1635 int platform_get_snd_device_acdb_id(snd_device_t snd_device)
1637 if ((snd_device < SND_DEVICE_MIN) || (snd_device >= SND_DEVICE_MAX)) {
1638 ALOGE("%s: Invalid snd_device = %d", __func__, snd_device);
1646 snd_device = audio_extn_get_spkr_prot_snd_device(snd_device);
1648 if (operator_specific_device_table[snd_device] != NULL)
1649 return get_operator_specific_device_acdb_id(snd_device);
1651 return acdb_device_table[snd_device];
1654 int platform_send_audio_calibration(void *platform, snd_device_t snd_device)
1660 acdb_dev_id = platform_get_snd_device_acdb_id(snd_device);
1663 __func__, snd_device);
1667 __func__, snd_device, acdb_dev_id);
1668 if (snd_device >= SND_DEVICE_OUT_BEGIN && snd_device < SND_DEVICE_OUT_END)
1674 (snd_device == SND_DEVICE_IN_VOICE_SPEAKER_MIC_HFP) &&
1682 (snd_device == SND_DEVICE_OUT_VOICE_SPEAKER_HFP) &&
1686 __func__, snd_device, acdb_dev_id);
1760 snd_device_t snd_device __unused,
1880 int platform_can_split_snd_device(snd_device_t snd_device,
1895 if (snd_device == SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES &&
1901 } else if (snd_device == SND_DEVICE_OUT_SPEAKER_AND_LINE &&
1916 snd_device_t snd_device = SND_DEVICE_NONE; local
1928 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
1931 snd_device = SND_DEVICE_OUT_SPEAKER_AND_LINE;
1934 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES;
1937 snd_device = SND_DEVICE_OUT_SPEAKER_AND_HDMI;
1940 snd_device = SND_DEVICE_OUT_SPEAKER_AND_USB_HEADSET;
1943 snd_device = SND_DEVICE_OUT_SPEAKER_AND_BT_A2DP;
1946 snd_device = SND_DEVICE_OUT_SPEAKER_SAFE_AND_BT_A2DP;
1951 if (snd_device != SND_DEVICE_NONE) {
1968 snd_device = SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES;
1971 snd_device = SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES;
1974 snd_device = SND_DEVICE_OUT_VOICE_TTY_HCO_HANDSET;
1981 snd_device = SND_DEVICE_OUT_VOICE_LINE;
1983 snd_device = SND_DEVICE_OUT_VOICE_HEADSET;
1985 snd_device = SND_DEVICE_OUT_VOICE_HEADPHONES;
1989 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
1991 snd_device = SND_DEVICE_OUT_BT_SCO;
1993 snd_device = SND_DEVICE_OUT_BT_A2DP;
1996 snd_device = SND_DEVICE_OUT_VOICE_SPEAKER_HFP;
1998 snd_device = SND_DEVICE_OUT_VOICE_SPEAKER;
2001 snd_device = SND_DEVICE_OUT_USB_HEADSET;
2003 snd_device = SND_DEVICE_OUT_VOICE_HANDSET;
2005 snd_device = SND_DEVICE_OUT_VOICE_TX;
2007 if (snd_device != SND_DEVICE_NONE) {
2014 snd_device = SND_DEVICE_OUT_HEADPHONES;
2016 snd_device = SND_DEVICE_OUT_LINE;
2025 snd_device = SND_DEVICE_OUT_SPEAKER_REVERSE;
2027 snd_device = SND_DEVICE_OUT_SPEAKER;
2030 snd_device = SND_DEVICE_OUT_BT_SCO_WB;
2032 snd_device = SND_DEVICE_OUT_BT_SCO;
2034 snd_device = SND_DEVICE_OUT_BT_A2DP;
2036 snd_device = SND_DEVICE_OUT_HDMI ;
2039 snd_device = SND_DEVICE_OUT_USB_HEADSET;
2041 snd_device = SND_DEVICE_OUT_HANDSET;
2046 ALOGV("%s: exit: snd_device(%s)", __func__, device_table[snd_device]);
2047 return snd_device;
2057 snd_device_t snd_device = SND_DEVICE_NONE; local
2064 snd_device = SND_DEVICE_IN_SPEAKER_QMIC_AEC_NS;
2067 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS_BROADSIDE;
2069 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS;
2073 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC_NS;
2077 snd_device = SND_DEVICE_IN_HANDSET_DMIC_AEC_NS;
2080 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC_NS;
2089 return snd_device;
2098 snd_device_t snd_device = SND_DEVICE_NONE; local
2106 snd_device = SND_DEVICE_IN_SPEAKER_QMIC_AEC_NS;
2109 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS_BROADSIDE;
2111 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_AEC_NS;
2115 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC_NS;
2118 snd_device = SND_DEVICE_IN_HANDSET_DMIC_AEC_NS;
2121 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC_NS;
2123 snd_device = SND_DEVICE_IN_HEADSET_MIC_FLUENCE;
2131 snd_device = SND_DEVICE_IN_SPEAKER_QMIC_AEC;
2134 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_AEC_BROADSIDE;
2136 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_AEC;
2140 snd_device = SND_DEVICE_IN_SPEAKER_MIC_AEC;
2143 snd_device = SND_DEVICE_IN_HANDSET_DMIC_AEC;
2146 snd_device = SND_DEVICE_IN_HANDSET_MIC_AEC;
2148 snd_device = SND_DEVICE_IN_HEADSET_MIC_FLUENCE;
2156 snd_device = SND_DEVICE_IN_SPEAKER_QMIC_NS;
2159 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_NS_BROADSIDE;
2161 snd_device = SND_DEVICE_IN_SPEAKER_DMIC_NS;
2165 snd_device = SND_DEVICE_IN_SPEAKER_MIC_NS;
2168 snd_device = SND_DEVICE_IN_HANDSET_DMIC_NS;
2171 snd_device = SND_DEVICE_IN_HANDSET_MIC_NS;
2173 snd_device = SND_DEVICE_IN_HEADSET_MIC_FLUENCE;
2179 return snd_device;
2190 snd_device_t snd_device = SND_DEVICE_NONE; local
2213 snd_device = SND_DEVICE_IN_VOICE_TTY_FULL_HEADSET_MIC;
2216 snd_device = SND_DEVICE_IN_VOICE_TTY_VCO_HANDSET_MIC;
2219 snd_device = SND_DEVICE_IN_VOICE_TTY_HCO_HEADSET_MIC;
2233 snd_device = SND_DEVICE_IN_HANDSET_MIC;
2237 snd_device = SND_DEVICE_IN_VOICE_DMIC;
2241 snd_device = SND_DEVICE_IN_VOICE_HEADSET_MIC;
2247 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB_NREC;
2249 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
2252 snd_device = SND_DEVICE_IN_BT_SCO_MIC_NREC;
2254 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
2262 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_QMIC;
2266 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC_BROADSIDE;
2268 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_DMIC;
2271 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC;
2273 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC_HFP;
2276 snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC;
2280 snd_device = SND_DEVICE_IN_VOICE_RX;
2286 snd_device = SND_DEVICE_IN_HANDSET_STEREO_DMIC;
2288 snd_device = SND_DEVICE_IN_CAMCORDER_MIC;
2293 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_STEREO;
2296 snd_device = SND_DEVICE_IN_VOICE_REC_MIC_NS;
2299 snd_device = SND_DEVICE_IN_VOICE_REC_DMIC_FLUENCE;
2302 snd_device = SND_DEVICE_IN_VOICE_REC_MIC;
2311 snd_device = get_snd_device_for_voice_comm(my_data, in,
2315 snd_device = SND_DEVICE_IN_CAPTURE_FM;
2321 if (snd_device != SND_DEVICE_NONE) {
2331 snd_device = SND_DEVICE_IN_HANDSET_STEREO_DMIC;
2333 snd_device = SND_DEVICE_IN_HANDSET_MIC;
2335 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
2337 snd_device = SND_DEVICE_IN_HEADSET_MIC;
2341 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB_NREC;
2343 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
2346 snd_device = SND_DEVICE_IN_BT_SCO_MIC_NREC;
2348 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
2351 snd_device = SND_DEVICE_IN_HDMI_MIC;
2354 snd_device = SND_DEVICE_IN_USB_HEADSET_MIC;
2356 snd_device = SND_DEVICE_IN_CAPTURE_FM;
2360 snd_device = SND_DEVICE_IN_HANDSET_MIC;
2364 snd_device = SND_DEVICE_IN_HANDSET_MIC;
2366 snd_device = SND_DEVICE_IN_HEADSET_MIC;
2369 snd_device = SND_DEVICE_IN_SPEAKER_STEREO_DMIC;
2371 snd_device = SND_DEVICE_IN_SPEAKER_MIC;
2374 snd_device = SND_DEVICE_IN_HANDSET_MIC;
2378 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB_NREC;
2380 snd_device = SND_DEVICE_IN_BT_SCO_MIC_WB;
2383 snd_device = SND_DEVICE_IN_BT_SCO_MIC_NREC;
2385 snd_device = SND_DEVICE_IN_BT_SCO_MIC;
2388 snd_device = SND_DEVICE_IN_HDMI_MIC;
2391 snd_device = SND_DEVICE_IN_USB_HEADSET_MIC;
2395 snd_device = SND_DEVICE_IN_HANDSET_MIC;
2399 ALOGV("%s: exit: in_snd_device(%s)", __func__, device_table[snd_device]);
2400 return snd_device;
2879 snd_device_t snd_device __unused,
2886 int platform_get_snd_device_backend_index(snd_device_t snd_device __unused)
2977 snd_device_t snd_device __unused,