Lines Matching refs:ladev
420 const struct legacy_audio_device *ladev = to_cladev(dev);
422 return ladev->hwif->initCheck();
427 struct legacy_audio_device *ladev = to_ladev(dev);
428 return ladev->hwif->setVoiceVolume(volume);
433 struct legacy_audio_device *ladev = to_ladev(dev);
434 return ladev->hwif->setMasterVolume(volume);
439 struct legacy_audio_device *ladev = to_ladev(dev);
440 return ladev->hwif->getMasterVolume(volume);
445 struct legacy_audio_device *ladev = to_ladev(dev);
447 return ladev->hwif->setMode((int) mode);
452 struct legacy_audio_device *ladev = to_ladev(dev);
453 return ladev->hwif->setMicMute(state);
458 const struct legacy_audio_device *ladev = to_cladev(dev);
459 return ladev->hwif->getMicMute(state);
464 struct legacy_audio_device *ladev = to_ladev(dev);
465 return ladev->hwif->setParameters(String8(kvpairs));
471 const struct legacy_audio_device *ladev = to_cladev(dev);
474 s8 = ladev->hwif->getParameters(String8(keys));
481 const struct legacy_audio_device *ladev = to_cladev(dev);
482 return ladev->hwif->getInputBufferSize(config->sample_rate, (int) config->format,
493 struct legacy_audio_device *ladev = to_ladev(dev);
504 out->legacy_out = ladev->hwif->openOutputStream(devices, (int *) &config->format,
542 struct legacy_audio_device *ladev = to_ladev(dev);
545 ladev->hwif->closeOutputStream(out->legacy_out);
556 struct legacy_audio_device *ladev = to_ladev(dev);
567 in->legacy_in = ladev->hwif->openInputStream(devices, (int *) &config->format,
603 struct legacy_audio_device *ladev = to_ladev(dev);
607 ladev->hwif->closeInputStream(in->legacy_in);
613 const struct legacy_audio_device *ladev = to_cladev(dev);
616 return ladev->hwif->dumpState(fd, args);
623 struct legacy_audio_device *ladev = to_ladev(hwdev);
625 if (!ladev)
628 if (ladev->hwif)
629 delete ladev->hwif;
631 free(ladev);
638 struct legacy_audio_device *ladev;
644 ladev = (struct legacy_audio_device *)calloc(1, sizeof(*ladev));
645 if (!ladev)
648 ladev->device.common.tag = HARDWARE_DEVICE_TAG;
649 ladev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0;
650 ladev->device.common.module = const_cast<hw_module_t*>(module);
651 ladev->device.common.close = legacy_adev_close;
653 ladev->device.init_check = adev_init_check;
654 ladev->device.set_voice_volume = adev_set_voice_volume;
655 ladev->device.set_master_volume = adev_set_master_volume;
656 ladev->device.get_master_volume = adev_get_master_volume;
657 ladev->device.set_mode = adev_set_mode;
658 ladev->device.set_mic_mute = adev_set_mic_mute;
659 ladev->device.get_mic_mute = adev_get_mic_mute;
660 ladev->device.set_parameters = adev_set_parameters;
661 ladev->device.get_parameters = adev_get_parameters;
662 ladev->device.get_input_buffer_size = adev_get_input_buffer_size;
663 ladev->device.open_output_stream = adev_open_output_stream;
664 ladev->device.close_output_stream = adev_close_output_stream;
665 ladev->device.open_input_stream = adev_open_input_stream;
666 ladev->device.close_input_stream = adev_close_input_stream;
667 ladev->device.dump = adev_dump;
669 ladev->hwif = createAudioHardware();
670 if (!ladev->hwif) {
675 *device = &ladev->device.common;
680 free(ladev);