Lines Matching refs:device
33 struct audio_hw_device device;
419 static int adev_dump(const audio_hw_device_t *device, int fd)
425 static int adev_close(hw_device_t *device)
428 free(device);
433 hw_device_t** device)
447 adev->device.common.tag = HARDWARE_DEVICE_TAG;
448 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
449 adev->device.common.module = (struct hw_module_t *) module;
450 adev->device.common.close = adev_close;
452 adev->device.init_check = adev_init_check;
453 adev->device.set_voice_volume = adev_set_voice_volume;
454 adev->device.set_master_volume = adev_set_master_volume;
455 adev->device.get_master_volume = adev_get_master_volume;
456 adev->device.set_master_mute = adev_set_master_mute;
457 adev->device.get_master_mute = adev_get_master_mute;
458 adev->device.set_mode = adev_set_mode;
459 adev->device.set_mic_mute = adev_set_mic_mute;
460 adev->device.get_mic_mute = adev_get_mic_mute;
461 adev->device.set_parameters = adev_set_parameters;
462 adev->device.get_parameters = adev_get_parameters;
463 adev->device.get_input_buffer_size = adev_get_input_buffer_size;
464 adev->device.open_output_stream = adev_open_output_stream;
465 adev->device.close_output_stream = adev_close_output_stream;
466 adev->device.open_input_stream = adev_open_input_stream;
467 adev->device.close_input_stream = adev_close_input_stream;
468 adev->device.dump = adev_dump;
470 *device = &adev->device.common;