• Home
  • Raw
  • Download

Lines Matching refs:devices

1886 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices)
1893 ALOGV("%s: enter: output devices(%#x)", __func__, devices);
1894 if (devices == AUDIO_DEVICE_NONE ||
1895 devices & AUDIO_DEVICE_BIT_IN) {
1896 ALOGV("%s: Invalid output devices (%#x)", __func__, devices);
1900 if (popcount(devices) == 2) {
1901 if (devices == (AUDIO_DEVICE_OUT_WIRED_HEADPHONE |
1904 } else if (devices == (AUDIO_DEVICE_OUT_LINE |
1907 } else if (devices == (AUDIO_DEVICE_OUT_WIRED_HEADSET |
1910 } else if (devices == (AUDIO_DEVICE_OUT_AUX_DIGITAL |
1913 } else if (devices == (AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET |
1916 } else if ((devices & AUDIO_DEVICE_OUT_SPEAKER) &&
1917 (devices & AUDIO_DEVICE_OUT_ALL_A2DP)) {
1919 } else if ((devices & AUDIO_DEVICE_OUT_SPEAKER_SAFE) &&
1920 (devices & AUDIO_DEVICE_OUT_ALL_A2DP)) {
1923 ALOGE("%s: Invalid combo device(%#x)", __func__, devices);
1931 if (popcount(devices) != 1) {
1932 ALOGE("%s: Invalid output devices(%#x)", __func__, devices);
1937 if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
1938 devices & AUDIO_DEVICE_OUT_WIRED_HEADSET ||
1939 devices & AUDIO_DEVICE_OUT_LINE) {
1955 } else if (devices & AUDIO_DEVICE_OUT_LINE) {
1957 } else if (devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) {
1962 } else if (devices & AUDIO_DEVICE_OUT_ALL_SCO) {
1967 } else if (devices & AUDIO_DEVICE_OUT_ALL_A2DP) {
1969 } else if (devices & AUDIO_DEVICE_OUT_SPEAKER) {
1974 } else if (devices & AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET ||
1975 devices & AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET) {
1977 } else if (devices & AUDIO_DEVICE_OUT_EARPIECE) {
1979 } else if (devices & AUDIO_DEVICE_OUT_TELEPHONY_TX)
1987 if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE ||
1988 devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) {
1990 } else if (devices & AUDIO_DEVICE_OUT_LINE) {
1992 } else if (devices & AUDIO_DEVICE_OUT_SPEAKER) {
2003 } else if (devices & AUDIO_DEVICE_OUT_ALL_SCO) {
2008 } else if (devices & AUDIO_DEVICE_OUT_ALL_A2DP) {
2010 } else if (devices & AUDIO_DEVICE_OUT_AUX_DIGITAL) {
2012 } else if (devices & AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET ||
2013 devices & AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET) {
2015 } else if (devices & AUDIO_DEVICE_OUT_EARPIECE) {
2018 ALOGE("%s: Unknown device(s) %#x", __func__, devices);
2748 usecase->stream.out->devices & AUDIO_DEVICE_OUT_SPEAKER) {