Lines Matching refs:qadev

441     const struct qcom_audio_device *qadev = to_cladev(dev);
443 return qadev->hwif->initCheck();
448 struct qcom_audio_device *qadev = to_ladev(dev);
449 return qadev->hwif->setVoiceVolume(volume);
454 struct qcom_audio_device *qadev = to_ladev(dev);
455 return qadev->hwif->setMasterVolume(volume);
460 struct qcom_audio_device *qadev = to_ladev(dev);
461 return qadev->hwif->getMasterVolume(volume);
467 struct qcom_audio_device *qadev = to_ladev(dev);
468 return qadev->hwif->setFmVolume(volume);
474 struct qcom_audio_device *qadev = to_ladev(dev);
475 return qadev->hwif->setMode(mode);
480 struct qcom_audio_device *qadev = to_ladev(dev);
481 return qadev->hwif->setMicMute(state);
486 const struct qcom_audio_device *qadev = to_cladev(dev);
487 return qadev->hwif->getMicMute(state);
492 struct qcom_audio_device *qadev = to_ladev(dev);
493 return qadev->hwif->setParameters(String8(kvpairs));
499 const struct qcom_audio_device *qadev = to_cladev(dev);
502 s8 = qadev->hwif->getParameters(String8(keys));
509 const struct qcom_audio_device *qadev = to_cladev(dev);
511 return qadev->hwif->getInputBufferSize(config->sample_rate, config->format, channelCount);
523 struct qcom_audio_device *qadev = to_ladev(dev);
532 out->qcom_out = qadev->hwif->openOutputSession(devices, format,&status,sessionId,samplingRate,channels);
559 struct qcom_audio_device *qadev = to_ladev(dev);
571 out->qcom_out = qadev->hwif->openOutputStream(devices,
611 struct qcom_audio_device *qadev = to_ladev(dev);
614 qadev->hwif->closeOutputStream(out->qcom_out);
625 struct qcom_audio_device *qadev = to_ladev(dev);
636 in->qcom_in = qadev->hwif->openInputStream(devices, (int *)&config->format,
674 struct qcom_audio_device *qadev = to_ladev(dev);
678 qadev->hwif->closeInputStream(in->qcom_in);
684 const struct qcom_audio_device *qadev = to_cladev(dev);
687 return qadev->hwif->dumpState(fd, args);
694 struct qcom_audio_device *qadev = to_ladev(hwdev);
696 if (!qadev)
699 if (qadev->hwif)
700 delete qadev->hwif;
702 free(qadev);
709 struct qcom_audio_device *qadev;
715 qadev = (struct qcom_audio_device *)calloc(1, sizeof(*qadev));
716 if (!qadev)
719 qadev->device.common.tag = HARDWARE_DEVICE_TAG;
720 qadev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
721 qadev->device.common.module = const_cast<hw_module_t*>(module);
722 qadev->device.common.close = qcom_adev_close;
724 qadev->device.init_check = adev_init_check;
725 qadev->device.set_voice_volume = adev_set_voice_volume;
726 qadev->device.set_master_volume = adev_set_master_volume;
727 qadev->device.get_master_volume = adev_get_master_volume;
729 qadev->device.set_fm_volume = adev_set_fm_volume;
731 qadev->device.set_mode = adev_set_mode;
732 qadev->device.set_mic_mute = adev_set_mic_mute;
733 qadev->device.get_mic_mute = adev_get_mic_mute;
734 qadev->device.set_parameters = adev_set_parameters;
735 qadev->device.get_parameters = adev_get_parameters;
736 qadev->device.get_input_buffer_size = adev_get_input_buffer_size;
737 qadev->device.open_output_stream = adev_open_output_stream;
739 qadev->device.open_output_session = adev_open_output_session;
741 qadev->device.close_output_stream = adev_close_output_stream;
742 qadev->device.open_input_stream = adev_open_input_stream;
743 qadev->device.close_input_stream = adev_close_input_stream;
744 qadev->device.dump = adev_dump;
746 qadev->hwif = createAudioHardware();
747 if (!qadev->hwif) {
752 *device = &qadev->device.common;
757 free(qadev);