Home
last modified time | relevance | path

Searched refs:halDevice (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/audio/2.0/default/
DConversions.cpp31 uint32_t halDevice = static_cast<uint32_t>(address.device); in deviceAddressToHal() local
32 const bool isInput = (halDevice & AUDIO_DEVICE_BIT_IN) != 0; in deviceAddressToHal()
33 if (isInput) halDevice &= ~AUDIO_DEVICE_BIT_IN; in deviceAddressToHal()
34 if ((!isInput && (halDevice & AUDIO_DEVICE_OUT_ALL_A2DP) != 0) in deviceAddressToHal()
35 || (isInput && (halDevice & AUDIO_DEVICE_IN_BLUETOOTH_A2DP) != 0)) { in deviceAddressToHal()
40 } else if ((!isInput && (halDevice & AUDIO_DEVICE_OUT_IP) != 0) in deviceAddressToHal()
41 || (isInput && (halDevice & AUDIO_DEVICE_IN_IP) != 0)) { in deviceAddressToHal()
46 } else if ((!isInput && (halDevice & AUDIO_DEVICE_OUT_ALL_USB) != 0) in deviceAddressToHal()
47 || (isInput && (halDevice & AUDIO_DEVICE_IN_ALL_USB) != 0)) { in deviceAddressToHal()
51 } else if ((!isInput && (halDevice & AUDIO_DEVICE_OUT_BUS) != 0) in deviceAddressToHal()
[all …]
DDevicesFactory.cpp78 audio_hw_device_t *halDevice; in openDevice() local
83 int halStatus = loadAudioInterface(moduleName, &halDevice); in openDevice()
86 result = new PrimaryDevice(halDevice); in openDevice()
89 Device(halDevice); in openDevice()
/hardware/interfaces/audio/effect/2.0/default/
DEffect.cpp534 uint32_t halDevice = static_cast<uint32_t>(device); in setDevice() local
535 return sendCommand(EFFECT_CMD_SET_DEVICE, "SET_DEVICE", sizeof(uint32_t), &halDevice); in setDevice()
579 uint32_t halDevice = static_cast<uint32_t>(device); in setInputDevice() local
581 EFFECT_CMD_SET_INPUT_DEVICE, "SET_INPUT_DEVICE", sizeof(uint32_t), &halDevice); in setInputDevice()