Lines Matching refs:device
68 // read from the sink. The maximum latency of the device is the size of the MonoPipe's buffer
72 // the duration of a record buffer at the current record sample rate (of the device, not of
80 // A legacy user of this device does not close the input stream when it shuts down, which
83 // multiple input streams from this device. If this option is enabled, each input stream returned
127 // output_channel_mask depending upon the last stream to be opened on this device.
154 // Wifi for presentation on a remote Wifi Display device (e.g. a dongle attached to a TV, or a
170 struct audio_hw_device device;
172 // Device lock, also used to protect access to submix_audio_device from the input and output
315 struct audio_hw_device *device)
317 ALOG_ASSERT(device);
318 return reinterpret_cast<struct submix_audio_device *>(reinterpret_cast<uint8_t *>(device) -
319 offsetof(struct submix_audio_device, device));
351 // This purposely ignores offload_info as it's not required for the submix device.
355 // If one doesn't exist, create a pipe for the submix audio device rsxadev of size
356 // buffer_size_frames and optionally associate "in" or "out" with the submix audio device.
400 // If a pipe isn't associated with the device, create one.
423 // Negotiation between the source and sink cannot fail as the device open operation
438 // Store the sanitized audio format in the device so that it's possible to determine
439 // the format of the pipe source when opening the input device.
483 // Remove references to the specified input and output streams. When the device no longer
538 // Query the device for the current audio config and whether input and output streams are open.
559 // Get the channel mask of the open device.
1352 // Make sure it's possible to open the device given the current audio config.
1412 // Store a pointer to the device from the output stream.
1581 device given the current audio config.
1690 static int adev_dump(const audio_hw_device_t *device, int fd)
1692 const struct submix_audio_device * rsxadev = //audio_hw_device_get_submix_audio_device(device);
1694 reinterpret_cast<const uint8_t *>(device) -
1695 offsetof(struct submix_audio_device, device));
1709 static int adev_close(hw_device_t *device)
1712 free(device);
1717 hw_device_t** device)
1729 rsxadev->device.common.tag = HARDWARE_DEVICE_TAG;
1730 rsxadev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
1731 rsxadev->device.common.module = (struct hw_module_t *) module;
1732 rsxadev->device.common.close = adev_close;
1734 rsxadev->device.init_check = adev_init_check;
1735 rsxadev->device.set_voice_volume = adev_set_voice_volume;
1736 rsxadev->device.set_master_volume = adev_set_master_volume;
1737 rsxadev->device.get_master_volume = adev_get_master_volume;
1738 rsxadev->device.set_master_mute = adev_set_master_mute;
1739 rsxadev->device.get_master_mute = adev_get_master_mute;
1740 rsxadev->device.set_mode = adev_set_mode;
1741 rsxadev->device.set_mic_mute = adev_set_mic_mute;
1742 rsxadev->device.get_mic_mute = adev_get_mic_mute;
1743 rsxadev->device.set_parameters = adev_set_parameters;
1744 rsxadev->device.get_parameters = adev_get_parameters;
1745 rsxadev->device.get_input_buffer_size = adev_get_input_buffer_size;
1746 rsxadev->device.open_output_stream = adev_open_output_stream;
1747 rsxadev->device.close_output_stream = adev_close_output_stream;
1748 rsxadev->device.open_input_stream = adev_open_input_stream;
1749 rsxadev->device.close_input_stream = adev_close_input_stream;
1750 rsxadev->device.dump = adev_dump;
1757 *device = &rsxadev->device.common;