Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 70) sorted by relevance

123

/hardware/msm7k/libaudio-qsd8k/
DAudioPolicyManager.cpp54 uint32_t device = 0; in getDeviceForStrategy() local
57 device = mDeviceForStrategy[strategy]; in getDeviceForStrategy()
58 ALOGV("getDeviceForStrategy() from cache strategy %d, device %x", strategy, device); in getDeviceForStrategy()
59 return device; in getDeviceForStrategy()
66 device = getDeviceForStrategy(STRATEGY_MEDIA, false); in getDeviceForStrategy()
78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT; in getDeviceForStrategy()
79 if (device) break; in getDeviceForStrategy()
82 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET; in getDeviceForStrategy()
83 if (device) break; in getDeviceForStrategy()
84 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO; in getDeviceForStrategy()
[all …]
DAudioHardware.cpp645 static status_t do_route_audio_dev_ctrl(uint32_t device, bool inCall, uint32_t rx_acdb_id, uint32_t… in do_route_audio_dev_ctrl() argument
651 if (device == SND_DEVICE_CURRENT) in do_route_audio_dev_ctrl()
656 if (device == SND_DEVICE_HANDSET) { in do_route_audio_dev_ctrl()
660 } else if ((device == SND_DEVICE_BT) || (device == SND_DEVICE_BT_EC_OFF)) { in do_route_audio_dev_ctrl()
664 } else if (device == SND_DEVICE_SPEAKER || in do_route_audio_dev_ctrl()
665 device == SND_DEVICE_SPEAKER_BACK_MIC) { in do_route_audio_dev_ctrl()
669 } else if (device == SND_DEVICE_HEADSET) { in do_route_audio_dev_ctrl()
673 } else if (device == SND_DEVICE_HEADSET_AND_SPEAKER) { in do_route_audio_dev_ctrl()
677 } else if (device == SND_DEVICE_HEADSET_AND_SPEAKER_BACK_MIC) { in do_route_audio_dev_ctrl()
681 } else if (device == SND_DEVICE_NO_MIC_HEADSET) { in do_route_audio_dev_ctrl()
[all …]
/hardware/msm7k/libaudio-qdsp5v2/
DAudioPolicyManager.cpp54 uint32_t device = 0; in getDeviceForStrategy() local
57 device = mDeviceForStrategy[strategy]; in getDeviceForStrategy()
58 ALOGV("getDeviceForStrategy() from cache strategy %d, device %x", strategy, device); in getDeviceForStrategy()
59 return device; in getDeviceForStrategy()
66 device = getDeviceForStrategy(STRATEGY_MEDIA, false); in getDeviceForStrategy()
78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT; in getDeviceForStrategy()
79 if (device) break; in getDeviceForStrategy()
82 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET; in getDeviceForStrategy()
83 if (device) break; in getDeviceForStrategy()
84 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO; in getDeviceForStrategy()
[all …]
/hardware/ti/omap4xxx/camera/
DCameraHal_Module.cpp39 hw_device_t** device);
40 static int camera_device_close(hw_device_t* device);
75 int camera_set_preview_window(struct camera_device * device, in camera_set_preview_window() argument
83 if(!device) in camera_set_preview_window()
86 ti_dev = (ti_camera_device_t*) device; in camera_set_preview_window()
93 void camera_set_callbacks(struct camera_device * device, in camera_set_callbacks() argument
104 if(!device) in camera_set_callbacks()
107 ti_dev = (ti_camera_device_t*) device; in camera_set_callbacks()
112 void camera_enable_msg_type(struct camera_device * device, int32_t msg_type) in camera_enable_msg_type() argument
118 if(!device) in camera_enable_msg_type()
[all …]
/hardware/libhardware/modules/local_time/
Dlocal_time_hw.c31 struct local_time_hw_device device; member
60 static int ltdev_close(hw_device_t *device) in ltdev_close() argument
62 free(device); in ltdev_close()
67 hw_device_t** device) in ltdev_open() argument
80 ltdev->device.common.tag = HARDWARE_DEVICE_TAG; in ltdev_open()
81 ltdev->device.common.version = 0; in ltdev_open()
82 ltdev->device.common.module = (struct hw_module_t *) module; in ltdev_open()
83 ltdev->device.common.close = ltdev_close; in ltdev_open()
85 ltdev->device.get_local_time = ltdev_get_local_time; in ltdev_open()
86 ltdev->device.get_local_freq = ltdev_get_local_freq; in ltdev_open()
[all …]
/hardware/libhardware_legacy/audio/
DAudioPolicyManagerBase.cpp41 status_t AudioPolicyManagerBase::setDeviceConnectionState(AudioSystem::audio_devices device, in setDeviceConnectionState() argument
47 …ALOGV("setDeviceConnectionState() device: %x, state %d, address %s", device, state, device_address… in setDeviceConnectionState()
50 if (AudioSystem::popCount(device) != 1) return BAD_VALUE; in setDeviceConnectionState()
58 if (AudioSystem::isOutputDevice(device)) { in setDeviceConnectionState()
60 if (!mHasA2dp && AudioSystem::isA2dpDevice(device)) { in setDeviceConnectionState()
61 ALOGE("setDeviceConnectionState() invalid device: %x", device); in setDeviceConnectionState()
64 if (!mHasUsb && audio_is_usb_device((audio_devices_t)device)) { in setDeviceConnectionState()
65 ALOGE("setDeviceConnectionState() invalid device: %x", device); in setDeviceConnectionState()
73 if (mAvailableOutputDevices & device) { in setDeviceConnectionState()
74 ALOGW("setDeviceConnectionState() device already connected: %x", device); in setDeviceConnectionState()
[all …]
Daudio_policy_hal.cpp41 struct audio_policy_device device; member
65 audio_devices_t device, in ap_set_device_connection_state() argument
71 (AudioSystem::audio_devices)device, in ap_set_device_connection_state()
78 audio_devices_t device, in ap_get_device_connection_state() argument
83 (AudioSystem::audio_devices)device, in ap_get_device_connection_state()
235 audio_devices_t device) in ap_set_stream_volume_index_for_device() argument
240 device); in ap_set_stream_volume_index_for_device()
246 audio_devices_t device) in ap_get_stream_volume_index_for_device() argument
251 device); in ap_get_stream_volume_index_for_device()
311 static int create_legacy_ap(const struct audio_policy_device *device, in create_legacy_ap() argument
[all …]
Daudio_hw_hal.cpp38 struct audio_hw_device device; member
537 static int legacy_adev_close(hw_device_t* device) in legacy_adev_close() argument
540 reinterpret_cast<struct audio_hw_device *>(device); in legacy_adev_close()
554 hw_device_t** device) in legacy_adev_open() argument
566 ladev->device.common.tag = HARDWARE_DEVICE_TAG; in legacy_adev_open()
567 ladev->device.common.version = AUDIO_DEVICE_API_VERSION_1_0; in legacy_adev_open()
568 ladev->device.common.module = const_cast<hw_module_t*>(module); in legacy_adev_open()
569 ladev->device.common.close = legacy_adev_close; in legacy_adev_open()
571 ladev->device.get_supported_devices = adev_get_supported_devices; in legacy_adev_open()
572 ladev->device.init_check = adev_init_check; in legacy_adev_open()
[all …]
/hardware/libhardware/modules/audio/
Daudio_hw.c32 struct audio_hw_device device; member
362 static int adev_dump(const audio_hw_device_t *device, int fd) in adev_dump() argument
367 static int adev_close(hw_device_t *device) in adev_close() argument
369 free(device); in adev_close()
397 hw_device_t** device) in adev_open() argument
409 adev->device.common.tag = HARDWARE_DEVICE_TAG; in adev_open()
410 adev->device.common.version = AUDIO_DEVICE_API_VERSION_1_0; in adev_open()
411 adev->device.common.module = (struct hw_module_t *) module; in adev_open()
412 adev->device.common.close = adev_close; in adev_open()
414 adev->device.get_supported_devices = adev_get_supported_devices; in adev_open()
[all …]
Daudio_policy.c35 struct audio_policy_device device; member
46 audio_devices_t device, in ap_set_device_connection_state() argument
55 audio_devices_t device, in ap_get_device_connection_state() argument
170 audio_devices_t device) in ap_set_stream_volume_index_for_device() argument
178 audio_devices_t device) in ap_get_stream_volume_index_for_device() argument
232 static int create_default_ap(const struct audio_policy_device *device, in create_default_ap() argument
295 static int default_ap_dev_close(hw_device_t* device) in default_ap_dev_close() argument
297 free(device); in default_ap_dev_close()
302 hw_device_t** device) in default_ap_dev_open() argument
306 *device = NULL; in default_ap_dev_open()
[all …]
/hardware/libhardware/modules/hwcomposer/
Dhwcomposer.cpp32 hwc_composer_device_t device; member
37 struct hw_device_t** device);
108 struct hw_device_t** device) in hwc_device_open() argument
119 dev->device.common.tag = HARDWARE_DEVICE_TAG; in hwc_device_open()
120 dev->device.common.version = 0; in hwc_device_open()
121 dev->device.common.module = const_cast<hw_module_t*>(module); in hwc_device_open()
122 dev->device.common.close = hwc_device_close; in hwc_device_open()
124 dev->device.prepare = hwc_prepare; in hwc_device_open()
125 dev->device.set = hwc_set; in hwc_device_open()
127 *device = &dev->device.common; in hwc_device_open()
/hardware/ti/wpan/
Dti-wpan-products.mk17device/ti/proprietary-open/wl12xx/wpan/bluetooth/TIInit_10.6.15.bts:system/etc/firmware/TIInit_10.…
18device/ti/proprietary-open/wl12xx/wpan/bluetooth/TIInit_7.2.31.bts:system/etc/firmware/TIInit_7.2.…
19device/ti/proprietary-open/wl12xx/wpan/bluetooth/TIInit_7.6.15.bts:system/etc/firmware/TIInit_7.6.…
20device/ti/proprietary-open/wl12xx/wpan/bluetooth/TIInit_12.7.27.bts:system/etc/firmware/TIInit_12.…
21device/ti/proprietary-open/wl12xx/wpan/fmradio/fmc_ch8_1283.2.bts:system/etc/firmware/fmc_ch8_1283…
22device/ti/proprietary-open/wl12xx/wpan/fmradio/fm_rx_ch8_1283.2.bts:system/etc/firmware/fm_rx_ch8_…
23device/ti/proprietary-open/wl12xx/wpan/fmradio/fm_tx_ch8_1283.2.bts:system/etc/firmware/fm_tx_ch8_…
24device/ti/proprietary-open/wl12xx/wpan/fmradio/fmc_init_1273.2.bts:system/etc/firmware/fmc_init_12…
25device/ti/proprietary-open/wl12xx/wpan/fmradio/fm_rx_init_1273.2.bts:system/etc/firmware/fm_rx_ini…
26device/ti/proprietary-open/wl12xx/wpan/fmradio/fm_tx_init_1273.2.bts:system/etc/firmware/fm_tx_ini…
[all …]
/hardware/libhardware/tests/nusensors/
Dnusensors.cpp63 struct sensors_poll_device_t* device; in main() local
72 err = sensors_open(&module->common, &device); in main()
104 err = device->activate(device, list[i].handle, 0); in main()
113 err = device->activate(device, list[i].handle, 1); in main()
119 device->setDelay(device, list[i].handle, ms2ns(10)); in main()
123 int n = device->poll(device, buffer, numEvents); in main()
181 err = device->activate(device, list[i].handle, 0); in main()
189 err = sensors_close(device); in main()
/hardware/libhardware/modules/gralloc/
Dframebuffer.cpp55 framebuffer_device_t device; member
311 hw_device_t** device) in fb_device_open() argument
325 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open()
326 dev->device.common.version = 0; in fb_device_open()
327 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open()
328 dev->device.common.close = fb_close; in fb_device_open()
329 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open()
330 dev->device.post = fb_post; in fb_device_open()
331 dev->device.setUpdateRect = 0; in fb_device_open()
340 const_cast<uint32_t&>(dev->device.flags) = 0; in fb_device_open()
[all …]
Dgralloc.cpp43 alloc_device_t device; member
53 hw_device_t** device);
56 hw_device_t** device);
286 hw_device_t** device) in gralloc_device_open() argument
297 dev->device.common.tag = HARDWARE_DEVICE_TAG; in gralloc_device_open()
298 dev->device.common.version = 0; in gralloc_device_open()
299 dev->device.common.module = const_cast<hw_module_t*>(module); in gralloc_device_open()
300 dev->device.common.close = gralloc_close; in gralloc_device_open()
302 dev->device.alloc = gralloc_alloc; in gralloc_device_open()
303 dev->device.free = gralloc_free; in gralloc_device_open()
[all …]
/hardware/msm7k/libgralloc/
Dframebuffer.cpp54 framebuffer_device_t device; member
330 hw_device_t** device) in fb_device_open() argument
344 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open()
345 dev->device.common.version = 0; in fb_device_open()
346 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open()
347 dev->device.common.close = fb_close; in fb_device_open()
348 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open()
349 dev->device.post = fb_post; in fb_device_open()
350 dev->device.setUpdateRect = 0; in fb_device_open()
356 const_cast<uint32_t&>(dev->device.flags) = 0; in fb_device_open()
[all …]
/hardware/msm7k/libgralloc-qsd8k/
Dframebuffer.cpp57 framebuffer_device_t device; member
365 hw_device_t** device) in fb_device_open() argument
379 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open()
380 dev->device.common.version = 0; in fb_device_open()
381 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open()
382 dev->device.common.close = fb_close; in fb_device_open()
383 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open()
384 dev->device.post = fb_post; in fb_device_open()
385 dev->device.setUpdateRect = 0; in fb_device_open()
386 dev->device.compositionComplete = fb_compositionComplete; in fb_device_open()
[all …]
/hardware/libhardware_legacy/include/hardware_legacy/
DAudioPolicyManagerBase.h75 virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device,
78 …al AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device,
115 audio_devices_t device);
118 audio_devices_t device);
198 bool isCompatibleProfile(audio_devices_t device,
241 audio_devices_t device();
293 int getVolumeIndex(audio_devices_t device);
340 audio_devices_t device,
355 …rtual float computeVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device);
358 …tVolume(int stream, int index, audio_io_handle_t output, audio_devices_t device, int delayMs = 0, …
[all …]
/hardware/libhardware/include/hardware/
Daudio_policy.h90 audio_devices_t device,
97 audio_devices_t device,
200 audio_devices_t device);
206 audio_devices_t device);
413 int (*create_audio_policy)(const struct audio_policy_device *device,
418 int (*destroy_audio_policy)(const struct audio_policy_device *device,
425 struct audio_policy_device** device) in audio_policy_dev_open() argument
428 (hw_device_t**)device); in audio_policy_dev_open()
431 static inline int audio_policy_dev_close(struct audio_policy_device* device) in audio_policy_dev_close() argument
433 return device->common.close(&device->common); in audio_policy_dev_close()
Dlocal_time_hal.h103 struct local_time_hw_device** device) in local_time_hw_device_open() argument
106 (struct hw_device_t**)device); in local_time_hw_device_open()
109 static inline int local_time_hw_device_close(struct local_time_hw_device* device) in local_time_hw_device_close() argument
111 return device->common.close(&device->common); in local_time_hw_device_close()
Dfb.h152 struct framebuffer_device_t** device) { in framebuffer_open() argument
154 GRALLOC_HARDWARE_FB0, (struct hw_device_t**)device); in framebuffer_open()
157 static inline int framebuffer_close(struct framebuffer_device_t* device) { in framebuffer_close() argument
158 return device->common.close(&device->common); in framebuffer_close()
Dkeymaster.h194 keymaster_device_t** device) in keymaster_open() argument
197 (struct hw_device_t**) device); in keymaster_open()
200 (*device)->client_version = KEYMASTER_API_VERSION; in keymaster_open()
206 static inline int keymaster_close(keymaster_device_t* device) in keymaster_close() argument
208 return device->common.close(&device->common); in keymaster_close()
Dgralloc.h250 struct alloc_device_t** device) { in gralloc_open() argument
252 GRALLOC_HARDWARE_GPU0, (struct hw_device_t**)device); in gralloc_open()
255 static inline int gralloc_close(struct alloc_device_t* device) { in gralloc_close() argument
256 return device->common.close(&device->common); in gralloc_close()
Dsensors.h474 struct sensors_poll_device_t** device) { in sensors_open() argument
476 SENSORS_HARDWARE_POLL, (struct hw_device_t**)device); in sensors_open()
479 static inline int sensors_close(struct sensors_poll_device_t* device) { in sensors_close() argument
480 return device->common.close(&device->common); in sensors_close()
/hardware/libhardware_legacy/qemu/
Dqemu.c136 snprintf(channel->device, sizeof channel->device, in qemu_channel_open_qemud_old()
139 fd = socket_local_client( channel->device, in qemu_channel_open_qemud_old()
144 channel->device, strerror(errno)); in qemu_channel_open_qemud_old()
172 ret = snprintf(channel->device, sizeof channel->device, in qemu_channel_open_tty()
174 if (ret >= (int)sizeof channel->device) { in qemu_channel_open_tty()
179 channel->is_tty = !memcmp("/dev/tty", channel->device, 8); in qemu_channel_open_tty()
227 fd = socket_local_client( channel->device, in qemu_channel_open()
235 fd = open(channel->device, mode); in qemu_channel_open()

123