Lines Matching refs:adev
378 const struct atv_audio_device* adev =
381 return adev->output->setParameters(kvpairs);
388 const struct atv_audio_device* adev =
391 return adev->output->getParameters(keys);
410 const struct atv_audio_device* adev =
413 return adev->input->setMicMute(state);
418 const struct atv_audio_device* adev =
421 return adev->input->getMicMute(state);
427 const struct atv_audio_device* adev =
430 return adev->input->getInputBufferSize(config);
445 struct atv_audio_device* adev =
474 in->impl = adev->input->openInputStream(devices,
499 struct atv_audio_device* adev =
504 adev->input->closeInputStream(tstream->impl);
518 struct atv_audio_device* adev =
553 out->impl = adev->output->openOutputStream(
567 out->hw = adev->output;
583 struct atv_audio_device* adev =
588 adev->output->closeOutputStream(tstream->impl);
594 const struct atv_audio_device* adev =
597 return adev->output->initCheck();
602 struct atv_audio_device* adev =
605 return adev->output->setMasterVolume(volume);
611 struct atv_audio_device* adev =
614 return adev->output->getMasterVolume(volume);
619 struct atv_audio_device* adev =
622 return adev->output->setMasterMute(muted);
628 struct atv_audio_device* adev =
631 return adev->output->getMasterMute(muted);
636 const struct atv_audio_device* adev =
639 int ret = adev->output->dump(fd);
641 ret = adev->input->dump(fd);
648 struct atv_audio_device* adev =
661 struct atv_audio_device* adev = NULL;
676 adev = (struct atv_audio_device*)calloc(1,
678 if (NULL == adev) {
683 adev->device.common.tag = HARDWARE_DEVICE_TAG;
684 adev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
685 adev->device.common.module = (struct hw_module_t *) module;
686 adev->device.common.close = adev_close;
688 adev->device.init_check = adev_init_check;
689 adev->device.set_voice_volume = adev_set_voice_volume;
690 adev->device.set_master_volume = adev_set_master_volume;
691 adev->device.get_master_volume = adev_get_master_volume;
692 adev->device.set_master_mute = adev_set_master_mute;
693 adev->device.get_master_mute = adev_get_master_mute;
694 adev->device.set_mode = adev_set_mode;
695 adev->device.set_mic_mute = adev_set_mic_mute;
696 adev->device.get_mic_mute = adev_get_mic_mute;
697 adev->device.set_parameters = adev_set_parameters;
698 adev->device.get_parameters = adev_get_parameters;
699 adev->device.get_input_buffer_size = adev_get_input_buffer_size;
700 adev->device.open_output_stream = adev_open_output_stream;
701 adev->device.close_output_stream = adev_close_output_stream;
702 adev->device.open_input_stream = adev_open_input_stream;
703 adev->device.close_input_stream = adev_close_input_stream;
704 adev->device.dump = adev_dump;
706 adev->output = &gAudioHardwareOutput;
707 adev->input = &gAudioHardwareInput;
708 *device = &adev->device.common;
711 if ((0 != ret) && (NULL != adev)) {
712 free(adev);