Lines Matching refs:ladev

422     const struct legacy_audio_device *ladev = to_cladev(dev);  in adev_init_check()  local
424 return ladev->hwif->initCheck(); in adev_init_check()
429 struct legacy_audio_device *ladev = to_ladev(dev); in adev_set_voice_volume() local
430 return ladev->hwif->setVoiceVolume(volume); in adev_set_voice_volume()
435 struct legacy_audio_device *ladev = to_ladev(dev); in adev_set_master_volume() local
436 return ladev->hwif->setMasterVolume(volume); in adev_set_master_volume()
441 struct legacy_audio_device *ladev = to_ladev(dev); in adev_get_master_volume() local
442 return ladev->hwif->getMasterVolume(volume); in adev_get_master_volume()
447 struct legacy_audio_device *ladev = to_ladev(dev); in adev_set_mode() local
449 return ladev->hwif->setMode((int) mode); in adev_set_mode()
454 struct legacy_audio_device *ladev = to_ladev(dev); in adev_set_mic_mute() local
455 return ladev->hwif->setMicMute(state); in adev_set_mic_mute()
460 const struct legacy_audio_device *ladev = to_cladev(dev); in adev_get_mic_mute() local
461 return ladev->hwif->getMicMute(state); in adev_get_mic_mute()
466 struct legacy_audio_device *ladev = to_ladev(dev); in adev_set_parameters() local
467 return ladev->hwif->setParameters(String8(kvpairs)); in adev_set_parameters()
473 const struct legacy_audio_device *ladev = to_cladev(dev); in adev_get_parameters() local
476 s8 = ladev->hwif->getParameters(String8(keys)); in adev_get_parameters()
483 const struct legacy_audio_device *ladev = to_cladev(dev); in adev_get_input_buffer_size() local
484 return ladev->hwif->getInputBufferSize(config->sample_rate, (int) config->format, in adev_get_input_buffer_size()
496 struct legacy_audio_device *ladev = to_ladev(dev); in adev_open_output_stream() local
507 out->legacy_out = ladev->hwif->openOutputStreamWithFlags(devices, flags, in adev_open_output_stream()
546 struct legacy_audio_device *ladev = to_ladev(dev); in adev_close_output_stream() local
549 ladev->hwif->closeOutputStream(out->legacy_out); in adev_close_output_stream()
563 struct legacy_audio_device *ladev = to_ladev(dev); in adev_open_input_stream() local
574 in->legacy_in = ladev->hwif->openInputStream(devices, (int *) &config->format, in adev_open_input_stream()
610 struct legacy_audio_device *ladev = to_ladev(dev); in adev_close_input_stream() local
614 ladev->hwif->closeInputStream(in->legacy_in); in adev_close_input_stream()
620 const struct legacy_audio_device *ladev = to_cladev(dev); in adev_dump() local
623 return ladev->hwif->dumpState(fd, args); in adev_dump()
630 struct legacy_audio_device *ladev = to_ladev(hwdev); in legacy_adev_close() local
632 if (!ladev) in legacy_adev_close()
635 if (ladev->hwif) in legacy_adev_close()
636 delete ladev->hwif; in legacy_adev_close()
638 free(ladev); in legacy_adev_close()
645 struct legacy_audio_device *ladev; in legacy_adev_open() local
651 ladev = (struct legacy_audio_device *)calloc(1, sizeof(*ladev)); in legacy_adev_open()
652 if (!ladev) in legacy_adev_open()
655 ladev->device.common.tag = HARDWARE_DEVICE_TAG; in legacy_adev_open()
656 ladev->device.common.version = AUDIO_DEVICE_API_VERSION_2_0; in legacy_adev_open()
657 ladev->device.common.module = const_cast<hw_module_t*>(module); in legacy_adev_open()
658 ladev->device.common.close = legacy_adev_close; in legacy_adev_open()
660 ladev->device.init_check = adev_init_check; in legacy_adev_open()
661 ladev->device.set_voice_volume = adev_set_voice_volume; in legacy_adev_open()
662 ladev->device.set_master_volume = adev_set_master_volume; in legacy_adev_open()
663 ladev->device.get_master_volume = adev_get_master_volume; in legacy_adev_open()
664 ladev->device.set_mode = adev_set_mode; in legacy_adev_open()
665 ladev->device.set_mic_mute = adev_set_mic_mute; in legacy_adev_open()
666 ladev->device.get_mic_mute = adev_get_mic_mute; in legacy_adev_open()
667 ladev->device.set_parameters = adev_set_parameters; in legacy_adev_open()
668 ladev->device.get_parameters = adev_get_parameters; in legacy_adev_open()
669 ladev->device.get_input_buffer_size = adev_get_input_buffer_size; in legacy_adev_open()
670 ladev->device.open_output_stream = adev_open_output_stream; in legacy_adev_open()
671 ladev->device.close_output_stream = adev_close_output_stream; in legacy_adev_open()
672 ladev->device.open_input_stream = adev_open_input_stream; in legacy_adev_open()
673 ladev->device.close_input_stream = adev_close_input_stream; in legacy_adev_open()
674 ladev->device.dump = adev_dump; in legacy_adev_open()
676 ladev->hwif = createAudioHardware(); in legacy_adev_open()
677 if (!ladev->hwif) { in legacy_adev_open()
682 *device = &ladev->device.common; in legacy_adev_open()
687 free(ladev); in legacy_adev_open()