Home
last modified time | relevance | path

Searched refs:devices (Results 1 – 25 of 40) sorted by relevance

12

/hardware/qcom/audio/legacy/alsa_sound/
Dalsa_default.cpp197 static void switchDevice(alsa_handle_t *handle, uint32_t devices, uint32_t mode);
198 static char *getUCMDevice(uint32_t devices, int input, char *rxDevice);
392 void switchDevice(alsa_handle_t *handle, uint32_t devices, uint32_t mode) in switchDevice() argument
401 ALOGD("%s: device %d mode:%d", __FUNCTION__, devices, mode); in switchDevice()
404 if ((devices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) || in switchDevice()
405 (devices & AudioSystem::DEVICE_IN_WIRED_HEADSET)) { in switchDevice()
406 devices = devices | (AudioSystem::DEVICE_OUT_WIRED_HEADSET | in switchDevice()
408 } else if (devices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE) { in switchDevice()
409 devices = devices | (AudioSystem::DEVICE_OUT_WIRED_HEADPHONE | in switchDevice()
411 } else if (devices & AudioSystem::DEVICE_IN_BUILTIN_MIC) { in switchDevice()
[all …]
DAudioHardwareALSA.cpp721 AudioHardwareALSA::openOutputStream(uint32_t devices, in openOutputStream() argument
729 devices, *channels, *sampleRate); in openOutputStream()
738 if (devices & (devices - 1)) { in openOutputStream()
746 if((devices == AudioSystem::DEVICE_OUT_DIRECTOUTPUT) && in openOutputStream()
775 alsa_handle.devices = devices; in openOutputStream()
805 alsa_handle.devices = AudioSystem::DEVICE_OUT_PROXY; in openOutputStream()
828 err = out->set(format, channels, sampleRate, devices); in openOutputStream()
838 (devices == AudioSystem::DEVICE_OUT_AUX_DIGITAL)) { in openOutputStream()
844 alsa_handle.devices = devices; in openOutputStream()
891 mALSADevice->route(&(*it), devices, mode()); in openOutputStream()
[all …]
DAudioStreamInALSA.cpp144 if ((mHandle->devices == AudioSystem::DEVICE_IN_VOICE_CALL) && in read()
176 } else if(mHandle->devices == AudioSystem::DEVICE_IN_FM_RX) { in read()
178 } else if (mHandle->devices == AudioSystem::DEVICE_IN_FM_RX_A2DP) { in read()
193 if ((mHandle->devices == AudioSystem::DEVICE_IN_VOICE_CALL) && in read()
225 } else if(mHandle->devices == AudioSystem::DEVICE_IN_FM_RX) { in read()
227 } else if (mHandle->devices == AudioSystem::DEVICE_IN_FM_RX_A2DP) { in read()
259 if((mHandle->devices == AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET)|| in read()
260 (mHandle->devices == AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)){ in read()
294 if((mHandle->devices == AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET)|| in read()
295 (mHandle->devices == AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)){ in read()
Daudio_hw_hal.cpp516 uint32_t devices, in adev_open_output_session() argument
532 …out->qcom_out = qadev->hwif->openOutputSession(devices, format,&status,sessionId,samplingRate,chan… in adev_open_output_session()
554 audio_devices_t devices, in adev_open_output_stream() argument
569 devices = convert_audio_device(devices, HAL_API_REV_2_0, HAL_API_REV_1_0); in adev_open_output_stream()
572 out->qcom_out = qadev->hwif->openOutputStream(devices, in adev_open_output_stream()
622 audio_devices_t devices, in adev_open_input_stream() argument
638 devices = convert_audio_device(devices, HAL_API_REV_2_0, HAL_API_REV_1_0); in adev_open_input_stream()
640 in->qcom_in = qadev->hwif->openInputStream(devices, (int *)&config->format, in adev_open_input_stream()
DAudioHardwareALSA.h168 uint32_t devices; member
493 uint32_t devices,
504 uint32_t devices,
513 uint32_t devices,
/hardware/libhardware_legacy/audio/
Daudio_policy.conf33 devices AUDIO_DEVICE_OUT_SPEAKER
42 devices AUDIO_DEVICE_IN_BUILTIN_MIC
52 devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
60 devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
DAudioHardwareGeneric.cpp68 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
82 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); in openOutputStream()
102 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument
106 if (!AudioSystem::isInputDevice((AudioSystem::audio_devices)devices)) { in openInputStream()
122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); in openInputStream()
195 uint32_t devices, in set() argument
225 mDevice = devices; in set()
314 uint32_t devices, in set() argument
335 mDevice = devices; in set()
DAudioDumpInterface.cpp60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream()
100 devices, lFormat, lChannels, lRate); in openOutputStream()
126 AudioStreamIn* AudioDumpInterface::openInputStream(uint32_t devices, int *format, uint32_t *channel… in openInputStream() argument
134 …inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream()
166 devices, lFormat, lChannels, lRate); in openInputStream()
261 uint32_t devices, in AudioStreamOutDump() argument
266 mSampleRate(sampleRate), mFormat(format), mChannels(channels), mLatency(0), mDevice(devices), in AudioStreamOutDump()
422 uint32_t devices, in AudioStreamInDump() argument
427 mSampleRate(sampleRate), mFormat(format), mChannels(channels), mDevice(devices), in AudioStreamInDump()
DAudioHardwareGeneric.h45 uint32_t devices,
78 uint32_t devices,
121 uint32_t devices,
129 uint32_t devices,
DA2dpAudioInterface.cpp64 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
66 if (!audio_is_a2dp_out_device(devices)) { in openOutputStream()
67 ALOGV("A2dpAudioInterface::openOutputStream() open HW device: %x", devices); in openOutputStream()
68 return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream()
82 if ((err = out->set(devices, format, channels, sampleRate)) == NO_ERROR) { in openOutputStream()
107 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, in openInputStream() argument
110 …return mHardwareInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream()
DAudioDumpInterface.h39 uint32_t devices,
81 uint32_t devices,
122 uint32_t devices,
151 virtual AudioStreamIn* openInputStream(uint32_t devices, int *format, uint32_t *channels,
DAudioHardwareInterface.cpp152 AudioStreamOut* AudioHardwareInterface::openOutputStreamWithFlags(uint32_t devices, in openOutputStreamWithFlags() argument
159 return openOutputStream(devices, format, channels, sampleRate, status); in openOutputStreamWithFlags()
DAudioHardwareStub.cpp46 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, in openInputStream() argument
69 if (!AudioSystem::isInputDevice((AudioSystem::audio_devices)devices)) { in openInputStream()
Daudio_hw_hal.cpp488 audio_devices_t devices, in adev_open_output_stream() argument
503 devices = convert_audio_device(devices, HAL_API_REV_2_0, HAL_API_REV_1_0); in adev_open_output_stream()
505 out->legacy_out = ladev->hwif->openOutputStreamWithFlags(devices, flags, in adev_open_output_stream()
554 audio_devices_t devices, in adev_open_input_stream() argument
570 devices = convert_audio_device(devices, HAL_API_REV_2_0, HAL_API_REV_1_0); in adev_open_input_stream()
572 in->legacy_in = ladev->hwif->openInputStream(devices, (int *) &config->format, in adev_open_input_stream()
DA2dpAudioInterface.h56 uint32_t devices,
64 uint32_t devices,
DAudioHardwareStub.h80 uint32_t devices,
88 uint32_t devices,
/hardware/qcom/audio/hal/msm8960/
Dplatform.c609 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices) in platform_get_output_snd_device() argument
616 ALOGV("%s: enter: output devices(%#x)", __func__, devices); in platform_get_output_snd_device()
617 if (devices == AUDIO_DEVICE_NONE || in platform_get_output_snd_device()
618 devices & AUDIO_DEVICE_BIT_IN) { in platform_get_output_snd_device()
619 ALOGV("%s: Invalid output devices (%#x)", __func__, devices); in platform_get_output_snd_device()
624 if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_output_snd_device()
625 devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_output_snd_device()
634 } else if (devices & AUDIO_DEVICE_OUT_ALL_SCO) { in platform_get_output_snd_device()
640 } else if (devices & AUDIO_DEVICE_OUT_SPEAKER) { in platform_get_output_snd_device()
642 } else if (devices & AUDIO_DEVICE_OUT_EARPIECE) { in platform_get_output_snd_device()
[all …]
/hardware/intel/img/hwcomposer/merrifield/platforms/merrifield/
DAndroid.mk37 ../../common/devices/PhysicalDevice.cpp \
38 ../../common/devices/PrimaryDevice.cpp \
39 ../../common/devices/ExternalDevice.cpp \
106 $(LOCAL_PATH)/../../common/devices \
120 ../../common/devices/VirtualDevice.cpp
/hardware/intel/img/hwcomposer/merrifield/platforms/merrifield_plus/
DAndroid.mk37 ../../common/devices/PhysicalDevice.cpp \
38 ../../common/devices/PrimaryDevice.cpp \
39 ../../common/devices/ExternalDevice.cpp \
109 $(LOCAL_PATH)/../../common/devices \
124 ../../common/devices/VirtualDevice.cpp
/hardware/qcom/audio/hal/msm8974/
Dplatform.c590 (usecase->stream.out->devices == AUDIO_DEVICE_OUT_SPEAKER)) { in platform_send_gain_dep_cal()
1699 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices) in platform_get_output_snd_device() argument
1706 ALOGV("%s: enter: output devices(%#x)", __func__, devices); in platform_get_output_snd_device()
1707 if (devices == AUDIO_DEVICE_NONE || in platform_get_output_snd_device()
1708 devices & AUDIO_DEVICE_BIT_IN) { in platform_get_output_snd_device()
1709 ALOGV("%s: Invalid output devices (%#x)", __func__, devices); in platform_get_output_snd_device()
1713 if (popcount(devices) == 2) { in platform_get_output_snd_device()
1714 if (devices == (AUDIO_DEVICE_OUT_WIRED_HEADPHONE | in platform_get_output_snd_device()
1716 devices == (AUDIO_DEVICE_OUT_WIRED_HEADSET | in platform_get_output_snd_device()
1719 } else if (devices == (AUDIO_DEVICE_OUT_LINE | in platform_get_output_snd_device()
[all …]
/hardware/intel/img/hwcomposer/moorefield_hdmi/
DAndroid.mk45 common/devices/DummyDevice.cpp \
46 common/devices/PhysicalDevice.cpp \
47 common/devices/PrimaryDevice.cpp \
48 common/devices/ExternalDevice.cpp \
/hardware/qcom/audio/hal/
Daudio_hw.c428 usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND && in check_and_route_playback_usecases()
610 usecase->stream.out->devices); in select_devices()
611 in_snd_device = platform_get_input_snd_device(adev->platform, usecase->stream.out->devices); in select_devices()
612 usecase->devices = usecase->stream.out->devices; in select_devices()
625 ((vc_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) || in select_devices()
626 (usecase->devices == AUDIO_DEVICE_IN_VOICE_CALL))) { in select_devices()
633 if (hfp_usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) { in select_devices()
639 usecase->devices = usecase->stream.out->devices; in select_devices()
643 usecase->stream.out->devices); in select_devices()
653 usecase->devices = usecase->stream.in->device; in select_devices()
[all …]
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioHardwareInterface.h255 uint32_t devices,
261 uint32_t devices,
271 uint32_t devices,
/hardware/qcom/audio/hal/audio_extn/
Dext_speaker.c128 if (usecase->devices & AUDIO_DEVICE_OUT_EARPIECE) { in audio_extn_extspk_update()
133 if (usecase->devices & AUDIO_DEVICE_OUT_SPEAKER) { in audio_extn_extspk_update()
/hardware/ti/omap3/omx/system/src/openmax_il/perf/tests/
Darmtime218 cat /proc/uptime /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state >$my_log
225 cat /proc/uptime /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state >>$my_log

12