/hardware/libhardware_legacy/audio/ |
H A D | AudioHardwareGeneric.cpp | 68 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 82 status_t lStatus = out->set(this, mFd, devices, format, channels, sampleRate); 102 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, 106 if (!AudioSystem::isInputDevice((AudioSystem::audio_devices)devices)) { 122 status_t lStatus = in->set(this, mFd, devices, format, channels, sampleRate, acoustics); 195 uint32_t devices, 225 mDevice = devices; 314 uint32_t devices, 335 mDevice = devices; 67 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 101 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) argument 192 set( AudioHardwareGeneric *hw, int fd, uint32_t devices, int *pFormat, uint32_t *pChannels, uint32_t *pRate) argument 311 set( AudioHardwareGeneric *hw, int fd, uint32_t devices, int *pFormat, uint32_t *pChannels, uint32_t *pRate, AudioSystem::audio_in_acoustics acoustics) argument
|
H A D | AudioHardwareStub.cpp | 46 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 65 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, 69 if (!AudioSystem::isInputDevice((AudioSystem::audio_devices)devices)) { 45 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 64 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) argument
|
H A D | A2dpAudioInterface.cpp | 64 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 66 if (!audio_is_a2dp_device(devices)) { 67 ALOGV("A2dpAudioInterface::openOutputStream() open HW device: %x", devices); 68 return mHardwareInterface->openOutputStream(devices, format, channels, sampleRate, status); 82 if ((err = out->set(devices, format, channels, sampleRate)) == NO_ERROR) { 107 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, 110 return mHardwareInterface->openInputStream(devices, format, channels, sampleRate, status, acoustics); 63 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 106 openInputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) argument
|
H A D | AudioDumpInterface.cpp | 60 uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) 68 outFinal = mFinalInterface->openOutputStream(devices, format, channels, sampleRate, status); 100 devices, lFormat, lChannels, lRate); 126 AudioStreamIn* AudioDumpInterface::openInputStream(uint32_t devices, int *format, uint32_t *channels, argument 134 inFinal = mFinalInterface->openInputStream(devices, format, channels, sampleRate, status, acoustics); 166 devices, lFormat, lChannels, lRate); 261 uint32_t devices, 266 mSampleRate(sampleRate), mFormat(format), mChannels(channels), mLatency(0), mDevice(devices), 422 uint32_t devices, 427 mSampleRate(sampleRate), mFormat(format), mChannels(channels), mDevice(devices), 59 openOutputStream( uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status) argument 258 AudioStreamOutDump(AudioDumpInterface *interface, int id, AudioStreamOut* finalStream, uint32_t devices, int format, uint32_t channels, uint32_t sampleRate) argument 419 AudioStreamInDump(AudioDumpInterface *interface, int id, AudioStreamIn* finalStream, uint32_t devices, int format, uint32_t channels, uint32_t sampleRate) argument [all...] |
H A D | audio_hw_hal.cpp | 64 /* output devices */ 79 /* input devices */ 488 audio_devices_t devices, 502 devices = convert_audio_device(devices, HAL_API_REV_2_0, HAL_API_REV_1_0); 504 out->legacy_out = ladev->hwif->openOutputStream(devices, (int *) &config->format, 552 audio_devices_t devices, 565 devices = convert_audio_device(devices, HAL_API_REV_2_0, HAL_API_REV_1_0); 567 in->legacy_in = ladev->hwif->openInputStream(devices, (in 486 adev_open_output_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, struct audio_stream_out **stream_out) argument 550 adev_open_input_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, struct audio_stream_in **stream_in) argument [all...] |
H A D | AudioPolicyManagerBase.cpp | 27 // A device mask for all audio input devices that are considered "virtual" when evaluating 30 // A device mask for all audio output devices that are considered "remote" when evaluating 31 // active output devices in isStreamActiveRemotely() 65 // handle output devices 136 // remove device from available output devices 197 // handle input devices 691 // devices (the list was previously build by getOutputsForDevice()). 1384 snprintf(buffer, SIZE, " Output devices: %08x\n", mAvailableOutputDevices); 1386 snprintf(buffer, SIZE, " Input devices: %08x\n", mAvailableInputDevices); 1558 // open all output streams needed to access attached devices 2264 audio_devices_t devices; local [all...] |
/hardware/libhardware/modules/usbaudio/ |
H A D | audio_hw.c | 248 audio_devices_t devices, 357 audio_devices_t devices, 246 adev_open_output_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, struct audio_stream_out **stream_out) argument 355 adev_open_input_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, struct audio_stream_in **stream_in) argument
|
/hardware/libhardware/modules/audio/ |
H A D | audio_hw.c | 218 audio_devices_t devices, 328 audio_devices_t devices, 216 adev_open_output_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, struct audio_stream_out **stream_out) argument 326 adev_open_input_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, struct audio_stream_in **stream_in) argument
|
/hardware/qcom/audio/hal/ |
H A D | audio_hw.h | 109 audio_devices_t devices; member in struct:stream_out 165 audio_devices_t devices; member in struct:audio_usecase
|
H A D | audio_hw.c | 283 * because of the limitation that both the devices cannot be enabled 296 usecase->devices & AUDIO_DEVICE_OUT_ALL_CODEC_BACKEND) { 328 specified usecase to new snd devices */ 358 * because of the limitation that two devices cannot be enabled 394 specified usecase to new snd devices */ 469 usecase->stream.out->devices); 470 in_snd_device = platform_get_input_snd_device(adev->platform, usecase->stream.out->devices); 471 usecase->devices = usecase->stream.out->devices; 474 * If the voice call is active, use the sound devices o 1836 adev_open_output_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, struct audio_stream_out **stream_out) argument 2232 adev_open_input_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, struct audio_stream_in **stream_in) argument [all...] |
/hardware/qcom/audio/hal/msm8960/ |
H A D | platform.c | 112 /* Array to store sound devices */ 115 /* Playback sound devices */ 131 /* Capture sound devices */ 560 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices) argument 567 ALOGV("%s: enter: output devices(%#x)", __func__, devices); 568 if (devices == AUDIO_DEVICE_NONE || 569 devices & AUDIO_DEVICE_BIT_IN) { 570 ALOGV("%s: Invalid output devices (%#x)", __func__, devices); [all...] |
/hardware/qcom/audio/hal/msm8974/ |
H A D | platform.c | 95 /* Array to store sound devices */ 98 /* Playback sound devices */ 115 /* Capture sound devices */ 511 snd_device_t platform_get_output_snd_device(void *platform, audio_devices_t devices) argument 518 ALOGV("%s: enter: output devices(%#x)", __func__, devices); 519 if (devices == AUDIO_DEVICE_NONE || 520 devices & AUDIO_DEVICE_BIT_IN) { 521 ALOGV("%s: Invalid output devices (%#x)", __func__, devices); [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | AudioHardwareALSA.cpp | 721 AudioHardwareALSA::openOutputStream(uint32_t devices, argument 728 ALOGV("openOutputStream: devices 0x%x channels %d sampleRate %d", 729 devices, *channels, *sampleRate); 738 if (devices & (devices - 1)) { 740 ALOGE("openOutputStream called with bad devices"); 746 if((devices == AudioSystem::DEVICE_OUT_DIRECTOUTPUT) && 775 alsa_handle.devices = devices; 805 alsa_handle.devices 997 openOutputSession(uint32_t devices, int *format, status_t *status, int sessionId, uint32_t samplingRate, uint32_t channels) argument 1092 openInputStream(uint32_t devices, int *format, uint32_t *channels, uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) argument [all...] |
H A D | alsa_default.cpp | 197 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) argument 401 ALOGD("%s: device %d mode:%d", __FUNCTION__, devices, mode); 404 if ((devices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) || 405 (devices & AudioSystem::DEVICE_IN_WIRED_HEADSET)) { 406 devices = devices | (AudioSystem::DEVICE_OUT_WIRED_HEADSET | 408 } else if (devices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE) { 409 devices 1182 s_route(alsa_handle_t *handle, uint32_t devices, int mode) argument 1310 getUCMDevice(uint32_t devices, int input, char *rxDevice) argument [all...] |
H A D | audio_hw_hal.cpp | 65 /* output devices */ 96 /* input devices */ 516 uint32_t devices, 532 out->qcom_out = qadev->hwif->openOutputSession(devices, format,&status,sessionId,samplingRate,channels); 554 audio_devices_t devices, 568 devices = convert_audio_device(devices, HAL_API_REV_2_0, HAL_API_REV_1_0); 571 out->qcom_out = qadev->hwif->openOutputStream(devices, 621 audio_devices_t devices, 634 devices 515 adev_open_output_session(struct audio_hw_device *dev, uint32_t devices, int *format, int sessionId, uint32_t samplingRate, uint32_t channels, struct audio_stream_out **stream_out) argument 552 adev_open_output_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, struct audio_stream_out **stream_out) argument 619 adev_open_input_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, audio_config *config, audio_stream_in **stream_in) argument [all...] |
H A D | AudioHardwareALSA.h | 168 uint32_t devices; member in struct:android_audio_legacy::alsa_handle_t 493 uint32_t devices, 504 uint32_t devices, 513 uint32_t devices,
|
/hardware/libhardware/modules/audio_remote_submix/ |
H A D | audio_hw.cpp | 513 audio_devices_t devices, 674 audio_devices_t devices, 511 adev_open_output_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, audio_output_flags_t flags, struct audio_config *config, struct audio_stream_out **stream_out) argument 672 adev_open_input_stream(struct audio_hw_device *dev, audio_io_handle_t handle, audio_devices_t devices, struct audio_config *config, struct audio_stream_in **stream_in) argument
|