Home
last modified time | relevance | path

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

12345

/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()
/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,
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,
DA2dpAudioInterface.cpp65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) in openOutputStream() argument
67 if (!audio_is_a2dp_out_device(devices)) { in openOutputStream()
68 ALOGV("A2dpAudioInterface::openOutputStream() open HW device: %x", devices); in openOutputStream()
69 return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); in openOutputStream()
83 if ((err = out->set(devices, format, channels, sampleRate)) == NO_ERROR) { in openOutputStream()
108 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, in openInputStream() argument
111 …return mHardwareInterface->openInputStream(devices, format, channels, sampleRate, status, acoustic… in openInputStream()
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()
/hardware/interfaces/thermal/1.0/
DIThermal.hal29 * devices (such as CPUs, GPUs and etc.) in the list must be kept
31 * they go offline, if these devices exist on boot. The method
59 * Retrieves the cooling devices information.
64 * @return devices If status code is SUCCESS, it's filled with the current
66 * devices in the list must be kept the same regardless the number
67 * of calls to this method even if they go offline, if these devices
69 * the list such cooling devices.
76 generates (ThermalStatus status, vec<CoolingDevice> devices);
/hardware/interfaces/camera/device/
DREADME.md7 individual camera devices. Instances of camera.device HAL interface can be obtained
17 [source.android.com](http://source.android.com/devices/camera/index.html).
23 HIDL version of the legacy camera device HAL. Intended as a shim for devices
26 May be used in HIDL passthrough mode for devices upgrading to the Android O
27 release; must be used in binderized mode for devices launching in the O release.
29 It is strongly recommended to not use this interface for new devices, as new
30 devices may not use this interface starting with the Android P release, and all
59 May be used in passthrough mode for devices upgrading to the Android O release;
60 must be used in binderized mode for all new devices launching with Android O or
/hardware/qcom/audio/hal/msm8960/
Dplatform.c642 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices) in platform_get_output_snd_device() argument
649 ALOGV("%s: enter: output devices(%#x)", __func__, devices); in platform_get_output_snd_device()
650 if (devices == AUDIO_DEVICE_NONE || in platform_get_output_snd_device()
651 devices & AUDIO_DEVICE_BIT_IN) { in platform_get_output_snd_device()
652 ALOGV("%s: Invalid output devices (%#x)", __func__, devices); in platform_get_output_snd_device()
657 if (devices & AUDIO_DEVICE_OUT_WIRED_HEADPHONE || in platform_get_output_snd_device()
658 devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) { in platform_get_output_snd_device()
665 else if (devices & AUDIO_DEVICE_OUT_WIRED_HEADSET) in platform_get_output_snd_device()
669 } else if (devices & AUDIO_DEVICE_OUT_ALL_SCO) { in platform_get_output_snd_device()
675 } else if (devices & AUDIO_DEVICE_OUT_SPEAKER) { in platform_get_output_snd_device()
[all …]
/hardware/interfaces/thermal/2.0/
DIThermal.hal36 * devices (such as CPUs, GPUs and etc.) in the list must be kept
38 * they go offline, if these devices exist on boot. The method
54 * devices (such as CPUs, GPUs and etc.) in the list must be kept
56 * they go offline, if these devices exist on boot. The method
102 * Retrieves the cooling devices information.
110 * @return devices If status code is SUCCESS, it's filled with the current
112 * devices in the list must be kept the same regardless of the number
113 * of calls to this method even if they go offline, if these devices
115 * the list such cooling devices.
118 generates (ThermalStatus status, vec<CoolingDevice> devices);
/hardware/interfaces/camera/common/1.0/
Dtypes.hal129 * At startup, the camera service must assume all internal camera devices listed
132 * service of any initially NOT_PRESENT internal devices, and of any PRESENT
133 * external camera devices, as soon as the camera service has called
155 * By default, the framework must assume all devices returned by
186 * external camera devices when they are initially connected.
224 * for other previously-on torch modes if HAL cannot keep multiple devices'
263 * and any usage conflicts between multiple camera devices.
278 * combination of camera devices exposed by the HAL where the sum of
286 * of camera devices with a total resource cost > 100. This may succeed or
288 * supported due to resource constraints from having multiple open devices
[all …]
/hardware/interfaces/audio/core/all-versions/default/
DStream.cpp253 hidl_vec<DeviceAddress> devices; in getDevices() local
255 devices.resize(1); in getDevices()
256 devices[0].device = static_cast<AudioDevice>(device); in getDevices()
258 _hidl_cb(retval, devices); in getDevices()
262 Return<Result> Stream::setDevices(const hidl_vec<DeviceAddress>& devices) { in setDevices() argument
264 if (devices.size() > 1) { in setDevices()
268 if (devices.size() == 1) { in setDevices()
269 address = devices[0]; in setDevices()
/hardware/interfaces/camera/provider/
DREADME.md7 query, and open individual camera devices.
9 It also allows for direct control of the flash unit of camera devices that have
13 [source.android.com](http://source.android.com/devices/camera/index.html).
/hardware/interfaces/camera/
DREADME.md7 operate camera devices available on the device.
12 [source.android.com](http://source.android.com/devices/camera/index.html).
/hardware/qcom/audio/hal/msm8916/
Dplatform.c1886 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 |
[all …]
/hardware/qcom/audio/hal/
Daudio_hw.c672 out_device = voip_usecase->stream.out->devices; in enable_audio_route()
675 out_device = adev->primary_output->devices; in enable_audio_route()
680 out_device = uinfo->stream.out->devices; in enable_audio_route()
1084 audio_devices_t a1 = uc->stream.out->devices; in derive_playback_snd_device()
1085 audio_devices_t a2 = new_uc->stream.out->devices; in derive_playback_snd_device()
1173 (usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND || in check_and_route_playback_usecases()
1174 usecase->devices & (AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_USB_HEADSET)) && in check_and_route_playback_usecases()
1246 usecase->devices == AUDIO_DEVICE_IN_VOICE_CALL) || in check_and_route_capture_usecases()
1492 if ((usecase->stream.out->devices & AUDIO_DEVICE_OUT_ALL_A2DP) && in force_device_switch()
1618 usecase->stream.out->devices); in select_devices_with_force_switch()
[all …]
/hardware/interfaces/camera/provider/2.4/
DICameraProvider.hal25 * Camera provider HAL, which enumerates the available individual camera devices
37 * - <type> is the type of devices this provider knows about, such as
52 * Or, for external devices, a unique serial number (if possible) that can be
85 * Retrieve all vendor tags supported by devices discoverable through this
105 * camera provider. These devices can then be accessed via the hardware
108 * External camera devices (camera facing EXTERNAL) must be reported through
109 * the device status change callback, not in this list. Only devices with
127 * Returns if the camera devices known to this camera provider support
142 * @return support Whether the camera devices known to this provider
DICameraProviderCallback.hal34 * the camera service must assume that all internal camera devices are in
38 * initially NOT_PRESENT devices, and of any external camera devices that
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioHardwareInterface.h254 uint32_t devices,
260 uint32_t devices,
270 uint32_t devices,
/hardware/qcom/audio/hal/msm8974/
Dplatform.c1078 audio_devices_t dev = usecase->stream.out->devices; in platform_send_gain_dep_cal()
2881 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices) in platform_get_output_snd_device() argument
2888 ALOGV("%s: enter: output devices(%#x)", __func__, devices); in platform_get_output_snd_device()
2889 if (devices == AUDIO_DEVICE_NONE || in platform_get_output_snd_device()
2890 devices & AUDIO_DEVICE_BIT_IN) { in platform_get_output_snd_device()
2891 ALOGV("%s: Invalid output devices (%#x)", __func__, devices); in platform_get_output_snd_device()
2895 if (popcount(devices) == 2) { in platform_get_output_snd_device()
2896 if (devices == (AUDIO_DEVICE_OUT_WIRED_HEADPHONE | in platform_get_output_snd_device()
2898 devices == (AUDIO_DEVICE_OUT_WIRED_HEADSET | in platform_get_output_snd_device()
2901 } else if (devices == (AUDIO_DEVICE_OUT_LINE | in platform_get_output_snd_device()
[all …]

12345