Lines Matching refs:adev
91 struct alsa_audio_device *adev = out->dev; in start_output_stream() local
108 adev->active_output = NULL; in start_output_stream()
113 adev->active_output = out; in start_output_stream()
162 struct alsa_audio_device *adev = out->dev; in do_output_standby() local
167 adev->active_output = NULL; in do_output_standby()
197 struct alsa_audio_device *adev = out->dev; in out_set_parameters() local
207 pthread_mutex_lock(&adev->lock); in out_set_parameters()
209 if (((adev->devices & AUDIO_DEVICE_OUT_ALL) != val) && (val != 0)) { in out_set_parameters()
210 adev->devices &= ~AUDIO_DEVICE_OUT_ALL; in out_set_parameters()
211 adev->devices |= val; in out_set_parameters()
214 pthread_mutex_unlock(&adev->lock); in out_set_parameters()
246 struct alsa_audio_device *adev = out->dev; in out_write() local
254 pthread_mutex_lock(&adev->lock); in out_write()
259 pthread_mutex_unlock(&adev->lock); in out_write()
265 pthread_mutex_unlock(&adev->lock); in out_write()
638 struct alsa_audio_device *adev; in adev_open() local
643 adev = calloc(1, sizeof(struct alsa_audio_device)); in adev_open()
644 if (!adev) in adev_open()
647 adev->hw_device.common.tag = HARDWARE_DEVICE_TAG; in adev_open()
648 adev->hw_device.common.version = AUDIO_DEVICE_API_VERSION_2_0; in adev_open()
649 adev->hw_device.common.module = (struct hw_module_t *) module; in adev_open()
650 adev->hw_device.common.close = adev_close; in adev_open()
651 adev->hw_device.init_check = adev_init_check; in adev_open()
652 adev->hw_device.set_voice_volume = adev_set_voice_volume; in adev_open()
653 adev->hw_device.set_master_volume = adev_set_master_volume; in adev_open()
654 adev->hw_device.get_master_volume = adev_get_master_volume; in adev_open()
655 adev->hw_device.set_master_mute = adev_set_master_mute; in adev_open()
656 adev->hw_device.get_master_mute = adev_get_master_mute; in adev_open()
657 adev->hw_device.set_mode = adev_set_mode; in adev_open()
658 adev->hw_device.set_mic_mute = adev_set_mic_mute; in adev_open()
659 adev->hw_device.get_mic_mute = adev_get_mic_mute; in adev_open()
660 adev->hw_device.set_parameters = adev_set_parameters; in adev_open()
661 adev->hw_device.get_parameters = adev_get_parameters; in adev_open()
662 adev->hw_device.get_input_buffer_size = adev_get_input_buffer_size; in adev_open()
663 adev->hw_device.open_output_stream = adev_open_output_stream; in adev_open()
664 adev->hw_device.close_output_stream = adev_close_output_stream; in adev_open()
665 adev->hw_device.open_input_stream = adev_open_input_stream; in adev_open()
666 adev->hw_device.close_input_stream = adev_close_input_stream; in adev_open()
667 adev->hw_device.dump = adev_dump; in adev_open()
669 adev->devices = AUDIO_DEVICE_NONE; in adev_open()
671 *device = &adev->hw_device.common; in adev_open()