Searched refs:device (Results 51 - 75 of 110) sorted by relevance

12345

/hardware/qcom/audio/alsa_sound/
H A DAudioHardwareALSA.cpp87 hw_device_t* device; local
88 err = module->methods->open(module, ALSA_HARDWARE_NAME, &device);
90 mALSADevice = (alsa_device_t *)device;
325 int device; local
406 if (param.getInt(key, device) == NO_ERROR) {
407 // Ignore routing if device is 0.
408 if(device) {
409 doRouting(device);
461 if (param.getInt(key, device) == NO_ERROR) {
462 // Ignore if device i
586 doRouting(int device) argument
1403 handleFm(int device) argument
1478 disableVoiceCall(char* verb, char* modifier, int mode, int device) argument
1501 enableVoiceCall(char* verb, char* modifier, int mode, int device) argument
1555 routeVoiceCall(int device, int newMode) argument
1616 routeVoLTECall(int device, int newMode) argument
[all...]
H A DAudioHardwareALSA.h237 status_t setVolume(uint32_t device, float left, float right);
238 status_t setGain(uint32_t device, float gain);
240 status_t setCaptureMuteState(uint32_t device, bool state);
241 status_t getCaptureMuteState(uint32_t device, bool *state);
242 status_t setPlaybackMuteState(uint32_t device, bool state);
243 status_t getPlaybackMuteState(uint32_t device, bool *state);
250 ALSAControl(const char *device = "/dev/snd/controlC0");
268 status_t set(int *format, uint32_t *channels, uint32_t *rate, uint32_t device);
533 void doRouting(int device);
535 void handleFm(int device);
[all...]
H A Daudio_hw_hal.cpp39 struct audio_hw_device device; member in struct:android_audio_legacy::qcom_audio_device
690 static int qcom_adev_close(hw_device_t* device) argument
693 reinterpret_cast<struct audio_hw_device *>(device);
707 hw_device_t** device)
719 qadev->device.common.tag = HARDWARE_DEVICE_TAG;
720 qadev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
721 qadev->device.common.module = const_cast<hw_module_t*>(module);
722 qadev->device.common.close = qcom_adev_close;
724 qadev->device.init_check = adev_init_check;
725 qadev->device
706 qcom_adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware/modules/usbaudio/
H A Daudio_hw.c49 int device; member in struct:audio_device
65 * following order: hw device > out stream
70 /* must be called with hw device and output stream mutexes locked */
76 if ((adev->card < 0) || (adev->device < 0))
79 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &pcm_config);
163 ret = str_parms_get_str(parms, "device", value, sizeof(value));
165 adev->device = atoi(value);
288 adev->device = -1;
369 static int adev_dump(const audio_hw_device_t *device, int fd) argument
374 static int adev_close(hw_device_t *device) argument
382 adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/qcom/audio/libalsa-intf/
H A Damix.c57 const char* device = "/dev/snd/controlC0"; local
59 mixer = mixer_open(device);
H A Daplay.c165 unsigned flags, const char *device, unsigned data_sz)
196 pcm = pcm_open(flags, device);
472 int play_raw(const char *fg, int rate, int ch, const char *device, const char *fn) argument
495 return play_file(rate, ch, fd, flag, device, 0);
498 int play_wav(const char *fg, int rate, int ch, const char *device, const char *fn) argument
556 return play_file(hdr.sample_rate, hdr.num_channels, fd, flag, device, hdr.data_sz);
566 char *device = "hw:0,0"; local
602 device = optarg;
658 rc = play_wav(mmap, rate, ch, device, filename);
660 rc = play_raw(mmap, rate, ch, device, filenam
164 play_file(unsigned rate, unsigned channels, int fd, unsigned flags, const char *device, unsigned data_sz) argument
[all...]
H A Darec.c178 int record_file(unsigned rate, unsigned channels, int fd, unsigned count, unsigned flags, const char *device) argument
202 pcm = pcm_open(flags, device);
387 int rec_raw(const char *fg, const char *device, int rate, int ch, argument
421 return record_file(rate, ch, fd, count, flag, device);
424 int rec_wav(const char *fg, const char *device, int rate, int ch, const char *fn) argument
482 return record_file(hdr.sample_rate, hdr.num_channels, fd, count, flag, device);
519 char *device = "hw:0,0"; local
554 device = optarg;
609 rc = rec_wav(mmap, device, rate, ch, filename);
611 rc = rec_raw(mmap, device, rat
[all...]
/hardware/msm7k/libcopybit/
H A Dcopybit.cpp55 /** State information for each device instance */
57 struct copybit_device_t device; member in struct:copybit_context_t
68 struct hw_device_t** device);
425 /** Close the copybit device */
436 /** Open a new instance of a copybit device using name */
438 struct hw_device_t** device)
445 ctx->device.common.tag = HARDWARE_DEVICE_TAG;
446 ctx->device.common.version = 1;
447 ctx->device.common.module = const_cast<hw_module_t*>(module);
448 ctx->device
[all...]
/hardware/samsung_slsi/exynos5/gralloc/
H A Dgralloc.cpp57 alloc_device_t device; member in struct:gralloc_context_t
67 hw_device_t** device);
70 hw_device_t** device);
391 hw_device_t** device)
402 dev->device.common.tag = HARDWARE_DEVICE_TAG;
403 dev->device.common.version = 0;
404 dev->device.common.module = const_cast<hw_module_t*>(module);
405 dev->device.common.close = gralloc_close;
407 dev->device.alloc = gralloc_alloc;
408 dev->device
390 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/msm7k/libgralloc-qsd8k/
H A Dgralloc.cpp39 hw_device_t** device);
42 hw_device_t** device);
63 /* On-device dependency implementation */
181 hw_device_t** device)
190 *device = &dev->common;
193 status = fb_device_open(module, name, device);
180 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
/hardware/libhardware/modules/audio_remote_submix/
H A Daudio_hw.cpp47 // the duration of a record buffer at the current record sample rate (of the device, not of
57 unsigned int rate; // sample rate for the device
63 struct audio_hw_device device; member in struct:android::submix_audio_device
73 // Wifi for presentation on a remote Wifi Display device (e.g. a dongle attached to a TV, or a
78 // device lock, also used to protect access to the audio pipe
763 static int adev_dump(const audio_hw_device_t *device, int fd) argument
768 static int adev_close(hw_device_t *device) argument
771 free(device);
776 hw_device_t** device)
788 rsxadev->device
775 adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/msm7k/libaudio/
H A DAudioHardware.cpp244 // even if the new device selected is the same as current one.
360 static status_t set_volume_rpc(uint32_t device, argument
366 ALOGD("rpc_snd_set_volume(%d, %d, %d)\n", device, method, volume);
369 if (device == -1UL) return NO_ERROR;
373 ALOGE("Can not open snd device");
377 * device, # Any hardware device enum, including
386 args.device = device;
435 static status_t do_route_audio_rpc(uint32_t device, argument
477 doAudioRouteOrMute(uint32_t device) argument
833 int device; local
1095 int device; local
[all...]
/hardware/libhardware_legacy/audio/
H A Daudio_hw_hal.cpp38 struct audio_hw_device device; member in struct:android_audio_legacy::legacy_audio_device
619 static int legacy_adev_close(hw_device_t* device) argument
622 reinterpret_cast<struct audio_hw_device *>(device);
636 hw_device_t** device)
648 ladev->device.common.tag = HARDWARE_DEVICE_TAG;
649 ladev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
650 ladev->device.common.module = const_cast<hw_module_t*>(module);
651 ladev->device.common.close = legacy_adev_close;
653 ladev->device.init_check = adev_init_check;
654 ladev->device
635 legacy_adev_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware/include/hardware/
H A Dhardware.h63 * versions so that implementations can explicitly specify module/device
153 /** Open a specific device */
155 struct hw_device_t** device);
160 * Every device data structure must begin with hw_device_t
168 * Version of the module-specific device API. This value is used by
169 * the derived-module user to manage different device implementations.
172 * and device version fields to ensure that the user is capable of
176 * can be useful when a device interface changes in an incompatible way
185 /** reference to the module this device belongs to */
191 /** Close this device */
[all...]
/hardware/libhardware/modules/nfc-nci/
H A Dnfc_nci_example.c69 * Generic device handling below - can generally be left unchanged.
71 /* Close an opened nfc device instance */
78 hw_device_t** device) {
96 *device = (hw_device_t*) dev;
77 nfc_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
/hardware/msm7k/libaudio-qdsp5v2/
H A Dmsm_audio.h73 uint32_t device; member in struct:msm_snd_device_config
83 uint32_t device; member in struct:msm_snd_volume_config
/hardware/msm7k/libaudio-qsd8k/
H A Dmsm_audio.h73 uint32_t device; member in struct:msm_snd_device_config
83 uint32_t device; member in struct:msm_snd_volume_config
H A DAudioHardware.cpp319 // when entering or exiting in call mode even if the new device
344 ALOGE("Cannot open msm_audio_ctl device\n");
349 ALOGE("Cannot set mic mute on current device\n");
368 return set_mic_mute(mMicMute); //always set current TX device
462 ALOGE("Cannot open audience_a1026 device (%d)\n", fd_a1026);
600 ALOGE("Cannot open msm_audio_ctl device\n");
606 ALOGW("Cannot set volume on current device\n");
630 set_volume_rpc(vol); //always set current device
645 static status_t do_route_audio_dev_ctrl(uint32_t device, bool inCall, uint32_t rx_acdb_id, uint32_t tx_acdb_id) argument
651 if (device
806 doAudioRouteOrMute(uint32_t device) argument
992 getACDB(int mode, int device) argument
1729 int device; local
1971 int device; local
[all...]
/hardware/samsung_slsi/exynos5/mobicore/daemon/Daemon/Device/
H A DAndroid.mk3 # MC driver device files
/hardware/qcom/display/libcopybit/
H A Dcopybit.cpp57 /** State information for each device instance */
59 struct copybit_device_t device; member in struct:copybit_context_t
71 struct hw_device_t** device);
509 /** Close the copybit device */
520 /** Open a new instance of a copybit device using name */
522 struct hw_device_t** device)
529 ctx->device.common.tag = HARDWARE_DEVICE_TAG;
530 ctx->device.common.version = 1;
531 ctx->device.common.module = const_cast<hw_module_t*>(module);
532 ctx->device
[all...]
/hardware/msm7k/libgralloc/
H A Dgralloc.cpp57 alloc_device_t device; member in struct:gralloc_context_t
67 hw_device_t** device);
70 hw_device_t** device);
577 hw_device_t** device)
588 dev->device.common.tag = HARDWARE_DEVICE_TAG;
589 dev->device.common.version = 0;
590 dev->device.common.module = const_cast<hw_module_t*>(module);
591 dev->device.common.close = gralloc_close;
593 dev->device.alloc = gralloc_alloc;
594 dev->device
576 gralloc_device_open(const hw_module_t* module, const char* name, hw_device_t** device) argument
[all...]
/hardware/libhardware_legacy/include/hardware_legacy/
H A DAudioPolicyInterface.h42 // - keep track of current system state (removable device connections, phone state, user requests...).
51 // applicable to each output as a function of platform specific settings and current output route (destination device). It
68 // indicate a change in device connection status
69 virtual status_t setDeviceConnectionState(audio_devices_t device,
72 // retrieve a device connection status
73 virtual AudioSystem::device_connection_state getDeviceConnectionState(audio_devices_t device,
77 // force using a specific device category for the specified usage
79 // retrieve current device category forced for a given usage
107 // request an input appropriate for record from the supplied device with supplied parameters.
130 // supplied device
[all...]
/hardware/qcom/camera/QCamera/HAL/wrapper/
H A DQualcommCamera.h41 struct hw_device_t** device);
/hardware/qcom/camera/QCamera/HAL2/wrapper/
H A DQualcommCamera.h41 struct hw_device_t** device);
/hardware/qcom/camera/
H A DQualcommCamera.h30 struct hw_device_t** device);

Completed in 347 milliseconds

12345