Searched refs:halDevice (Results 1 – 6 of 6) sorted by relevance
/hardware/interfaces/audio/core/all-versions/default/ |
D | DevicesFactory.cpp | 102 audio_hw_device_t* halDevice; in openDevice() local 105 int halStatus = loadAudioInterface(moduleName, &halDevice); in openDevice() 107 result = new DeviceShim(halDevice); in openDevice()
|
D | Device.cpp | 167 audio_devices_t halDevice; in openOutputStreamCore() local 169 if (CoreUtils::deviceAddressToHal(device, &halDevice, halDeviceAddress) != NO_ERROR) { in openOutputStreamCore() 178 ioHandle, halDevice, halFlags, halConfig.sample_rate, halConfig.format, in openOutputStreamCore() 180 int status = mDevice->open_output_stream(mDevice, ioHandle, halDevice, halFlags, &halConfig, in openOutputStreamCore() 203 audio_devices_t halDevice; in openInputStreamCore() local 205 if (CoreUtils::deviceAddressToHal(device, &halDevice, halDeviceAddress) != NO_ERROR) { in openInputStreamCore() 216 ioHandle, halDevice, halFlags, halConfig.sample_rate, halConfig.format, in openInputStreamCore() 218 int status = mDevice->open_input_stream(mDevice, ioHandle, halDevice, &halConfig, &halStream, in openInputStreamCore()
|
D | Stream.cpp | 375 int halDevice = 0; in getDevices() local 376 Result retval = getParam(AudioParameter::keyRouting, &halDevice); in getDevices() 382 CoreUtils::deviceAddressFromHal(static_cast<audio_devices_t>(halDevice), nullptr, in getDevices()
|
/hardware/interfaces/audio/common/all-versions/default/7.0/ |
D | HidlUtils.cpp | 226 status_t HidlUtils::audioDeviceTypeFromHal(audio_devices_t halDevice, AudioDevice* device) { in audioDeviceTypeFromHal() argument 227 *device = audio_device_to_string(halDevice); in audioDeviceTypeFromHal() 231 ALOGE("Unknown audio device value 0x%X", halDevice); in audioDeviceTypeFromHal() 236 status_t HidlUtils::audioDeviceTypeToHal(const AudioDevice& device, audio_devices_t* halDevice) { in audioDeviceTypeToHal() argument 237 if (!xsd::isUnknownAudioDevice(device) && audio_device_from_string(device.c_str(), halDevice)) { in audioDeviceTypeToHal() 241 *halDevice = AUDIO_DEVICE_NONE; in audioDeviceTypeToHal() 766 struct audio_port_config_device_ext halDevice = {}; in audioUsageFromHal() local 773 halDevice.type = halPort.ext.device.type; in audioUsageFromHal() 774 memcpy(halDevice.address, halPort.ext.device.address, AUDIO_DEVICE_MAX_ADDRESS_LEN); in audioUsageFromHal() 783 CONVERT_CHECKED(audioPortExtendedInfoFromHal(halPort.role, halPort.type, halDevice, halMix, in audioUsageFromHal() [all …]
|
/hardware/interfaces/audio/effect/all-versions/default/ |
D | Effect.cpp | 738 uint32_t halDevice = static_cast<uint32_t>(device); in setDevice() local 739 return sendCommand(EFFECT_CMD_SET_DEVICE, "SET_DEVICE", sizeof(uint32_t), &halDevice); in setDevice() 743 uint32_t halDevice = static_cast<uint32_t>(device); in setInputDevice() local 745 &halDevice); in setInputDevice() 751 audio_devices_t halDevice; in setDevice() local 753 if (status_t status = HidlUtils::deviceAddressToHal(device, &halDevice, halDeviceAddress); in setDevice() 755 uint32_t halDeviceParam = static_cast<uint32_t>(halDevice); in setDevice() 763 audio_devices_t halDevice; in setInputDevice() local 765 if (status_t status = HidlUtils::deviceAddressToHal(device, &halDevice, halDeviceAddress); in setInputDevice() 767 uint32_t halDeviceParam = static_cast<uint32_t>(halDevice); in setInputDevice()
|
/hardware/interfaces/audio/common/all-versions/default/ |
D | HidlUtils.h | 105 static status_t audioDeviceTypeFromHal(audio_devices_t halDevice, AudioDevice* device); 106 static status_t audioDeviceTypeToHal(const AudioDevice& device, audio_devices_t* halDevice);
|