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);
560 struct qcom_audio_device *qadev = to_ladev(dev);
572 out->qcom_out = qadev->hwif->openOutputStream(devices,
612 struct qcom_audio_device *qadev = to_ladev(dev);
615 qadev->hwif->closeOutputStream(out->qcom_out);
629 struct qcom_audio_device *qadev = to_ladev(dev);
640 in->qcom_in = qadev->hwif->openInputStream(devices, (int *)&config->format,
678 struct qcom_audio_device *qadev = to_ladev(dev);
682 qadev->hwif->closeInputStream(in->qcom_in);
688 const struct qcom_audio_device *qadev = to_cladev(dev);
691 return qadev->hwif->dumpState(fd, args);
698 struct qcom_audio_device *qadev = to_ladev(hwdev);
700 if (!qadev)
703 if (qadev->hwif)
704 delete qadev->hwif;
706 free(qadev);
713 struct qcom_audio_device *qadev;
719 qadev = (struct qcom_audio_device *)calloc(1, sizeof(*qadev));
720 if (!qadev)
723 qadev->device.common.tag = HARDWARE_DEVICE_TAG;
724 qadev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
725 qadev->device.common.module = const_cast<hw_module_t*>(module);
726 qadev->device.common.close = qcom_adev_close;
728 qadev->device.init_check = adev_init_check;
729 qadev->device.set_voice_volume = adev_set_voice_volume;
730 qadev->device.set_master_volume = adev_set_master_volume;
731 qadev->device.get_master_volume = adev_get_master_volume;
733 qadev->device.set_fm_volume = adev_set_fm_volume;
735 qadev->device.set_mode = adev_set_mode;
736 qadev->device.set_mic_mute = adev_set_mic_mute;
737 qadev->device.get_mic_mute = adev_get_mic_mute;
738 qadev->device.set_parameters = adev_set_parameters;
739 qadev->device.get_parameters = adev_get_parameters;
740 qadev->device.get_input_buffer_size = adev_get_input_buffer_size;
741 qadev->device.open_output_stream = adev_open_output_stream;
743 qadev->device.open_output_session = adev_open_output_session;
745 qadev->device.close_output_stream = adev_close_output_stream;
746 qadev->device.open_input_stream = adev_open_input_stream;
747 qadev->device.close_input_stream = adev_close_input_stream;
748 qadev->device.dump = adev_dump;
750 qadev->hwif = createAudioHardware();
751 if (!qadev->hwif) {
756 *device = &qadev->device.common;
761 free(qadev);