Lines Matching full:adev
73 struct audio_device *adev = out->dev;
76 if ((adev->card < 0) || (adev->device < 0))
79 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &pcm_config);
150 struct audio_device *adev = out->dev;
157 pthread_mutex_lock(&adev->lock);
161 adev->card = atoi(value);
165 adev->device = atoi(value);
167 pthread_mutex_unlock(&adev->lock);
253 struct audio_device *adev = (struct audio_device *)dev;
279 out->dev = adev;
287 adev->card = -1;
288 adev->device = -1;
376 struct audio_device *adev = (struct audio_device *)device;
385 struct audio_device *adev;
391 adev = calloc(1, sizeof(struct audio_device));
392 if (!adev)
395 adev->hw_device.common.tag = HARDWARE_DEVICE_TAG;
396 adev->hw_device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
397 adev->hw_device.common.module = (struct hw_module_t *) module;
398 adev->hw_device.common.close = adev_close;
400 adev->hw_device.init_check = adev_init_check;
401 adev->hw_device.set_voice_volume = adev_set_voice_volume;
402 adev->hw_device.set_master_volume = adev_set_master_volume;
403 adev->hw_device.set_mode = adev_set_mode;
404 adev->hw_device.set_mic_mute = adev_set_mic_mute;
405 adev->hw_device.get_mic_mute = adev_get_mic_mute;
406 adev->hw_device.set_parameters = adev_set_parameters;
407 adev->hw_device.get_parameters = adev_get_parameters;
408 adev->hw_device.get_input_buffer_size = adev_get_input_buffer_size;
409 adev->hw_device.open_output_stream = adev_open_output_stream;
410 adev->hw_device.close_output_stream = adev_close_output_stream;
411 adev->hw_device.open_input_stream = adev_open_input_stream;
412 adev->hw_device.close_input_stream = adev_close_input_stream;
413 adev->hw_device.dump = adev_dump;
415 *device = &adev->hw_device.common;