Home | History | Annotate | Download | only in audio

Lines Matching refs:adev

91     struct alsa_audio_device *adev = out->dev;
108 adev->active_output = NULL;
113 adev->active_output = out;
163 struct alsa_audio_device *adev = out->dev;
168 adev->active_output = NULL;
198 struct alsa_audio_device *adev = out->dev;
209 pthread_mutex_lock(&adev->lock);
211 if (((adev->devices & AUDIO_DEVICE_OUT_ALL) != val) && (val != 0)) {
212 adev->devices &= ~AUDIO_DEVICE_OUT_ALL;
213 adev->devices |= val;
216 pthread_mutex_unlock(&adev->lock);
248 struct alsa_audio_device *adev = out->dev;
257 pthread_mutex_lock(&adev->lock);
262 pthread_mutex_unlock(&adev->lock);
268 pthread_mutex_unlock(&adev->lock);
643 struct alsa_audio_device *adev;
649 adev = calloc(1, sizeof(struct alsa_audio_device));
650 if (!adev)
653 adev->hw_device.common.tag = HARDWARE_DEVICE_TAG;
654 adev->hw_device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
655 adev->hw_device.common.module = (struct hw_module_t *) module;
656 adev->hw_device.common.close = adev_close;
657 adev->hw_device.init_check = adev_init_check;
658 adev->hw_device.set_voice_volume = adev_set_voice_volume;
659 adev->hw_device.set_master_volume = adev_set_master_volume;
660 adev->hw_device.get_master_volume = adev_get_master_volume;
661 adev->hw_device.set_master_mute = adev_set_master_mute;
662 adev->hw_device.get_master_mute = adev_get_master_mute;
663 adev->hw_device.set_mode = adev_set_mode;
664 adev->hw_device.set_mic_mute = adev_set_mic_mute;
665 adev->hw_device.get_mic_mute = adev_get_mic_mute;
666 adev->hw_device.set_parameters = adev_set_parameters;
667 adev->hw_device.get_parameters = adev_get_parameters;
668 adev->hw_device.get_input_buffer_size = adev_get_input_buffer_size;
669 adev->hw_device.open_output_stream = adev_open_output_stream;
670 adev->hw_device.close_output_stream = adev_close_output_stream;
671 adev->hw_device.open_input_stream = adev_open_input_stream;
672 adev->hw_device.close_input_stream = adev_close_input_stream;
673 adev->hw_device.dump = adev_dump;
675 adev->devices = AUDIO_DEVICE_NONE;
677 *device = &adev->hw_device.common;